Subject: kern/31386: pthreads programs die in pthread__sched_bulk
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <tokuda@tokuda.net>
List: netbsd-bugs
Date: 09/24/2005 19:24:01
>Number:         31386
>Category:       kern
>Synopsis:       pthreads programs die in pthread__sched_bulk
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 24 19:24:01 +0000 2005
>Originator:     Hiroshi TOKUDA
>Release:        NetBSD obs266 3.99.9 NetBSD 3.99.9
>Organization:
Hiroshi TOKUDA
>Environment:
System : NetBSD obs266 3.99.9 NetBSD 3.99.9 (OPENBLOCKS266) #0: Sat Sep 24 17:33:38 UTC 2005 root@mini:/usr/export/o/20050924/evbppc/sys/arch/evbppc/compile/OPENBLOCKS2
66 evbppc
Machine : OpenBlockS266
>Description:
Programs die repeatedly with the following error:

obs266$ dig
assertion "qhead->pt_spinlocks == 0" failed: file "/usr/export/s/20050924/src/lib/libpthread/pthread_run.c", line 266, function "pthread__sched_bulk"
obs266$ gdb /usr/bin/dig
GNU gdb 5.3nb1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc--netbsd"...(no debugging symbols found)...
(gdb) run
Starting program: /usr/bin/dig 
(no debugging symbols found)...(no debugging symbols found)...
assertion "qhead->pt_spinlocks == 0" failed: file "/usr/export/s/20050924/src/lib/libpthread/pthread_run.c", line 266, function "pthread__sched_bulk"
(no debugging symbols found)...
Program received signal SIGABRT, Aborted.
0x419c863c in ?? () from /usr/lib/libc.so.12
(gdb) quit
The program is running.  Exit anyway? (y or n) y
obs266$

>How-To-Repeat:
See above.
>Fix:
I don't know.