|
From: Jeroen N. W. <jn...@xs...> - 2005-10-08 07:00:42
|
Hi, > none/tests/execve.c is weird. It just calls execve() on itself. Running > under Valgrind with --trace-children=yes I get an endless recursion. > Running it normally from the shell I don't get that. Any ideas what is > going on? This is a feature of execve that probably cannot be similated by Valgrind, see coregrind/m_syswrap/syswrap-generic.c from line 2419. The name of the exe actually executed is in ARG1, the name to be shown to the user in ARG2[0]. execve.c passes NULL in ARG2[0], preventing recursion. There seems to be no way to tell Valgrind with --trace-children=yes to do the same. Jeroen. |