libgcj/286: Throwable.fillInStackTrace dumps core if backtrace fails
jsturm@detroit.appnet.com
jsturm@detroit.appnet.com
Mon Jul 17 16:16:00 GMT 2000
>Number: 286
>Category: libgcj
>Synopsis: Throwable.fillInStackTrace dumps core if backtrace fails
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: tromey
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jul 17 16:16:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: jsturm@detroit.appnet.com
>Release: CVS trunk
>Organization:
>Environment:
alphapca56-unknown-linux-gnu
>Description:
Throwable.fillInStackTrace dies in an infinite loop if backtrace()
is not implemented. On Alpha (and possibly others) backtrace
always returns zero, causing fillInStackTrace to call _Jv_NewPrimArray
with a size of -1, throwing a NegativeArraySizeException, calling
fillInStackTrace, repeat cycle until stack is exhausted.
>How-To-Repeat:
Run any program that throws an exception.
>Fix:
My workaround is to undef HAVE_BACKTRACE in config.h. Either
autoconf could be enhanced to discover a non-functioning backtrace(),
or fillInStackTrace() can handle the zero return at runtime.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Java-prs
mailing list