This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug libgcj/14767] gcjlib under FreeBSD does not forward SIGSEGV to SA_SIGINFO handler
- From: "andrew dot gray at anu dot edu dot au" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 30 Mar 2004 00:41:47 -0000
- Subject: [Bug libgcj/14767] gcjlib under FreeBSD does not forward SIGSEGV to SA_SIGINFO handler
- References: <20040329041331.14767.andrew.gray@anu.edu.au>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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