[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: fortune bug ?



On Tuesday 31 May 2005 14:41, Aurélien Campéas wrote:
>     if (stat(file, &staat) == 0)
> 	default:
> 	    perror("fortune: bad juju in is_existant");
> 	    exit(1);
> Do someone knows a tool to expose the call graph of a C program ?

The easiest way might be to run it through strace (strace 2>log fortune), find 
(near the end of the log) where it writes that error message, then look for 
the first stat() call before that in the same log.  Hopefully it'll show what 
it's trying to access.

-- 
Lee.

Please do not CC replies directly to me.  I'll read them on the list.



Reply to: