General :: Use Valgrind Tool Over A Exe Which Is Started With Start_daemon?
Jul 20, 2010I am trying to run valgrind tool findout memleak for a executable which is run from start_daemon process..
View 4 RepliesI am trying to run valgrind tool findout memleak for a executable which is run from start_daemon process..
View 4 RepliesI tried to install valgrind to my local directory (I don't have privilege to install it under root) by doing the following 3 steps:
(1) ./configure --prefix=/my/local/directory
(2) make
(3) make install
when I run
./valgrind ls -l
as instructed by README, I got this error: valgrind: failed to start tool 'memcheck' for platform 'x86-linux': No such file or directory
I am running Valgrind on PowerPC target machine. I get the following error
Code:
==2848== Memcheck, a memory error detector.
==2848== Copyright (C) 2002-2008, and GNU GPL'd, by Julian Seward et al.
==2848== Using LibVEX rev 1884, a library for dynamic binary translation.
==2848== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP.
[code]...
I recently installed KDE in my ubuntu 10.10. To access KDE, I want to use
startx /usr/bin/startkdeBut using it disables sound in KDE (Sound is working fine in GNOME). It doesn't sound for anything like login sound, totem, mplayer or any other playerBut when I press Alt+Ctrl+F1 to change to virtual console, the playback resumes from where it was in time and when coming back Alt+Ctrl+F7 and the time in totem (or any other player) doesn't move. While log out also it doesn't play logout sound and doesn't logout, so I have to press Ctrl+Alt+F1 so that logout sound play then it exits.When starting KDE by kdm or gdm, the sound works normally. But I don't want to login again using kdm or gdm and not to use root user to start kdm or gdm.I don't know what is the difference between when KDE is started by startx or by kdm/gdm where the same user login in kdm/gdm as that for startx
differences between Valgrind and Frama-C. I need tools for debugging my C projects, which are getting too big and complicated to debug.
View 4 Replies View RelatedI have downloaded valgrind 3.6.1 from here. I want to install it, how to do it.How to install valgrind on xubuntu 11.04.This program is not in software center.I am already using code::blocks 10.05. Can i integrate it with codeblocks so that as i debug program in codeblocks valgrind called itself and show memory leaks.
View 4 Replies View RelatedFor example, in GDB we talk about breakpoints, watchpoints and core dumps etc. Similarly what are the 'must knows' in Valgrind?
P.S. I don't need any links to Valgrind manuals, I already have them.
For some reason valgrind can't give an exact line number for memory leaks. I installed all of the debuginfo packages and I am compiling my program (gWaei) with the -g and -O1 flags. I just don't know anymore. Specifically the libwaei ones are worrying.
Code:
==26794== Memcheck, a memory error detector
==26794== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==26794== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info
[code]....
I downloaded the source for the latest valgrind and ran ./configure. It quits saying:
Quote:
checking the GLIBC_VERSION version... unsupported version
configure: error: Valgrind requires glibc version 2.2 - 2.10
I've seen a slackbuild package for it. I'd like to have valgrind installed, but I'd prefer installing from source. Are unofficial packages the only way to go for the newest or newer release? EDIT: I meant to ask also, very important, what problems could arise from installing a slightly older version? I don't need a long, complex answer. Just off the top of your head, if it would be real stupid to do, let me know. I can google some time.
I'm trying to ensure an app starts on boot up but after MySQL has been started. I can't however locate where MySQL is being started. If I do a chkconfig, it says MySQL is off, yet I can readily access my databases with phpmyadmin.If I look at my boot log, I can see it says MySQL Server is started, right after Apache2 is started.In my rc5.d directory, I only see a symbolic link for Apache2 but nothing for MySQL. The startup script for MySQL appears in /etc/init.d.rc.local has got nothing in it but comments. So it appears to me like it's being run on startup, but not as a service. But I have next to no knowledge of Linux so don't put too much belief in that.I would have originally installed MySQL via apt-get.
View 1 Replies View RelatedMy problem is that my fan will keep running quite quickly once started. It will keep running till reboot independently of CPU usage and temperature. To check the temperature I installed lm-sensors. Output of temperature related commands and kernel version are below. Shouldnt they all give the temperature? My machine is a Toshiba Satellite pro L300. Eg. at the moment my fan is running quite quickly although CPU usage is 3-4% and the temperature according to lm-sensors is approximately 40-45 degrees Celcius.
Code:
:~$ acpi --thermal
Battery 0: Full, 100%
Thermal 0: ok, 0.0 degrees C
:~$ cat /proc/acpi/thermal_zone/THRM/temperature
[Code].....
there's a little app called F.Lux that sets your screen temperature based on the time of day. The Linux version is a little spartan with just a console interface but it works perfectly well. The question I have is where can I invoke it so that it starts up after X has started?
View 4 Replies View RelatedI tried to start a tcsh on my Fedora 7 (default shell is bash)
[ss@ssvm ~]$ tcsh
[ss@ssvm ~]$ echo $SHELL
/bin/bash
As you see, another bash shell started.
I looked at the tcsh file:
[ss@ssvm ~]$ ll /bin/tcsh
-rwxr-xr-x 1 root root 345348 2007-02-26 23:58 /bin/tcsh
[ss@ssvm ~]$ ll /bin/csh
lrwxrwxrwx 1 root root 4 2010-03-07 13:13 /bin/csh -> tcsh
It is not a link (but csh is). I don't understand why this is happening.
I am a Windows user. I work as a web developer. I would like to start using Linux, slowly perhaps as my main OS. I would like to know more abt Linux, like what Anti-Virus/Firewalls are recommended (if needed?) abit more abt the shell commands. And in general, how do what I do in Windows map to Linux
View 5 Replies View RelatedConsider I am logged on a machine via SSH.I execute a process having "&" at the end from a shell - I run the process in background.Then I log off from the machine.I am just wondering if it is possible to bring that process to front after I log onto the machine again?I would like to check the output of my running process.Or is there any different approach to have a process running in background and to be able to view its output (i.e. printf)
View 3 Replies View RelatedCentos 5.4 64bitWould like to know when a particular process was started.1.Quote:ll -d /proc/4014/dr-xr-xr-x 5 mysql mysql 0 Nov 28 07:34 /proc/4014/2.Quote:ps -o pid,lstart -p 4014 PIDSTARTED 4014 Tue Nov 17 23:10:13 20091) Which one should I consider?2) why do both have such a difference?
View 1 Replies View RelatedI've run into what is apparently an age-old SSH problem, which is that killing an ssh client process does not kill the remote process (unlike e.g. rsh). There seem to be lots of patches and a couple of open bugs on this topic that have been there for about 10 years or so... Having convinced myself by googling that there is no easy solution, I'm now looking for a workaround of some sort. I'm writing a testing framework so the processes I'm running remotely could be anything at all, i.e. I only have control of the client side. Also the remote processes are of course highly unstable and I need to be able to terminate them if they hang. ssh -t won't work for me as I don't necessarily have a terminal. Finding the remote process ID would be enough so I can do ssh <machine> kill <pid>, but I don't see any way to do that either. Just using ps, pgrep etc seems to suffer from not being able to uniquely identify the correct process, and killing the wrong process is of course very bad.
View 14 Replies View RelatedI have a laptop with SuSE 11.2 installed, worked all like a charm.Then the problems started :I lost my display (it is dark, you can see very very faint the desktop from time to time)Clearly a hardware problem.So, I attached an external screen. Only this shows nothing, cannot get it activated.Since the laptop automatically boots into our LAN, i just started it, and connected via SSH from an other computer.No problem i have a shell.Then I thought to be clever, and activated the pure-ftp demon, so I can download all interesting files to a new computer. I activated it with / as shared directory.After that, I could not boot the laptop anymore, it did not connect to the network.
After a lot of try-outs I finally managed to get the external screen working (only after GDM is started, i can see the workspace, nothing at boot time).Then I found out that the network would not start anymore, actually I could not even start yast or a su shell.After some investigation, I found that pure-ftp had changed the owner of all files in the / partition to ftp (and the group also to ftp)So, su has no access rights anymore to /etc/shadow, and thus cannot verify my root password anymore.Now i'm stuck. I can work as normal user on the old machine, but no network, the DVD wont write anymore and usb sticks don't open anymore.I cannot boot the system in single usermode, since then I have no screen.Has anybody here the brilliant idea I need to get the files out of this machine, without taking the disc out(would not know how to do that anyway).
i have installed ubuntu 11.04 linux by wubi (windows 7 ultimate is the other operating system). after some logins it started disconnect from internet.
View 11 Replies View RelatedIf you start a transmission then shutdown unintentionally, what happens to transmission? This hasn't happened recently, but the question sticks in my mind. I was downloading 2 files. I opened raw package which, at the time I didn't have BT or FDM or any other type of transmission at that point I shutdown system. I'm assuming it picked up after restarting computer. Anyway what I really want to know is if I only shutdown os and not the transmission, when does it actually stop?
View 3 Replies View RelatedI am running Valgrind on my program. It shows me two errors but mentions only addresses against them and not actual code even on a debug build.
The output is
==23002== Memcheck, a memory error detector.
==23002== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==23002== Using LibVEX rev 1575, a library for dynamic binary translation.
[code]....
I am using a script to start an application (with GUI, i.e. windows) in KDE. However, the window will always appear on the currently used desktop. I would like to define which desktop the application will appear to be able to just run in invisible in the background. How can I do this for KDE?
View 1 Replies View RelatedWhat is the first Matlab release that fully supports 64-bit? Is it 2010a? I've got 64-bit installations of Linux and Mac OS X, and want to make sure I install a copy of Matlab that takes full advantage of 64-bit and the resulting larger memory support.
View 1 Replies View RelatedMaybe some torrent client for Linux can understand the metadata generated by a Windows client. Or maybe there is a Web/Desktop client that works in both systems. Is there any way to do that?I use uTorrent for Windows, and I haven't used any torrent client on my Ubuntu 11.04 yet. But if the solution uses other client for Windows, it will work for me.
View 2 Replies View RelatedI started to prepare myself to RHCSA certificate from RedHat. In order to get this cert I have to pass exam EX200.THe best way to prepare would be to take part in courses RH124 and RH135 but I don't have cash for this and that's why I decided to prepare by myself.I downloaded ebook and have some experience in linux administration :McGraw.Hill.RHCE.Red.Hat.Certified.Engineer.Linux.Study.Guide.Exam.RH302.5th.Edition.Jun.2007Do you think that's enough to pass this EX200 exam ?Maybe someone have torrents to RH124 and RH135 courses ?
View 8 Replies View RelatedI've installed a JBoss-JON-Agent on a Linux-machine. Normally to start the JON-Agent I have to go to /opt/jboss/VGER1/Agent/bin/ and run ./ rhq-agent-wrapper.sh startBut sometimes the Linux-machine will be restarted and I have to start the JON-Agent manually.Now what I want is: when the Linux-machine is restarting, the JON-Agent will be restarted.
View 4 Replies View RelatedI running ubuntu 9.04 server edition,I place a pci expressmodel PEX8S952 8 Port PCI Express Serial Card ,and ports are disable there is a place
View 4 Replies View RelatedWhat's even weirder is it unlocks when I press power on my desktop. When it freezes, I have several windows opened, and I'm switching between windows. I can still move the mouse, but cant click anywhere. Cant select anything yet there are still cursors flashing (text editor or terminal). The only thing that will unfreeze everything is the signal from pressing power (not rebooting, just quickly pressing power).
Processor: I7
VGA compatible controller: nVidia Corporation G92 [GeForce GTS 250] (rev a2)
I need to kill a process which has been started by user2 if I am user1 without being sudoers or using root.Do you know if there is a way of setting that when launching the process? Such as a list of users allowed to kill the process?
View 7 Replies View RelatedI have created a Radius startup script in /etc/init.d for Debian which looks like this:
Now this works but when I boot my server it shows as ready to process requests and it doesnt login. I cant get a login prompt. If I do a CTRL C to try close this it doesnt work and just shows CTRL C on the screen, I can type in kill radius but nothing happens.
I guess its because my script is in debugging mode, most of the suggestions for a script said I should use:
However the radiusd a doesnt work and if I try to run using command radiusd in it comes up and says invalid command and I dont have the option to use
So if this script runs on my server, I could connect to the server through a putty session via port 22 and log on fine and do what I need too, but if I try to connect to the server directly after boot its just sitting on ready to process requests and I cannot do anything when directly at the server. On one particular server I didnt have the network confg right so I couldnt putty to it and now Im a bit stuck. Will I need to rebuild my server? As I canït break out of this ready to process requests and I cannot login as its just sitting there, I have tried connecting through serial management via my laptop but I cant do anything this way either the only way I could do anything was if I could get through to the server on putty.
There must be a way when directly at the server to cancel the radius and get logged in? As Ive mentioned CTRL C doesnt work. I can get to the ok prompt but not sure what command to use and if I could change the network config at the ok prompt or if I could somehow cancel the startup script at the ok prompt? I thought I could use the init commands to start the server without the script starting but the init commands don�t work and the server just sits there.
Also I guess I shouldnt be using radius X in my startup script, to prevent this problem is there something else I should be using? I tried using radius x (the small x) and I hit enter and then no process for radius starts .