This is the mail archive of the
java-prs@sources.redhat.com
mailing list for the Java project.
libgcj/341: Throwable.printStackTrace() isn't working
- To: java-gnats at sourceware dot cygnus dot com
- Subject: libgcj/341: Throwable.printStackTrace() isn't working
- From: bryce at albatross dot co dot nz
- Date: 7 Sep 2000 01:37:10 -0000
- Reply-To: bryce at albatross dot co dot nz
- Resent-Cc: java-prs at sourceware dot cygnus dot com, green at cygnus dot com
- Resent-Reply-To: java-gnats@sourceware.cygnus.com, bryce@albatross.co.nz
>Number: 341
>Category: libgcj
>Synopsis: Throwable.printStackTrace() isn't working
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: tromey
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Sep 06 18:40:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Bryce McKinlay
>Release: gcc version 2.96 20000905 (experimental)
>Organization:
>Environment:
Redhat 7.0 beta:
glibc-2.1.91-18
binutils-2.10.0.18-1
>Description:
I noticed that libgcj's stack trace doesn't seem to be
working properly anymore. This is probibly something to
do with the recent glibc or binutils I'm running.
public class StackTrace
{
public static void main (String[] args) { a(); }
static void a() { b(); }
static void b() { c(); }
static void c() { Thread.dumpStack(); }
}
gets:
$ ./st
java.lang.Exception: Stack trace
at 0x401d500a: java::lang::Throwable::Throwable(java::lang::String *) (/usr/l
ocal/gcc/lib/libgcj.so.1)
at 0x401c8f12: java::lang::Exception::Exception(java::lang::String *) (/usr/l
ocal/gcc/lib/libgcj.so.1)
at 0x401d2381: java::lang::Thread::dumpStack(void) (/usr/local/gcc/lib/libgcj
.so.1)
at 0x0804b8ab: __frame_state_for (./st)
at 0x0804b88b: __frame_state_for (./st)
at 0x0804b86b: __frame_state_for (./st)
at 0x0804b84b: __frame_state_for (./st)
at 0x40238d69: gnu::gcj::runtime::FirstThread::run(void) (/usr/local/gcc/lib/
libgcj.so.1)
at 0x4024360a: java::lang::Thread::run_(java::lang::Object *) (/usr/local/gcc
/lib/libgcj.so.1)
at 0x40254b25: _Jv_ThreadSetPriority(_Jv_Thread_t *, int) (/usr/local/gcc/lib
/libgcj.so.1)
at 0x403c664a: GC_start_routine (/usr/local/gcc/lib/libgcjgc.so.1)
at 0x403e0645: pthread_detach (/lib/libpthread.so.0)
at 0x404d53ca: __clone (/lib/libc.so.6)
addr2line gets:
$ addr2line --functions -e ./st 0x0804b8ab
??
/home/bryce/projects/tests/StackTrace.java:6
so it gets the line number right but can't seem to figure
out the symbol name.
>How-To-Repeat:
try running the test case
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: