mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
The reason is that the point of failure is in glibc in a file named execve.c The backtrace filtering (which is filename based) cannot distinguish the two execve.c file names. Renaming the testcsae does the trick. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12090
14 lines
236 B
C
14 lines
236 B
C
#include <unistd.h>
|
|
|
|
int main(void)
|
|
{
|
|
char* null_filename = NULL;
|
|
char* bad[2] = { (char*)1, NULL };
|
|
char* good[1] = { NULL };
|
|
|
|
execve(null_filename, bad, bad);
|
|
execve("/bin/true", good, good);
|
|
|
|
return 0;
|
|
}
|