[Bug libgcj/14767] gcjlib under FreeBSD does not forward SIGSEGV to SA_SIGINFO handler

andrew dot gray at anu dot edu dot au gcc-bugzilla@gcc.gnu.org
Tue Mar 30 00:41:00 GMT 2004


------- Additional Comments From andrew dot gray at anu dot edu dot au  2004-03-30 00:41 -------
Created an attachment (id=6014)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6014&action=view)
Patch to os_dep.c and gcconfig.h to fix this bug

This patch fixes the problem reported here.  The patch is against the
gcc-3.4-20040310 snapshot.  After applying the patch the test program produces
the following:

$ ./gcjsigsegv	j
Using Java
Caught fault
sig = 11
info = 0xbfbff7dc
info->si_code = 12
Exiting

However, the changes in the patch do not appear to completely deal with
supporting FreeBSD's signal handling.  It appears that the reported bug
was due to GC_fault_reset_handler not reinstating a SA_SIGINFO handler
correctly.  This patch fixes that problem.  However, the code in
GC_write_fault_handler should determine the style to the old handler
and use that style when calling it.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14767



More information about the Java-prs mailing list