|
From: Mohnish K. <moh...@gm...> - 2011-02-16 01:41:39
|
Hi. I am new to valgrind and want to use it to find memory leak. I have a program that is multi-process, however , we do not call exec after calling fork. I have tried to use the --trace-children=yes option along with -log-file=/tmp/test.%p option. so the complete command looks like valgrind -v --trace-children=yes -log-file=/tmp/test.%p --leak-check=full --num-callers=40 ./<process_name> -process_args.. When I start the process , I only get on log file for the parent process and whatever child processes are forked do not create a new log file. also, I was hoping that the output from the child may be is being directed to the root processes log file, however, then the root processe's log does not have the Process ID of the child processes but just of the root process. Is there a way to have per process log when you are not calling exec or if there is no way to do that, then atleast print the correct process ID in the one log file. I am using valgrind on redhat enterprise linux 5. The version of valgrind is 3.5.0 thanks Mohnish |