From: Crispin F. <val...@fl...> - 2003-05-29 09:44:20
|
Hi, The following program is simple test program that cause valgrind (cvs version) to crash out with the mash_LD_PRELOAD... error when it encounters the exec. (the FAQ asked for a test case). #include <stdlib.h> #include <stdio.h> #include <unistd.h> int main( int argc, char ** argv ) { char * arg[] = { "/bin/true", 0 }; char * env[] = { "PATH=/bin", 0 }; execve( "/bin/true", arg, env ); fprintf( stderr, "Failed to exec\n" ); exit(1); } Cheers Crispin |