Re: seg fault produces stackdump with no stack trace

2009-04-10 Thread Christopher Faylor
On Fri, Apr 10, 2009 at 02:28:49PM -0700, Tarmik wrote: >>I just checked in a fix which should keep the stack trace going even >>when it finds a return address of zero. > >>It will be in the next cygwin snapshot at: http://cygwin.com/snapshots/ >>but be advised that this is a 1.7.x version of Cygwi

Re: seg fault produces stackdump with no stack trace

2009-04-10 Thread Tarmik
this message in context: http://www.nabble.com/seg-fault-produces-stackdump-with-no-stack-trace-tp18777069p22994946.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/pro

Re: seg fault produces stackdump with no stack trace

2008-08-04 Thread Steve Waldo
Christopher Faylor writes: > I just checked in a fix which should keep the stack trace going even > when it finds a return address of zero. That'll be great. Thanks much! --Steve -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problem

Re: seg fault produces stackdump with no stack trace

2008-08-01 Thread Christopher Faylor
On Fri, Aug 01, 2008 at 05:55:24PM +, Steve Waldo wrote: >Thanks to all for your prompt replies! Much appreciated. > >I'm amazed that the stack trace is so wimpy. You're right. The algorithm isn't really sophisticated but it shouldn't be quite that bad. I just checked in a fix which should k

Re: seg fault produces stackdump with no stack trace

2008-08-01 Thread Steve Waldo
Brian Dessent dessent.net> writes: > (gdb) bt > #0 0x in ?? () > #1 0x00401052 in letsCrash () at tc.c:4 > #2 0x00401083 in main () at tc.c:9 > (gdb) Many thanks Brian! 'bt' was what I'd forgotten. Sorry about the newbie mistake - I haven't used gdb in ages. I'm actually using 'ddd'

RE: seg fault produces stackdump with no stack trace

2008-08-01 Thread Dave Korn
Steve Waldo wrote on 01 August 2008 18:55: > The real crash is occurring too intermittently to catch it in the > debugger. You need the 'error_start' option of the CYGWIN environment variable; check the cygwin user's guide for more info. cheers, DaveK -- Can't think of a witty .sig

Re: seg fault produces stackdump with no stack trace

2008-08-01 Thread Brian Dessent
Steve Waldo wrote: > 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. Well of *course* the debugger doesn't know what 0x is because that is not a valid program loca

Re: seg fault produces stackdump with no stack trace

2008-08-01 Thread Steve Waldo
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 fo

Re: seg fault produces stackdump with no stack trace

2008-08-01 Thread Christopher Faylor
On Fri, Aug 01, 2008 at 03:24:26PM +, Steve Waldo wrote: >I've seen other postings that show stackdump examples that include the >expected list of addresses in the stack trace. I'm not getting that >list. When my app gets a seg fault it produces the expected stackdump >file: > >[1]- Segmenta

Re: seg fault produces stackdump with no stack trace

2008-08-01 Thread Brian Dessent
Steve Waldo wrote: > but the resulting file contains no stack trace: > > $ cat ResourceMgr.exe.stackdump > Exception: STATUS_ACCESS_VIOLATION at eip= Right there you should see the problem. eip=0 means your program has followed a null pointer and wandered off into lala land, so you shou

RE: seg fault produces stackdump with no stack trace

2008-08-01 Thread Dave Korn
Steve Waldo wrote on 01 August 2008 16:24: > When my app gets a seg fault it produces the expected stackdump file: > > [1]- Segmentation fault (core dumped) ./ResourceMgr > > but the resulting file contains no stack trace: > Is there a setting I'm missing somewhere? Nah, it probably j

seg fault produces stackdump with no stack trace

2008-08-01 Thread Steve Waldo
Hello, I've seen other postings that show stackdump examples that include the expected list of addresses in the stack trace. I'm not getting that list. When my app gets a seg fault it produces the expected stackdump file: [1]- Segmentation fault (core dumped) ./ResourceMgr but the result