public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* gdb & signals
@ 1997-09-23 11:41 Fergus Henderson
  0 siblings, 0 replies; 3+ messages in thread
From: Fergus Henderson @ 1997-09-23 11:41 UTC (permalink / raw)
  To: gnu-win32

Hi,

My program, which I think works OK with b17.1,
gets a seg fault or equivalent ("In cygwin_except_handler")
with b18.  On win95, it hangs the OS.  On NT it is not quite
so bad, I can kill the process.  But I'm having trouble debugging
it, because after the first SIGSEGV -- which is expected (my
program is trapping the signal) -- gdb refuses to continue,
complaining that it can't send the signal to the child process.
So I can't reproduce the problem inside gdb.
Also the gdb `attach' command doesn't seen to work either, so
I can't attach to the process after it has hung.

Any hints or suggestions for how to go about debugging this sort
of problem?

-- 
Fergus Henderson <fjh@cs.mu.oz.au>   |  "I have always known that the pursuit
WWW: < http://www.cs.mu.oz.au/~fjh >   |  of excellence is a lethal habit"
PGP: finger fjh@128.250.37.3         |     -- the last words of T. S. Garp.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gdb & signals
  1997-09-24  6:29 Earnie Boyd
@ 1997-09-24 18:54 ` Fergus Henderson
  0 siblings, 0 replies; 3+ messages in thread
From: Fergus Henderson @ 1997-09-24 18:54 UTC (permalink / raw)
  To: Earnie Boyd; +Cc: Cygnus GNU-win32 mailing list

Earnie Boyd wrote:
> 
> >From: Fergus Henderson <fjh@cs.mu.oz.au>
> >
> >My program, which I think works OK with b17.1,
> >gets a seg fault or equivalent ("In cygwin_except_handler")
> >with b18.  On win95, it hangs the OS.  On NT it is not quite
> >so bad, I can kill the process.  But I'm having trouble debugging
> >it, because after the first SIGSEGV -- which is expected (my
> >program is trapping the signal) -- gdb refuses to continue,
> >complaining that it can't send the signal to the child process.
> >So I can't reproduce the problem inside gdb.
> >Also the gdb `attach' command doesn't seen to work either, so
> >I can't attach to the process after it has hung.
> >
> >Any hints or suggestions for how to go about debugging this sort
> >of problem?
> 
> So, which version of cygwin.dll are you using?

I was using b18, although I got the same symptoms with the coolview version.

Anyway I think I've found the cause -- it was the mprotect() in b18.
In b17, there was no mprotect, so my program's configure script noticed
this and didn't try to use it.  In b18, there in an mprotect, but
apparently it doesn't work.

-- 
Fergus Henderson <fjh@cs.mu.oz.au>   |  "I have always known that the pursuit
WWW: < http://www.cs.mu.oz.au/~fjh >   |  of excellence is a lethal habit"
PGP: finger fjh@128.250.37.3         |     -- the last words of T. S. Garp.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gdb & signals
@ 1997-09-24  6:29 Earnie Boyd
  1997-09-24 18:54 ` Fergus Henderson
  0 siblings, 1 reply; 3+ messages in thread
From: Earnie Boyd @ 1997-09-24  6:29 UTC (permalink / raw)
  To: fjh, gnu-win32

>From: Fergus Henderson <fjh@cs.mu.oz.au>
>Subject: gdb & signals
>To: gnu-win32@cygnus.com
>Date: Wed, 24 Sep 1997 04:41:01 +1000 (EST)
>
>Hi,
>
>My program, which I think works OK with b17.1,
>gets a seg fault or equivalent ("In cygwin_except_handler")
>with b18.  On win95, it hangs the OS.  On NT it is not quite
>so bad, I can kill the process.  But I'm having trouble debugging
>it, because after the first SIGSEGV -- which is expected (my
>program is trapping the signal) -- gdb refuses to continue,
>complaining that it can't send the signal to the child process.
>So I can't reproduce the problem inside gdb.
>Also the gdb `attach' command doesn't seen to work either, so
>I can't attach to the process after it has hung.
>
>Any hints or suggestions for how to go about debugging this sort
>of problem?
>
>-- 

So, which version of cygwin.dll are you using?  Let me guess, the one 
from coolview?  Check out the September mail listings at 
http://www.cygnus.com/ml/gnu-win32 .

-        \\||//
---o0O0--Earnie--0O0o----
-earnie_boyd@hotmail.com-
------ooo0O--O0ooo-------


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1997-09-24 18:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-09-23 11:41 gdb & signals Fergus Henderson
1997-09-24  6:29 Earnie Boyd
1997-09-24 18:54 ` Fergus Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).