Subject: openldap and threads on current
To: NetBSD Current <current-users@netbsd.org>
From: Dick Davies <rasputnik@hellooperator.net>
List: current-users
Date: 02/26/2004 12:56:24
Stock install of current.
0root@dozer:openldap$ pkg_info -a|grep openldap
openldap-2.1.25nb2 Lightweight directory access protocol server and
client package
0root@dozer:openldap$ uname -a
NetBSD dozer 1.6ZI NetBSD 1.6ZI (DOZER) #0: Sat Feb 21 23:05:43 GMT 2004
rasputin@dozer:/usr/obj/usr/src/sys/arch/i386/compile/DOZER i386
0root@dozer:openldap$ cat /etc/mk.conf
WRKOBJDIR=/usr/work
DISTDIR=/usr/work/distfiles
When I try to add anything to my directory, slapd dumps core.
0root@dozer:openldap$ /usr/pkg/etc/rc.d/slapd start
0root@dozer:openldap$ ldapsearch -h localhost
# extended LDIF
#
# LDAPv3
# base <> with scope sub
# filter: (objectclass=*)
# requesting: ALL
#
# search result
search: 2
result: 32 No such object
# numResponses: 1
" -Wt@dozer:openldap$ ldapadd -h localhost -D "cn=Manager,dc=tenfour"
Enter LDAP Password:
ldap_bind: Can't contact LDAP server (81)
0root@dozer:openldap$
(this happens whether or not I give a valid password).
Stacktrace shows it dying in pthread
Loaded symbols for /usr/lib/libc.so.12
#0 0x48393e8e in memmove () from /usr/lib/libc.so.12
(gdb) bt
#0 0x48393e8e in memmove () from /usr/lib/libc.so.12
#1 0x0004a3bd in ?? ()
#2 0x080aca32 in ldap_str2matchingrule ()
#3 0x080aab96 in ldap_str2matchingrule ()
#4 0x080aa817 in ldap_str2matchingrule ()
#5 0x0805dc81 in ldap_str2matchingrule ()
#6 0x0809052e in ldap_str2matchingrule ()
#7 0x080661e0 in ldap_str2matchingrule ()
#8 0x08051e9d in ldap_str2matchingrule ()
#9 0x480e7f0c in ldap_int_thread_pool_wrapper ()
from /usr/pkg/lib/libldap_r.so.2
#10 0x48303c5d in pthread_create () from /usr/lib/libpthread.so.0
If I disable threads (by editing the pkgsrc Makefile), it works fine.
But I *want* threads :[ <stamps feet/> !