This is the mail archive of the java-prs@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

libgcj/341: Throwable.printStackTrace() isn't working



>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:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]