GCJ application runs not too bad with shared libs, but crasheswith static libs - seems to be in _Jv_MonitorEnter

Mark Wielaard mark@klomp.org
Fri Nov 22 13:29:00 GMT 2002


Hi,
On Fri, 2002年11月22日 at 20:50, Adam Megacz wrote:
> Could you try downloading and running
>> http://dist.xwt.org/xwt-0268.linux.gz
>> It's statically linked, but it crashed for me with newer glibc's.
> This should help determine if it's your compiler or your system.

Thanks. This might also explain an error I am trying to track down this
whole day :( On my main development machine I recently upgraded to glibc
2.3.1. When I got this email I checked on another machine that is still
running glibc 2.2.5 and all seems to work OK there...
I am also seeing strange things when using gij to interpret byte code on
the glibc 2.3.1 system:
#0 0x40873c51 in kill () from /lib/libc.so.6
#1 0x407fa98f in pthread_kill () from /lib/libpthread.so.0
#2 0x407facae in raise () from /lib/libpthread.so.0
#3 0x40874c8a in abort () from /lib/libc.so.6
#4 0x40383c89 in abort () at ../../../gcc/libjava/exception.cc:29
#5 0x40383d3c in size_of_encoded_value (encoding=80 'P')
 at ../../../gcc/gcc/unwind-pe.h:76
#6 0x4038408e in get_ttype_entry (context=0x0, info=0xbfffde98, i=1)
 at ../../../gcc/libjava/exception.cc:166
#7 0x403843d7 in __gcj_personality_v0 (version=1, actions=1, 
 exception_class=5138137972373280321, ue_header=0x6,
context=0xbfffdfc8)
 at ../../../gcc/libjava/exception.cc:336
#8 0x40849024 in _Unwind_RaiseException (exc=0x808cfa0)
 at ../../gcc/gcc/unwind.inc:109
#9 0x40383ce2 in _Jv_Throw (value=0x80a1d20)
 at ../../../gcc/libjava/exception.cc:100
#10 0x403938d0 in java::io::FileDescriptor::open(java::lang::String*,
int) (
 this=0x8075e88, path=0x80a1d20, jflags=1)
 at ../../../gcc/libjava/gcj/cni.h:64
#11 0x403c4570 in
java.io.FileDescriptor.FileDescriptor(java.lang.String, int)
 (this=0x8075e88, path=0x0, mode=0)
 at ../../../gcc/libjava/java/io/FileDescriptor.java:60
#12 0x403c46af in
java.io.FileInputStream.FileInputStream(java.lang.String) (
 this=0x80971b0, name=0x80fde60)
 at ../../../gcc/libjava/java/io/FileInputStream.java:35
#13 0x403c592e in java.io.FileReader.FileReader(java.lang.String)
(this=0x0, 
 name=0x0) at ../../../gcc/libjava/java/io/FileReader.java:90
#14 0x40547d37 in ffi_call_SYSV () at /tmp/ccG7BY05.s:40
#15 0x40547cf7 in ffi_raw_call (cif=0x6, fn=0, rvalue=0x40801b50, 
 fake_avalue=0x0) at ../../../gcc/libffi/src/x86/ffi.c:481
#16 0x4038d34b in _Jv_InterpMethod::run(void*, ffi_raw*)
(this=0x80a7a50, 
 retp=0xbffff588, args=0x8075e88) at
../../../gcc/libjava/interpret.cc:1149
#17 0x4038964d in _Jv_InterpMethod::run_normal(ffi_cif*, void*,
ffi_raw*, void*) (ret=0x0, args=0x0, __this=0x0) at
../../../gcc/libjava/interpret.cc:249
#18 0x40547bac in ffi_closure_raw_SYSV ()
 at ../../../gcc/libffi/src/x86/ffi.c:369
#19 0x40547d37 in ffi_call_SYSV () at /tmp/ccG7BY05.s:40
#20 0x40547cf7 in ffi_raw_call (cif=0x6, fn=0, rvalue=0x40801b50, 
 fake_avalue=0x0) at ../../../gcc/libffi/src/x86/ffi.c:481
#21 0x4038d34b in _Jv_InterpMethod::run(void*, ffi_raw*)
(this=0x809bb00, 
 retp=0xbffff8f0, args=0x8075e88) at
../../../gcc/libjava/interpret.cc:1149
#22 0x4038964d in _Jv_InterpMethod::run_normal(ffi_cif*, void*,
ffi_raw*, void*) (ret=0x0, args=0x0, __this=0x0) at
../../../gcc/libjava/interpret.cc:249
#23 0x40547bac in ffi_closure_raw_SYSV ()
 at ../../../gcc/libffi/src/x86/ffi.c:369
#24 0x4039253f in gnu::gcj::runtime::FirstThread::call_main()
(this=0x80971b0)
 at ../../../gcc/libjava/gnu/gcj/runtime/natFirstThread.cc:46
#25 0x40411838 in gnu.gcj.runtime.FirstThread.run() (this=0x80971b0)
 at ../../../gcc/libjava/gnu/gcj/runtime/FirstThread.java:54
#26 0x4039f83c in _Jv_ThreadRun(java::lang::Thread*) (thread=0x8075e88)
 at ../../../gcc/libjava/java/lang/natThread.cc:285
#27 0x40377a0c in _Jv_RunMain(java::lang::Class*, char const*, int, char
const**, bool) (klass=0x0, name=0xbffffb8a
"gnu.testlet.SimpleTestHarness", argc=1, 
 argv=0x80971b0, is_jar=false) at ../../../gcc/libjava/prims.cc:1010
#28 0x08048980 in main (argc=2, argv=0xbffffa74)
 at ../../../gcc/libjava/gij.cc:156
Darn,
Mark


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /