This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcj/24616] linking BC-compiled classes: NoClassDefFoundErrors should be deferred



------- Comment #9 from thebohemian at gmx dot net  2005-11-07 12:51 -------
Ok, more details:
With my patch applied I run the test application in lazylinker.tar.bz2. Set up
the variable CLASSPATH to point to lib/java/lazylinker.jar, start gdb with gij,
set a breakpoint at link.cc:743 and run the interpreter with
"-Dgnu.gcj.precompiled.db.path=lazylinker.gcjdb test.linker.LazyLinker
invokeStaticMethod".

Then step into ffi_call. When it reaches the first 'call' instruction in the
assembler code (SysV.S:55) it crashes.

Here is a backtrace:

#0  0xb6d2f4dc in memcpy () from /lib/tls/libc.so.6
#1  0xb79d788c in ffi_prep_args (stack=0xbff41224 "\200x\016", ecif=0xbff41258)
    at ../../../gcc/libffi/src/x86/ffi.c:108
#2  0xb79d7921 in ffi_call_SYSV () at ../../../gcc/libffi/src/x86/sysv.S:55
#3  0x00028f00 in ?? ()
#4  0x00000000 in ?? ()
#5  0x00000001 in ?? ()
#6  0x00000001 in ?? ()
#7  0xb7f45fb4 in ?? () from /lib/ld-linux.so.2
#8  0x000006f9 in ?? ()
#9  0x08057320 in ?? ()
#10 0xbff41300 in ?? ()
#11 0xbff412a0 in ?? ()
#12 0x08059e50 in ?? ()
#13 0x08059ec8 in ?? ()
#14 0xb6e1874e in test::linker::LazyLinker::main ()
   from /home/rob/devel/test/lazy-linker/lib/bc/lazylinker.so
#15 0xbff41488 in ?? ()
#16 0xb6e1826a in test.linker.LazyLinker.main(java.lang.String[]) ()
   from /home/rob/devel/test/lazy-linker/lib/bc/lazylinker.so
Previous frame inner to this frame (corrupt stack?)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24616


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