Subject: lib/20860: slapd/SA trouble
To: None <gnats-bugs@gnats.netbsd.org>
From: Frank Kardel <kardel@acm.org>
List: netbsd-bugs
Date: 03/23/2003 18:43:41
>Number:         20860
>Category:       lib
>Synopsis:       slapd on netbsd-current cores
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 23 09:44:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Frank Kardel
>Release:        NetBSD 1.6Q
>Organization:
	
>Environment:
System: NetBSD pip 1.6Q NetBSD 1.6Q (PIP) #0: Sat Mar 22 17:54:06 MET 2003 kardel@pip:/src/NetBSD/netbsd/sys/arch/i386/compile/PIP i386
Architecture: i386
Machine: i386
>Description:
	A newly built slapd (openldap 2.0.27nb2 - native pthread) crashes when processing the first request with following stack:
Program terminated with signal 10, Bus error.
#0  0x481dceeb in _setcontext_u_xmm () from /usr/lib/libpthread.so.0
(gdb) where
#0  0x481dceeb in _setcontext_u_xmm () from /usr/lib/libpthread.so.0
#1  0x481d5e62 in pthread__locked_switch () from /usr/lib/libpthread.so.0

	The last words of the debug mode were:
	slapd startup: initiated.
	slapd starting
	daemon: added 6r
	daemon: select: listen=6 active_threads=0 tvp=NULL
	daemon: activity on 1 descriptors
	daemon: new connection on 7
	daemon: conn=0 fd=7 connection from IP=212.222.64.99:65275 (IP=0.0.0.0:389) accepted.
	daemon: added 7r
	daemon: activity on:
	Bus error (core dumped)
	Exit 138

	SA related ?
	Anything i overlooked ?

>How-To-Repeat:
        compile openldap with native pthreads on current as of 20030322. configure, start, query => crash.

>Fix:
	???
>Release-Note:
>Audit-Trail:
>Unformatted: