This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: [gcj trunk / gnu-classpath] String.format(...) undefined
On Wed, 21 Feb 2007 12:19:18 +0000
Andrew Haley <aph@redhat.com> wrote:
> Try this [...]
The segfault disappears. Though, the tests still fail.
I wonder how to print Java strings with gdb.
'p <var>' or 'p (char*) <var>' do not.
java.lang.annotation.AnnotationTypeMismatchException
at sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:377)
at $Proxy1.value(Unknown Source:0)
at org.junit.runners.Suite.getAnnotatedClasses(Suite.java:58)
at org.junit.runners.Suite.<init>(Suite.java:36)
at java.lang.reflect.Constructor.newInstance(natConstructor.cc:92)
at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:23)
at org.junit.internal.requests.ClassesRequest.getRunner(ClassesRequest.java:21)
at org.junit.runner.JUnitCore.run(JUnitCore.java:109)
at org.junit.runner.JUnitCore.run(JUnitCore.java:100)
at org.junit.runner.JUnitCore.runMain(JUnitCore.java:81)
at org.junit.runner.JUnitCore.main(JUnitCore.java:44)
Backtrace:
(gdb) bt
#0 sun.reflect.annotation.AnnotationInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])java.lang.Object (this=@2b7fb2ac5630, proxy=<value optimized out>,
method=@2b7fb2980a80, args=<value optimized out>)
at /mnt/data/tmp/portage/dev-java/gcj-4.3.0_alpha20070216/work/gcc-4.3-20070216/libjava/classpath/sun/reflect/annotation/AnnotationInvocationHandler.java:377
#1 0x00002b7fb0243132 in run_proxy (cif=@2b7fb2aecd98, rvalue=@7ffffc1bab70, args=@7ffffc1ba9f0, user_data=@2b7fb2aecd68)
at /mnt/data/tmp/portage/dev-java/gcj-4.3.0_alpha20070216/work/gcc-4.3-20070216/libjava/java/lang/reflect/natVMProxy.cc:341
#2 0x00002b7fb0a0af3b in ffi_closure_unix64_inner (closure=@2b7fb2aecd68, rvalue=@7ffffc1bab70, reg_args=@7ffffc1baac0, argp=@7ffffc1bab90)
at /mnt/data/tmp/portage/dev-java/gcj-4.3.0_alpha20070216/work/gcc-4.3-20070216/libffi/src/x86/ffi64.c:563
#3 0x00002b7fb0a0b718 in ffi_closure_unix64 () at /mnt/data/tmp/portage/dev-java/gcj-4.3.0_alpha20070216/work/gcc-4.3-20070216/libffi/src/x86/unix64.S:228
#4 0x00002b7fb0a0b5ec in ffi_call_unix64 () at /mnt/data/tmp/portage/dev-java/gcj-4.3.0_alpha20070216/work/gcc-4.3-20070216/libffi/src/x86/unix64.S:73
#5 0x00002b7fb0a0b476 in ffi_call (cif=@2b7fb2b0c6d8, fn=0x2b7fb2aecd68, rvalue=@7ffffc1badd0, avalue=@7ffffc1bac90)
at /mnt/data/tmp/portage/dev-java/gcj-4.3.0_alpha20070216/work/gcc-4.3-20070216/libffi/src/x86/ffi64.c:428
#6 0x00002b7fb0a0a931 in ffi_java_raw_call (cif=@2b7fb2b0c6d8, fn=0x2b7fb2aecd68, rvalue=@7ffffc1badd0, raw=<value optimized out>)
at /mnt/data/tmp/portage/dev-java/gcj-4.3.0_alpha20070216/work/gcc-4.3-20070216/libffi/src/java_raw_api.c:292
#7 0x00002b7fb021dc49 in _Jv_InterpMethod::run (retp=@7ffffc1bb000, args=@2b7fb2b0c6c0, meth=@2b7fb228d100)
at /mnt/data/tmp/portage/dev-java/gcj-4.3.0_alpha20070216/work/gcc-4.3-20070216/libjava/interpret-run.cc:480
#8 0x00002b7fb0a0a9f5 in ffi_java_translate_args (cif=@2b7fb28f6110, rvalue=@7ffffc1bb000, avalue=@7ffffc1bae80, user_data=@2b7fb28f60d0)
at /mnt/data/tmp/portage/dev-java/gcj-4.3.0_alpha20070216/work/gcc-4.3-20070216/libffi/src/java_raw_api.c:306
#9 0x00002b7fb0a0af3b in ffi_closure_unix64_inner (closure=@2b7fb28f60d0, rvalue=@7ffffc1bb000, reg_args=@7ffffc1baf50, argp=@7ffffc1bb020)
at /mnt/data/tmp/portage/dev-java/gcj-4.3.0_alpha20070216/work/gcc-4.3-20070216/libffi/src/x86/ffi64.c:563
#10 0x00002b7fb0a0b718 in ffi_closure_unix64 () at /mnt/data/tmp/portage/dev-java/gcj-4.3.0_alpha20070216/work/gcc-4.3-20070216/libffi/src/x86/unix64.S:228
...