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

(ITS#4912) test043 cores in bdb_locker_id_free()



Full_Name: Hallvard B Furuseth
Version: HEAD
OS: Linux
URL: 
Submission from: (NULL) (129.240.202.105)
Submitted by: hallvard


test043 leaves behind two core files from a crash in bdb_locker_id_free().

The test does succeed though.  (Argh, I've got to dig up that test script
patch of mine, I don't even remember what the showstopper was anymore...)

>>>>> Starting test043-delta-syncrepl ...
running defines.sh
Starting producer slapd on TCP/IP port 9011...
Using ldapsearch to check that producer slapd is running...
Using ldapadd to create the context prefix entries in the producer...
Starting consumer slapd on TCP/IP port 9012...
Using ldapsearch to check that consumer slapd is running...
Using ldapadd to populate the producer directory...
Waiting 15 seconds for syncrepl to receive changes...
Stopping the provider, sleeping 10 seconds and restarting it...
./scripts/test043-delta-syncrepl: line 130:  5697 Segmentation fault      (core
dumped) $SLAPD -f $CONF1 -h $URI1 -d $LVL $TIMING >$LOG1 2>&1
Using ldapsearch to check that producer slapd is running...
Using ldapmodify to modify producer directory...
Waiting 15 seconds for syncrepl to receive changes...
Stopping consumer to test recovery...
Modifying more entries on the producer...
Restarting consumer...
Waiting 25 seconds for syncrepl to receive changes...
Try updating the consumer slapd...
Waiting 15 seconds for syncrepl to receive changes...
Using ldapsearch to read all the entries from the producer...
Using ldapsearch to read all the entries from the consumer...
Filtering producer results...
Filtering consumer results...
Comparing retrieved entries from producer and consumer...
>>>>> Test succeeded
./scripts/test043-delta-syncrepl: line 356:  5715 Segmentation fault      (core
dumped) $SLAPD -f $CONF1 -h $URI1 -d $LVL $TIMING >>$LOG1 2>&1
>>>>> ./scripts/test043-delta-syncrepl completed OK.

$ gdb ../servers/slapd/slapd core.5697 (the other crashes with the same
backtrace)
(gdb) thread apply all backtrace
Thread 1 (process 5697):
#0  0xdbdbdbdb in ?? ()
#1  0x08119e27 in bdb_locker_id_free (key=0x83536b0, data=0x7) at cache.c:1360
#2  0x0818e6ec in ldap_int_thread_pool_context_reset (vctx=0x8275160) at
tpool.c:912
#3  0x081913a6 in ldap_pvt_thread_pool_context_reset (vctx=0x7) at
thr_debug.c:1263
#4  0x080aad9f in slap_destroy () at init.c:271
#5  0x080670fb in main (argc=8, argv=0xbfffee84) at main.c:949

Configuration:

CPPFLAGS='-DLDAP_REL_ENG -DLDAP_THREAD_DEBUG -DLDAP_RDWR_DEBUG' \
./configure --prefix=/hbf/scratch/ldap/install/head \
	--enable-crypt --enable-dynacl --enable-aci --enable-lmpasswd \
	--enable-spasswd --enable-modules --enable-rlookups \
	--enable-slapi --enable-slp --enable-wrappers \
	--enable-backends --disable-sql --enable-overlays