unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* thread assert with 1.8.2
@ 2007-07-20  0:56 Greg Troxel
  2007-08-16  0:35 ` Kevin Ryde
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Greg Troxel @ 2007-07-20  0:56 UTC (permalink / raw)
  To: guile-devel

I just updated pkgsrc to 1.8.2, and on NetBSD-current/i386 make check
fails in the thread test with:

Running threads.test
guile: Error detected by libpthread: Unlocking unlocked mutex.
Detected by file "/usr/home/gdt/NetBSD-current/src/lib/libpthread/pthread_mutex.c", line 357, function "pthread_mutex_unlock".
See pthread(3) for information.
[1]   Abort trap (core dumped) ${dir}${tst}

The core has several threads, nad this is the one that hit the assert:

(gdb) bt
#0  0xbb9d6bdb in kill () from /usr/lib/libc.so.12
#1  0xbbaa3d9b in pthread__errorfunc () from /usr/lib/libpthread.so.0
#2  0xbbaa1d49 in pthread_mutex_unlock () from /usr/lib/libpthread.so.0
#3  0xbbb9875c in scm_leave_guile () from /usr/home/gdt/NetBSD-current/pkgsrc/lang/guile/work/guile-1.8.2/libguile/.libs/libguile.so.17
#4  0xbbb99c4e in on_thread_exit () from /usr/home/gdt/NetBSD-current/pkgsrc/lang/guile/work/guile-1.8.2/libguile/.libs/libguile.so.17
#5  0xbbaa0e1c in pthread__destroy_tsd () from /usr/lib/libpthread.so.0
#6  0xbbaa5119 in pthread_exit () from /usr/lib/libpthread.so.0
#7  0xbbaa5499 in pthread_setcancelstate () from /usr/lib/libpthread.so.0
#8  0xbb9f9370 in swapcontext () from /usr/lib/libc.so.12

Perhaps someone could try this on Linux with the right magic debug
variables to object to unlocking an unlocked mutex.  (On NetBSD, the
default behavior is to abort on any operation which the standard says is
undefined.)

On NetBSD 4.0ish, which has a different thread implementation, I get the
same assert.




_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-10-04 16:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-20  0:56 thread assert with 1.8.2 Greg Troxel
2007-08-16  0:35 ` Kevin Ryde
2007-08-22 22:36 ` Ludovic Courtès
2007-08-22 23:39   ` Greg Troxel
2007-08-22 23:48   ` Greg Troxel
2007-10-02 16:18 ` Ludovic Courtès
2007-10-04 16:22   ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).