On Thu, 2019-12-19 at 00:19 +0000, Rachel Chen (rychen) via Valgrind-users wrote: > Hello, > > I am using Valgrind to debug a memory leak. Somehow when I try to kill the > process to get the log file with memory leak, it crash the system. I am using > the following command to get the pid and kill the pid: > > Ps -ef | grep valgrind. รจ to get the pid > Kill <pid> > > Any idea what might be wrong here? Thanks for the help in advance! > > Thanks, > Rachel
Some more information is needed : * which platform ? * which version of valgrind ? * what is the error message/output when the crash happens ? Note that you can trigger memory leak search from the shell (or from gdb) by using vgdb, without killing your process. See the below links for more information. http://www.valgrind.org/docs/manual/manual-core-adv.html#manual-core-adv.valgrind-monitor-commands http://www.valgrind.org/docs/manual/manual-core-adv.html#manual-core-adv.gdbserver-commandhandling http://www.valgrind.org/docs/manual/mc-manual.html#mc-manual.monitor-commands Philippe _______________________________________________ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users