From: Godmar Back (gback@cs.utah.edu)
Date: Sat Dec 19 1998 - 20:48:45 EST
Oh, oh. I think it's a problem with the JNI wrappers; they call
installMethodCode without taking the translatorlock.
Would you check whether wrapping native with the translatorlock fixes it?
Also, what method is translated in frame 6?
Wait --- I bet it's the reaper thread's run method or some such.
This is a result of my recent changes to the translator locking
system.
- Godmar
>
> Archie Cobbs writes:
> > More info on ProcessTest crashes (they seem to be different each time):
>
> Here's another one.. I'm getting these with KAFFE_DEBUG set.
> It takes about 30-40 tries before you get a crash.
>
> Starting program: /usr/local/bin/Kaffe ProcessTest
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x2004bb6c in startInsn (s=0x1aa010, codeInfo=0x0)
> at ../../../kaffe/kaffe/kaffevm/jit/machine.c:512
> 512 SET_INSNPC(const_int(2), CODEPC);
> (gdb) where
> #0 0x2004bb6c in startInsn (s=0x1aa010, codeInfo=0x0)
> at ../../../kaffe/kaffe/kaffevm/jit/machine.c:512
> #1 0x2004bb2b in generateInsnSequence (codeInfo=0x0)
> at ../../../kaffe/kaffe/kaffevm/jit/machine.c:499
> #2 0x2004b821 in finishInsnSequence (codeInfo=0x0, code=0x444294)
> at ../../../kaffe/kaffe/kaffevm/jit/machine.c:388
> #3 0x20039836 in L1144 () at ../../../kaffe/kaffe/kaffevm/jni.c:3709
> #4 0x2003998f in Kaffe_JNI_native (meth=0x3d4d48)
> at ../../../kaffe/kaffe/kaffevm/jni.c:3850
> #5 0x2001cdd1 in native (m=0x3d4d48, einfo=0x444c30)
> at ../../../kaffe/kaffe/kaffevm/external.c:239
> #6 0x20045da6 in translate (meth=0x3d4d48, einfo=0x444c30)
> at ../../../kaffe/kaffe/kaffevm/jit/machine.c:215
> #7 0x200271f4 in soft_fixup_trampoline (_pmeth=0x3e8611)
> at ../../../kaffe/kaffe/kaffevm/soft.c:480
> #8 0x20040df1 in i386_dft1 () at jit.def:1443
> #9 0x200266e6 in L138 () at ../../../kaffe/kaffe/kaffevm/support.c:536
> #10 0x200332b6 in Kaffe_CallVoidMethodV (env=0x2005a810, obj=0x3de2f0,
> meth=0x17c610, args=0x445030 "`\220\005 ")
> at ../../../kaffe/kaffe/kaffevm/jni.c:1010
> #11 0x2003331e in Kaffe_CallVoidMethod (env=0x2005a810, obj=0x3de2f0,
> meth=0x17c610) at ../../../kaffe/kaffe/kaffevm/jni.c:1023
> #12 0x20025361 in firstStartThread (arg=0x3de2f0)
> at ../../../kaffe/kaffe/kaffevm/thread.c:233
> #13 0x2003ae3c in start_this_sucker_on_a_new_frame ()
> at ../../../kaffe/kaffe/kaffevm/systems/unix-jthreads/jthread.c:991
> #14 0x2003af47 in jthread_create (pri=96 '`', func=0x2000 <options+1268>,
> daemon=537235552, jlThread=0x1, threadStackSize=4022322964)
> at ../../../kaffe/kaffe/kaffevm/systems/unix-jthreads/jthread.c:1040
> #15 0xefbfc6c4 in ?? ()
> Error accessing memory address 0x1: Invalid argument.
>
> -Archie
>
> ___________________________________________________________________________
> Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com
>
This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:57:25 EDT