Re: [Sablevm-user] crash in FindClass() from sablevm/sablevm.c
Brought to you by:
egagnon
From: Emile S. <es...@go...> - 2002-08-23 19:54:13
|
On Fri, 2002-08-23 at 08:27, Etienne M. Gagnon wrote: > Hi Emile, > > Try commenting the PACKAGE and VERSION macro definitions in the libffi > header files on your system. (/usr/include/ffi.h probably?) Found them in /usr/local/include/fficonfig.h which ffi.h includes. This seems to have done it; thanks! > You should have got compiler warnings about redefinition of these > macros. This is a bug in libffi. > > You should provide more details about your platform (GNU/Linux version > (or BSD?), processor, gcc vdrsion used, ...) in the future. It helps > people to help you... OK, sorry about that. thanks for the help, -emile > Etienne > > On Thu, Aug 22, 2002 at 09:10:38AM -0700, Emile Snyder wrote: > > Hello, > > > > I recently downloaded 1.0.3 of sablevm, the native class package, and > > the classes package. I put them all in /usr/local/src and unpacked them > > there, downloaded/built/installed libffi-1.20, then as root ran > > > > [root@basalt /usr/local/src]# ./sablevm-1.0.3/build-many > > > > And everything seemed to work fine. However, I can't seem to get the vm > > to run any java ;) The gdb session/backtrace follows. It looks like > > it's dying while trying to find the java.lang.String class in order to > > build the array of argv for the main() method call. If I run the > > non-debug version of sablevm outside the debugger, it just hangs. > > > > Has anyone else had similar problems? Any tips? > > > > thanks, > > -emile > > > > > > ------------------------------------------------------------------- > > backtrace stuff. (Echo is a 'hello world' style java class that I tried > > compiling with both jikes 1.16 and gcj 2.96.) > > ------------------------------------------------------------------- > > > > [esnyder@basalt ~/dev/test]$ gdb /usr/local/bin/sablevm-debug > > (gdb) run Echo > > Starting program: /usr/local/bin/sablevm-debug Echo > > [New Thread 1024 (LWP 17889)] > > > > SableVM version 1.0.3 > > Copyright (C) 2000-2002 Etienne M. Gagnon <eti...@uq...> and > > others. All rights reserved. > > > > This software comes with ABSOLUTELY NO WARRANTY. This is free > > software, and you are welcome to redistribute it under certain > > conditions. > > > > To get the name of all copyright holders and detailed license > > information, type "sablevm --license" or look in the directory > > "/usr/local/share/sablevm". > > > > The SableVM web site is located at http://www.sablevm.org/ . > > > > > > Program received signal SIGSEGV, Segmentation fault. > > [Switching to Thread 1024 (LWP 17889)] > > 0x400f1f26 in lt_dlsym () from /usr/lib/libltdl.so.3 > > (gdb) bt > > #0 0x400f1f26 in lt_dlsym () from /usr/lib/libltdl.so.3 > > #1 0x400813de in Java_java_lang_Runtime_nativeLoad > > (_env=3D0x804d4e0,=20 > > this=3D0x8060588, _filename=3D0x8060578) at java_lang_Runtime.c:230 > > #2 0x400ecf09 in ffi_call_SYSV () from /usr/local/lib/libffi.so.1 > > #3 0x400ecede in ffi_call (cif=3D0x4117df20,=20 > > fn=3D0x400812ac <Java_java_lang_Runtime_nativeLoad>, > > rvalue=3D0xbfffe4cc,=20 > > avalue=3D0x804f794) at ./x86/ffi.c:184 > > #4 0x40030d38 in _svmf_invoke_native_nonstatic (env=3D0x804d4e0) > > at native.c:1171 > > #5 0x4006b058 in _svmf_interpreter (_env=3D0x804d4e0) > > at instructions_switch.c:9839 > > #6 0x40026291 in _svmh_invoke_specific_static_clinit > > (env=3D0x804d4e0,=20 > > method=3D0x411752b4) at method_invoke.c:5061 > > #7 0x4008107d in Java_java_lang_Class_step8 (_env=3D0x804d4e0,=20 > > _class=3D0x80605c8, vmData=3D0x8060820) at java_lang_Class.c:936 > > #8 0x400ecf09 in ffi_call_SYSV () from /usr/local/lib/libffi.so.1 > > #9 0x400ecede in ffi_call (cif=3D0x4112b72c,=20 > > fn=3D0x40080fdc <Java_java_lang_Class_step8>, > > rvalue=3D0xbfffe720,=20 > > avalue=3D0x804f644) at ./x86/ffi.c:184 > > #10 0x40030568 in _svmf_invoke_native_static (env=3D0x804d4e0) at > > native.c:834 > > #11 0x4006afb0 in _svmf_interpreter (_env=3D0x804d4e0) > > at instructions_switch.c:9791 > > #12 0x4001f127 in _svmh_invoke_nonvirtual_jlclass_initialize > > (env=3D0x804d4e0,=20 > > ---Type <return> to continue, or q <return> to quit--- > > this=3D0x80609f8, param_1=3D1) at method_invoke.c:352 > > #13 0x4003a963 in _svmf_class_initialization (env=3D0x804d4e0, > > class=3D0x41173c50) > > at initialization.c:24 > > #14 0x40072034 in _svmf_interpreter (_env=3D0x804d4e0) > > at instructions_switch.c:16329 > > #15 0x40024b05 in _svmh_invoke_static_stringcreator_createinternedstring > > ( > > env=3D0x804d4e0, param_1=3D0x8060810, ret=3D0x8060a18) at > > method_invoke.c:4072 > > #16 0x4002709d in _svmf_get_interned_string (env=3D0x804d4e0,=20 > > value=3D0x4116c90c "java-lang", str=3D0x8060a18) at util2.c:1018 > > #17 0x40028411 in _svmf_resolve_CONSTANT_String (env=3D0x804d4e0,=20 > > stringref=3D0x4116c8f4) at resolve.c:743 > > #18 0x4006d61c in _svmf_interpreter (_env=3D0x804d4e0) > > at instructions_switch.c:12740 > > #19 0x40026291 in _svmh_invoke_specific_static_clinit > > (env=3D0x804d4e0,=20 > > method=3D0x4116e728) at method_invoke.c:5061 > > #20 0x4008107d in Java_java_lang_Class_step8 (_env=3D0x804d4e0,=20 > > _class=3D0x80607e0, vmData=3D0x80607d0) at java_lang_Class.c:936 > > #21 0x400ecf09 in ffi_call_SYSV () from /usr/local/lib/libffi.so.1 > > #22 0x400ecede in ffi_call (cif=3D0x4112b72c,=20 > > fn=3D0x40080fdc <Java_java_lang_Class_step8>, > > rvalue=3D0xbfffeca4,=20 > > avalue=3D0x804f408) at ./x86/ffi.c:184 > > #23 0x40030568 in _svmf_invoke_native_static (env=3D0x804d4e0) at > > native.c:834 > > #24 0x4006afb0 in _svmf_interpreter (_env=3D0x804d4e0) > > ---Type <return> to continue, or q <return> to quit--- > > at instructions_switch.c:9791 > > #25 0x4001f127 in _svmh_invoke_nonvirtual_jlclass_initialize > > (env=3D0x804d4e0,=20 > > this=3D0x8060320, param_1=3D1) at method_invoke.c:352 > > #26 0x4003a963 in _svmf_class_initialization (env=3D0x804d4e0, > > class=3D0x4116b198) > > at initialization.c:24 > > #27 0x40072034 in _svmf_interpreter (_env=3D0x804d4e0) > > at instructions_switch.c:16329 > > #28 0x40024b05 in _svmh_invoke_static_stringcreator_createinternedstring > > ( > > env=3D0x804d4e0, param_1=3D0x80607f0, ret=3D0x80603a0) at > > method_invoke.c:4072 > > #29 0x4002709d in _svmf_get_interned_string (env=3D0x804d4e0,=20 > > value=3D0x41151410 > > "SS=CA=BCNJ=CC\214=CE\231=CC\210=CC\201=CE=A5=CC\210=CC\201=D4=B5=D5\222H= > > =CC=B1T=CC\210W=CC\2 > > 12Y=CC\212A=CA=BE=CE=A5=CC\223=CE=A5=CC\223=CC\200=CE=A5=CC\223=CC\201=CE= > > =A5=CC\223=CD\202=E1=BC\210=CE\231=E1=BC\211=CE\231=E1=BC\2 > > 12=CE\231=E1=BC\213=CE\231=E1=BC\214=CE\231=E1=BC\215=CE\231=E1=BC\216=CE\2= > > 31=E1=BC\217=CE\231=E1=BC\210=CE\231=E1=BC\211=CE > > \231=E1=BC\212=CE\231=E1=BC\213=CE\231=E1=BC\214=CE\231=E1=BC\215=CE\231=E1= > > =BC\216=CE\231=E1=BC\217=CE\231=E1=BC=A8=CE\231=E1=BC > > =A9=CE\231=E1=BC=AA=CE\231=E1=BC=AB=CE\231=E1=BC=AC=CE\231=E1=BC=AD=CE\231= > > =E1=BC=AE=CE\231=E1=BC=AF=CE\231=E1=BC=A8=CE\231=E1=BC=A9=CE\231=E1=BC=AA= > > =CE\231=E1=BC > > =AB=CE"..., str=3D0x80603a0) at util2.c:1018 > > #30 0x40028411 in _svmf_resolve_CONSTANT_String (env=3D0x804d4e0,=20 > > stringref=3D0x411513f8) at resolve.c:743 > > #31 0x4006d61c in _svmf_interpreter (_env=3D0x804d4e0) > > at instructions_switch.c:12740 > > #32 0x40026291 in _svmh_invoke_specific_static_clinit > > (env=3D0x804d4e0,=20 > > method=3D0x4115351c) at method_invoke.c:5061 > > #33 0x4008107d in Java_java_lang_Class_step8 (_env=3D0x804d4e0,=20 > > ---Type <return> to continue, or q <return> to quit--- > > _class=3D0x805fea0, vmData=3D0x805fe90) at java_lang_Class.c:936 > > #34 0x400ecf09 in ffi_call_SYSV () from /usr/local/lib/libffi.so.1 > > #35 0x400ecede in ffi_call (cif=3D0x4112b72c,=20 > > fn=3D0x40080fdc <Java_java_lang_Class_step8>, > > rvalue=3D0xbffff228,=20 > > avalue=3D0x804f1e4) at ./x86/ffi.c:184 > > #36 0x40030568 in _svmf_invoke_native_static (env=3D0x804d4e0) at > > native.c:834 > > #37 0x4006afb0 in _svmf_interpreter (_env=3D0x804d4e0) > > at instructions_switch.c:9791 > > #38 0x4001f127 in _svmh_invoke_nonvirtual_jlclass_initialize > > (env=3D0x804d4e0,=20 > > this=3D0x805fd48, param_1=3D1) at method_invoke.c:352 > > #39 0x4003a963 in _svmf_class_initialization (env=3D0x804d4e0, > > class=3D0x4114e918) > > at initialization.c:24 > > #40 0x4005fb8d in FindClass (_env=3D0x804d4e0, name=3D0x804b5e9 > > "java/lang/String") > > at native_interface.c:23706 > > #41 0x0804a8f1 in main (argc=3D2, argv=3D0xbffff534) at sablevm.c:1391 > > #42 0x42017499 in __libc_start_main () from /lib/i686/libc.so.6 > > > > > > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: OSDN - Tired of that same old > > cell phone? Get a new here for FREE! > > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > > _______________________________________________ > > Sablevm-user mailing list > > Sab...@li... > > https://lists.sourceforge.net/lists/listinfo/sablevm-user > > > > -- > Etienne M. Gagnon http://www.info.uqam.ca/~egagnon/ > SableVM: http://www.sablevm.org/ > SableCC: http://www.sablecc.org/ > > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > _______________________________________________ > Sablevm-user mailing list > Sab...@li... > https://lists.sourceforge.net/lists/listinfo/sablevm-user |