From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keith Seitz To: Andrew Cagney Cc: Jim Blandy , Subject: Re: [RFC] sigsetjmp/siglongjmp on cygwin Date: Mon, 13 Aug 2001 15:43:00 -0000 Message-id: References: <3B7856B7.1000108@cygnus.com> X-SW-Source: 2001-08/msg00150.html On Mon, 13 Aug 2001, Andrew Cagney wrote: > > Would love to do this, but, unfortunately, writing a simple test to do > > this is not so easy. The problem is that sigsetjmp/siglongjmp are, for > > lack of a better phrase, "flakey". Ever simple testcase I come up with > > works just fine, but I can get gdb to crash instantly... > > > Yes, I think that is what every one is stumped on. Making it more > difficult, a compile time rather than a runtime test is probably needed > - otherwize it won't be possible to canadian cross GDB. > > Perhaphs the real problem is GDB corrupting its stack? Can you explain > the test case or is it just ``normal use''? It's easy to reproduce once you have gdb built with sigsetjmp/siglongjmp. Just boot Win98 and run gdb. Do something, ANYTHING to call return_to_top_level. I did "info func" on gdb. When the pager was done outputting the first page of functions, I asked it to "quit" instead of continuing the listing. Boom! It died immediately. Of course, the bigger problem for me is that Insight causes gdb to call return_to_top_level all the darn time, so Insight crashes immediately. :-( Keith