From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28678 invoked by alias); 30 Mar 2004 00:41:47 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 28663 invoked by uid 48); 30 Mar 2004 00:41:47 -0000 Date: Tue, 30 Mar 2004 00:41:00 -0000 Message-ID: <20040330004147.28662.qmail@sources.redhat.com> From: "andrew dot gray at anu dot edu dot au" To: java-prs@gcc.gnu.org In-Reply-To: <20040329041331.14767.andrew.gray@anu.edu.au> References: <20040329041331.14767.andrew.gray@anu.edu.au> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug libgcj/14767] gcjlib under FreeBSD does not forward SIGSEGV to SA_SIGINFO handler X-Bugzilla-Reason: CC X-SW-Source: 2004-q1/txt/msg00039.txt.bz2 List-Id: ------- 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