1. service ndmpd stop
2. service ndmpd start
3. valgrind -v --num-callers=50 --log-file=ndmp_valgrind_30_8.log
--leak-check=full /usr/local/ndmp/ndmpd
echo $? Returns 1 after the 3rd command.
Does running ndmpd "by hand" work as the third step?
3. /usr/local/ndmp/ndmpd & # start in background, note the PID
4. ps -ef # does ndmpd show with the same PID as given by the shell?
If "service ndmpd start" does anything other than execute /usr/local/ndmp/ndmpd,
then it may be necessary to add a level of indirection through a shell script
that runs valgrind:
1. service ndmpd stop
2. mv /usr/local/ndmp/ndmpd /usr/local/ndmp/ndmpd.real
3. cat >/usr/local/ndmp/ndmpd <<!EOF!
#!/bin/bash
exec valgrind -v --num-callers=50 --log-file=ndmp_valgrind_30_8.log
--leak-check=full /usr/local/ndmp/ndmpd.real
!EOF!
4. chmod +x /usr/local/ndmp/ndmpd
5. service ndmpd start
--
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users