|
From: Nicholas N. <nj...@cs...> - 2005-07-20 18:26:09
|
On Wed, 20 Jul 2005, parag shah wrote: > i want to run valdring on a process that does not die by itself. the only > way to kill it is usually kill or cltr c . however i cant do that without > killing valgrind. > > so i was wondering if valgrind creates some log file of some kind which it > keeps on updating all the time that the process is running and then uses > this log file at the end of the process to calculate the memory leaks. > > if this is present then i can just kill valgrind and then ask it to analyse > that log file to give me the leak summary. If you Ctrl-C a program running under Valgrind it should terminate and then Valgrind should do it's normal termination actions, including leak checking when you are using Memcheck. So maybe something else is going wrong. You'll have to give more details, such as the program you are running and how you are invoking, what version of Valgrind, etc. If you can produce a small test case that would help a lot. N |