bug in libgendep? syscall fork

Michael Roitzsch mroi at os.inf.tu-dresden.de
Mon Feb 16 16:52:05 CET 2009


Hi,

> Libgendep also searches for child processes but I still don't find  
> some important calls to open for me (as calls to open for "project",  
> I've marked below).
>
> [...]
> [pid 14965] open("/tmp/ccNZSCCqK.s", O_RDWR|O_CREAT|O_EXCL, 0600) = 3
> [pid 14965] unlink("project")           = 0                      
> <-------NOT FOUND !!!!
> [pid 14965] open("project", O_RDWR|O_CREAT|O_TRUNC, 0666) = 6    
> <-------NOT FOUND !!!!
> [...]
>
> I don't understand why. I have put one printf inside the function  
> ___open like :

Have you also instrumented the fopen() function? The open() entries in  
the strace log might be caused by functions other than open() on the  
libc API level. Perhaps it is best, if you enable the built-in  
debugging in libgendep by setting the VERBOSE macro to 1 in syscall.c  
and recompiling libgendep. Then repeat the strace and see if that  
makes any difference.

Michael





More information about the l4-hackers mailing list