Subject: pkg/36407: slapd: Error detected by libpthread: Invalid mutex
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <jl+netbsd@lists.wasmer.ca>
List: pkgsrc-bugs
Date: 05/29/2007 12:30:00
>Number:         36407
>Category:       pkg
>Synopsis:       slapd: Error detected by libpthread: Invalid mutex
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 29 12:30:00 +0000 2007
>Originator:     Jean-Luc Wasmer
>Release:        4.0_BETA2
>Organization:
>Environment:
NetBSD  4.0_BETA2 NetBSD 4.0_BETA2 (GENERIC) #0: Sun May 20 20:52:56 PDT 2007  builds@wb33:/home/builds/ab/netbsd-4/i386/200705200002Z-obj/home/builds/ab/netbsd-4/src/sys/arch/i386/compile/GENERIC i386
>Description:
There seems to be a bug in slapd; when starting the program, the following error happens:

slapd: Error detected by libpthread: Invalid mutex.
Detected by file "/home/builds/ab/netbsd-4/src/lib/libpthread/pthread_mutex.c", line 133, function "pthread_mutex_destroy".
See pthread(3) for information.
[1]   Abort trap (core dumped) /usr/pkg/libexec...

He're the backtrace:

Program received signal SIGABRT, Aborted.
0xbb87dfff in kill () from /usr/lib/libc.so.12
(gdb) backtrace
#0  0xbb87dfff in kill () from /usr/lib/libc.so.12
#1  0xbb94adb3 in pthread__errorfunc () from /usr/lib/libpthread.so.0
#2  0xbb9491fe in pthread_mutex_destroy () from /usr/lib/libpthread.so.0
#3  0xbbbbd1eb in ldap_pvt_thread_mutex_destroy () from 
/usr/pkg/lib/libldap_r-2.3.so.0
#4  0x0805a756 in ?? ()
#5  0x0819e4fc in __ps_strings ()
#6  0x00000002 in ?? ()
#7  0xbfbfe8e8 in ?? ()
#8  0x0805a713 in ?? ()
#9  0x00000286 in ?? ()
#10 0x00000001 in ?? ()
#11 0xbfbfe958 in ?? ()
#12 0x0804e2c1 in ?? ()
#13 0xbfa00000 in ?? ()
#14 0xbb92cdd0 in tzname () from /usr/lib/libc.so.12
#15 0x00000002 in ?? ()
#16 0x00000000 in ?? ()
>How-To-Repeat:
Install openldap-2.3.32 from pkgsrc's HEAD
Run: /etc/rc.d/slapd start
>Fix: