|
From: val_him <hm...@gm...> - 2012-06-06 05:09:06
|
I am using valgrind on a program which runs an infinite loop. As memcheck displays the memory leaks after the end of the program, but as my program has infinite loop it will never end. So is there any way i can dump the data of memory leaks at any time forcefully? Or is there any other tool which can do this job? Thanks -- View this message in context: http://old.nabble.com/valgrind-on-infinite-loop-tp33948946p33948946.html Sent from the Valgrind - Dev mailing list archive at Nabble.com. |
|
From: Philippe W. <phi...@sk...> - 2012-06-06 05:54:30
|
On Tue, 2012-06-05 at 22:08 -0700, val_him wrote: > I am using valgrind on a program which runs an infinite loop. As > memcheck displays the memory leaks after the end of the program, but > as my program has infinite loop it will never end. So is there any way > i can dump the data of memory leaks at any time forcefully? Or is > there any other tool which can do this job? Thanks If you are using Valgrind 3.7.0, you can trigger a leak search (showing full leaks, or the delta compared to the previous search) either from the command line (using vgdb) or from gdb (after having connected to the Valgrind gdbserver). Earlier Valgrind versions have no such functionality. Philippe |