This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: seg fault produces stackdump with no stack trace
- From: Steve Waldo <steven dot j dot waldo at seagate dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 1 Aug 2008 17:55:24 +0000 (UTC)
- Subject: Re: seg fault produces stackdump with no stack trace
- References: <loom.20080801T151340-446@post.gmane.org>
Thanks to all for your prompt replies! Much appreciated.
I'm amazed that the stack trace is so wimpy. All I did to trigger the example
was to add a call to this function to intentionally crash:
int letsCrash()
{
int (*myfunc)() = 0;
return myfunc();
}
With the debugger, it produces the following message at crash time:
Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb)
Even the debugger didn't know where it was anymore! It's obvious in this case
why it went off in the weeds, but I would have thought the stack would still
be accessible.
The real crash is occurring too intermittently to catch it in the debugger.
That's why I was hoping for a stack trace, so I could at least know which
function to set a breakpoint in.
Thanks again,
--Steve
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/