java/5879: throwing exceptions causes SEGV in GCJ-compiled code (Mingw target, SJLJ EH)

adam@xwt.org adam@xwt.org
Thu Mar 7 19:36:00 GMT 2002


>Number:         5879
>Category:       java
>Synopsis:       throwing exceptions causes SEGV in GCJ-compiled code (Mingw target, SJLJ EH)
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 07 19:36:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Adam Megacz
>Release:        trunk and 3.1 branch
>Organization:
>Environment:
Cross compiling from linux to mingw, resultant code was run in win98.
>Description:
When throwing a java exception, sometimes the EH code will segfault in _Unwind_SjLj_RaiseException when attempting to invoke the personality function. Although the bug only happens sometimes, it *always* happens for the program included in the "how-to-repeat" section.

This is a regression; trunk as of 12-Dec-2001 did not have this problem; 13-Dec-2001 does. See email referenced in 'fix' section for further analysis of the ChangeLog entry which caused the bug.
>How-To-Repeat:
public class foo {
public void main(String[] s) {
try{
throw new Exception();
} catch (Exception e) {
}
}
}
>Fix:
http://gcc.gnu.org/ml/java/2002-03/msg00072.html
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Java-prs mailing list