Subject: lib/26392: libpthread is still broken
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <hira@po6.nsk.ne.jp>
List: netbsd-bugs
Date: 07/21/2004 18:31:01
>Number:         26392
>Category:       lib
>Synopsis:       libpthread is still broken
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 21 09:32:01 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Kouichirou Hiratsuka
>Release:        NetBSD 2.0G
>Organization:
>Environment:
System: NetBSD firefly.localdomain 2.0G NetBSD 2.0G (FIREFLY.MP) #28: Wed Jul 21 08:53:20 JST 2004 root@firefly.localdomain:/usr/src/sys/arch/i386/compile/FIREFLY.MP i386
Architecture: i386
Machine: i386
>Description:
	libpthread still seems to be broken.  firefox-gtk2 sometimes dumps
	core when I start it.  And regxpcom dumped core when I installed
	mozilla-gtk2.  These problems sometimes happen (not always).

% ident /usr/lib/libpthread.so
/usr/lib/libpthread.so:
     $NetBSD: sem.c,v 1.7 2003/11/24 23:54:13 cl Exp $
     $NetBSD: sched.c,v 1.3 2003/03/08 08:03:36 lukem Exp $
     $NetBSD: pthread_sleep.c,v 1.4 2004/07/18 21:24:52 chs Exp $
     $NetBSD: pthread_cancelstub.c,v 1.9 2004/05/21 17:15:42 kleink Exp $
     $NetBSD: pthread_debug.c,v 1.8 2004/03/14 01:19:41 cl Exp $
     $NetBSD: pthread_tsd.c,v 1.2 2003/09/29 09:50:22 wiz Exp $
     $NetBSD: pthread_stack.c,v 1.14 2004/07/20 01:51:49 chs Exp $
     $NetBSD: pthread_sig.c,v 1.35 2004/07/18 21:24:52 chs Exp $
     $NetBSD: pthread_sa.c,v 1.32 2004/07/20 12:40:53 he Exp $
     $NetBSD: pthread_rwlock.c,v 1.7 2004/01/09 18:08:28 cl Exp $
     $NetBSD: pthread_run.c,v 1.17 2004/03/14 01:19:42 cl Exp $
     $NetBSD: pthread_mutex.c,v 1.18 2004/03/14 01:19:42 cl Exp $
     $NetBSD: pthread_lock.c,v 1.12 2004/03/14 12:49:31 he Exp $
     $NetBSD: pthread_cond.c,v 1.15 2004/05/03 09:13:34 kleink Exp $
     $NetBSD: pthread_alarms.c,v 1.10 2004/07/18 21:24:52 chs Exp $
     $NetBSD: pthread.c,v 1.35 2004/07/18 21:24:52 chs Exp $
     $NetBSD: pthread_md.c,v 1.3 2003/03/08 08:03:37 lukem Exp $
     $NetBSD: pthread_specific.c,v 1.10 2003/08/13 18:52:01 nathanw Exp $
     $NetBSD: pthread_barrier.c,v 1.6 2003/03/08 08:03:35 lukem Exp $
     $NetBSD: pthread_attr.c,v 1.3 2003/11/09 18:56:48 christos Exp $

% firefox-gtk2
zsh: 5031 segmentation fault (core dumped)  firefox-gtk2
% gdb /usr/pkg/lib/firefox-gtk2/firefox-bin firefox-bin.core
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 "i386--netbsdelf"...(no debugging symbols found)...
Core was generated by `firefox-bin'.
Program terminated with signal 11, Segmentation fault.
[snip]
(gdb) bt
#0  0xbd542d46 in pthread__resolve_locks () from /usr/lib/libpthread.so.0
#1  0xbd54207f in pthread__upcall () from /usr/lib/libpthread.so.0
(gdb)

# cd /usr/pkgsrc/www/mozilla-gtk2
# make install
===> Checking for vulnerabilities in mozilla-gtk2-1.7nb1
===> Installing for mozilla-gtk2-1.7nb1
[snip]
*** Registering -webcal handler.
*** Registering text/calendar handler.
*** Registering webcal protocol handler.
[1]   Segmentation fault (core dumped) ${SETENV} LD_LIB...
*** Registering -webcal handler.
*** Registering text/calendar handler.
*** Registering webcal protocol handler.
===> [Automatic ELF shared object handling]
===> Registering installation for mozilla-gtk2-1.7nb1
mozilla-gtk2-1.7nb1 requires installed package Xft2-2.1.6
mozilla-gtk2-1.7nb1 requires installed package freetype2-2.1.8
mozilla-gtk2-1.7nb1 requires installed package gtk2+-2.4.4
mozilla-gtk2-1.7nb1 requires installed package jpeg-6bnb1
mozilla-gtk2-1.7nb1 requires installed package libIDL-0.8.3nb1
mozilla-gtk2-1.7nb1 requires installed package png-1.2.5nb6
# ls /usr/pkg/lib/mozilla-gtk2/*.core
/usr/pkg/lib/mozilla-gtk2/regxpcom.core
#

>How-To-Repeat:
	* run firefox several times
	* install mozilla or firefox several times

>Fix:
	Sorry, I don't know.
>Release-Note:
>Audit-Trail:
>Unformatted: