[kaffe] frustrating news regarding the pthread instability

Noa Resare noa at resare.com
Fri Oct 22 05:31:27 PDT 2004


ons 2004-10-20 klockan 18:47 +0200 skrev Guilhem Lavaux:
> Noa Resare wrote:
> > ons 2004-10-20 klockan 08:00 +0200 skrev Guilhem Lavaux:
> > 
> >>I have identified and patched a race vulnerability which happens at 
> >>thread destruction and another one (thanks to helmer) which happens at 
> >>thread creation. I'll try to commit it this evening.
> >>
> >>Thanks for looking for the problem.
> >>
> >>Cheers,

After four hours of testing I got this lockup. The attached file is the
output of the gdb command "thread apply all bt". I am not very good at
decoding what is actually happening, so I just send it in the hopes that
it will be obvious someone (hello Guilhem *smile*).

cheers/noa
-------------- next part --------------

Thread 4 (Thread -159040592 (LWP 28773)):
#0  0x00a83782 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00cf1756 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0
#2  0x0036c2ac in jcondvar_wait (cv=0x98b5e58, mux=0x98b5e40, timeout=-1)
    at ../../../../../kaffe/kaffe/kaffevm/systems/unix-pthreads/lock-impl.c:67
#3  0x0034840d in ksemGet (sem=0x98b5e40, timeout=Unhandled dwarf expression opcode 0x93
) at ../../../kaffe/kaffe/kaffevm/ksem.c:56
#4  0x0034897e in locks_internal_waitCond (lkp=0x5b3558, timeout=0, heavyLock=0x5b355c) at thread-internal.h:175
#5  0x005af6b1 in finaliserMan (arg=0x5b35a8) at ../../../../kaffe/kaffe/kaffevm/kaffe-gc/gc-incremental.c:876
#6  0x0034ecdc in startSpecialThread (arg=0xfefc8f80) at ../../../kaffe/kaffe/kaffevm/thread.c:308
#7  0x0036e629 in tRun (p=0x98b5e38) at ../../../../../kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c:700
#8  0x00ceef5c in start_thread () from /lib/tls/libpthread.so.0
#9  0x001d450a in clone () from /lib/tls/libc.so.6

Thread 3 (Thread -159110224 (LWP 28774)):
#0  0x00a83782 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00cf1756 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0
#2  0x0036c2ac in jcondvar_wait (cv=0x9a2e048, mux=0x9a2e030, timeout=-1)
    at ../../../../../kaffe/kaffe/kaffevm/systems/unix-pthreads/lock-impl.c:67
#3  0x0034840d in ksemGet (sem=0x9a2e030, timeout=Unhandled dwarf expression opcode 0x93
) at ../../../kaffe/kaffe/kaffevm/ksem.c:56
#4  0x0034897e in locks_internal_waitCond (lkp=0x5b3524, timeout=0, heavyLock=0x5b3528) at thread-internal.h:175
#5  0x005b03bc in gcMan (arg=0x5b35a8) at ../../../../kaffe/kaffe/kaffevm/kaffe-gc/gc-incremental.c:512
#6  0x0034ecdc in startSpecialThread (arg=0xfefc8f80) at ../../../kaffe/kaffe/kaffevm/thread.c:308
#7  0x0036e629 in tRun (p=0x9a2e028) at ../../../../../kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c:700
#8  0x00ceef5c in start_thread () from /lib/tls/libpthread.so.0
#9  0x001d450a in clone () from /lib/tls/libc.so.6

Thread 2 (Thread -160449616 (LWP 28779)):
#0  0x00a83782 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00cf1756 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0
#2  0x0036c2ac in jcondvar_wait (cv=0x9a2ed68, mux=0x9a2ed50, timeout=-1)
    at ../../../../../kaffe/kaffe/kaffevm/systems/unix-pthreads/lock-impl.c:67
#3  0x0034840d in ksemGet (sem=0x9a2ed50, timeout=Unhandled dwarf expression opcode 0x93
) at ../../../kaffe/kaffe/kaffevm/ksem.c:56
#4  0x0034897e in locks_internal_waitCond (lkp=0x9aa5878, timeout=0, heavyLock=0x0) at thread-internal.h:175
#5  0x004b7909 in java_lang_VMObject_nativeWait (o=0x9aa5874, timeout=0, ns=0)
    at ../../../../kaffe/libraries/clib/native/Object.c:112
#6  0x09a90dbd in ?? ()
#7  0x09aa5874 in ?? ()
#8  0x00000000 in ?? ()

Thread 1 (Thread -151053888 (LWP 28771)):
#0  0x00a83782 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00cf1756 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0
#2  0x0036c2ac in jcondvar_wait (cv=0x98b5048, mux=0x98b5030, timeout=-1)
    at ../../../../../kaffe/kaffe/kaffevm/systems/unix-pthreads/lock-impl.c:67
#3  0x0034840d in ksemGet (sem=0x98b5030, timeout=Unhandled dwarf expression opcode 0x93
) at ../../../kaffe/kaffe/kaffevm/ksem.c:56
#4  0x0034897e in locks_internal_waitCond (lkp=0x9aa5648, timeout=0, heavyLock=0x0) at thread-internal.h:175
#5  0x004b7909 in java_lang_VMObject_nativeWait (o=0x9aa5644, timeout=0, ns=0)
    at ../../../../kaffe/libraries/clib/native/Object.c:112
#6  0x09a90dbd in ?? ()
#7  0x09aa5644 in ?? ()
#8  0x00000000 in ?? ()


More information about the kaffe mailing list