* RE: b18: cygwin_except_handler failure on deref NULL
@ 1997-09-03 16:43 dahms
1997-09-16 3:44 ` Steven Pemberton
0 siblings, 1 reply; 3+ messages in thread
From: dahms @ 1997-09-03 16:43 UTC (permalink / raw)
To: Steven.Pemberton; +Cc: gnu-win32, dahms
Hi Steven, you wrote:
: (ENQUIRE.EXE 1011) In cygwin_except_handler
: It failed at the point where the program looks to see if dereferencing
: NULL causes a trap (which is done using setjmp, and dereferencing NULL).
I think it worked, because cygwin_except_handler *is* the trap handler!
Do you have an complete example in a dozen of source lines or so?
Bye, Heribert (dahms@ifk20.mach.uni-karlsruhe.de)
-
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: b18: cygwin_except_handler failure on deref NULL
1997-09-03 16:43 b18: cygwin_except_handler failure on deref NULL dahms
@ 1997-09-16 3:44 ` Steven Pemberton
0 siblings, 0 replies; 3+ messages in thread
From: Steven Pemberton @ 1997-09-16 3:44 UTC (permalink / raw)
To: dahms; +Cc: gnu-win32
> Hi Steven, you wrote:
>
> : (ENQUIRE.EXE 1011) In cygwin_except_handler
>
> : It failed at the point where the program looks to see if dereferencing
> : NULL causes a trap (which is done using setjmp, and dereferencing NULL).
>
> I think it worked, because cygwin_except_handler *is* the trap handler!
> Do you have an complete example in a dozen of source lines or so?
My guess is that this would cause the same fault (but I don't have a
PC to hand):
#include <stdio.h>
#include <signal.h>
#include <setjmp.h>
jmp_buf mlab; int v, *p;
void address(sig) int sig; { /* what to do on an address error */
signal(sig, address);
longjmp(mlab, 1);
}
main() {
#ifdef SIGBUS
signal(SIGBUS, address);
#endif
#ifdef SIGSEGV
signal(SIGSEGV, address);
#endif
if (setjmp(mlab) == 0) {
p= 0;
v= *p;
printf("Dereferencing NULL doesn't cause a trap\n");
} else {
printf("Dereferencing NULL causes a trap\n");
}
}
Best wishes,
Steven Pemberton
-
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
* b18: cygwin_except_handler failure on deref NULL
@ 1997-08-26 2:52 Steven Pemberton
0 siblings, 0 replies; 3+ messages in thread
From: Steven Pemberton @ 1997-08-26 2:52 UTC (permalink / raw)
To: gnu-win32
I have a program that generates limits.h and float.h. It is also an
extremely good compiler tester. You can find it at:
http://www.cwi.nl/~steven/enquire.html
An earlier version is part of the gcc distribution and apparently was
used to generate the float.h include file of b18.
Compiling and running it with b18 causes a run-time failure (and bash
hangs) with the message:
(ENQUIRE.EXE 1011) In cygwin_except_handler
I don't know what the 1011 refers to, but if it's a line number, that
is not where it failed.
It failed at the point where the program looks to see if dereferencing
NULL causes a trap (which is done using setjmp, and dereferencing NULL).
Steven Pemberton, CWI, Amsterdam; Steven.Pemberton@cwi.nl
-
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-16 3:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-09-03 16:43 b18: cygwin_except_handler failure on deref NULL dahms
1997-09-16 3:44 ` Steven Pemberton
-- strict thread matches above, loose matches on Subject: below --
1997-08-26 2:52 Steven Pemberton
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).