[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#5261) Samba4 can 'hang' OpenLDAP slapd

abartlet@samba.org wrote:
> Full_Name: Andrew Bartlett
> Version: cvs 2007-12-05
> OS: Fedora 8
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (
> Using Samba4's 'make test', I can hang OpenLDAP's slapd.  Samba4 SVN -r 26305
> That is, it will not process any further requests, but is waiting in
> pthread_join(), not stuck somewhere else.
> OpenLDAP was built with:
> `dirname $0`/configure --enable-overlays=yes --enable-modules --enable-dynamic
> --enable-syncprov=yes
> Samba4 was built with:
> CC="ccache gcc" CFLAGS="-O3" ./configure --enable-developer -C
> --prefix=/data/samba/samba4/prefix
> --with-winbindd-socket-dir=/data/samba/samba4/prefix/wb
> Samba4 testsuite command line:
> OPENLDAP_PATH=/usr/local/libexec:/usr/local/sbin TEST_LDAP=yes make test
> This hangs during the 'provision' processing.
> Note that this outputs an ldapi:// URL.  Using that URL, this test shows it's
> not just samba that is stuck:
> ldapadd -H ldapi://%2Fhome%2Fdata%2Fsamba%2Fsamba4%2Fclean%2Fsource%2Fst%2Fdc%2Fprivate%2Fldap%2Fldapi
> -f st/dc/private/ldap/samba.example.com.ldif -D
> cn=Manager,dc=samba,dc=example,dc=com -w localdcpass -x

You should run slapd with -d debugging enabled and (I usually start with -d7) 
send the info for the last few requests prior to the hang. Also, you should 
use gdb to attach to the slapd and get a trace of all the threads to see where 
they've gotten stuck.


   -- Howard Chu
   Chief Architect, Symas Corp.  http://www.symas.com
   Director, Highland Sun        http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP     http://www.openldap.org/project/