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

(ITS#3999) assertion failure: c->c_struct_state != SLAP_C_UNINITIALIZED



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


/run -b ldbm test028 gets an assertion failure once in a while:

...
Testing ldapwhoami as bjorn, dn:uid=bjorn,ou=People,o=Esempio,c=IT...
dn:uid=bjorn,ou=people,dc=example,dc=com
Result: Success (0)
Testing ldapsearch as uid=jaj,ou=People,dc=example,dc=it for
"o=Example,c=US"...
./scripts/test028-idassert: line 204: 16669 Aborted                 (core
dumped) $SLAPD -f $CONF1 -h $URI1 -d $LVL $TIMING >$LOG1 2>&1

connection.c:256: connection_get: Assertion `c->c_struct_state != 0x00' failed.

(gdb) backtrace
#0  0x0099a7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x009da7d5 in raise () from /lib/tls/libc.so.6
#2  0x009dc149 in abort () from /lib/tls/libc.so.6
#3  0x009d3db1 in __assert_fail () from /lib/tls/libc.so.6
#4  0x0807974b in connection_get (s=4) at connection.c:256
#5  0x0807be38 in connection_read (s=4) at connection.c:1182
#6  0x08078b3e in slapd_daemon_task (ptr=0x0) at daemon.c:1969
#7  0x00bf9341 in start_thread () from /lib/tls/libpthread.so.0
#8  0x00a79fee in clone () from /lib/tls/libc.so.6

(gdb) frame 4
#4  0x0807974b in connection_get (s=4) at connection.c:256
256         assert( c->c_struct_state != SLAP_C_UNINITIALIZED );

Variables:
s = 4, *c = { c_conn_idx = 4, everything else is 0 }

(gdb) frame 6
#6  0x08078b3e in slapd_daemon_task (ptr=0x0) at daemon.c:1969
1969                        if ( connection_read( fd ) < 0 ) {

Variables:
i = 0, ns = 1, rc = 1, fd = 4, l = 1, ebadf = 0
last_idle_check = 0, idle = { 0, 0 }

(gdb) thread apply all backtrace
Thread 3 (process 16669):
#0  0x0099a7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00bfa06d in pthread_join () from /lib/tls/libpthread.so.0
#2  0x081b832e in ldap_int_thread_join (thread=3081739184, thread_return=0x0)
    at thr_posix.c:186
#3  0x0818b802 in ldap_pvt_thread_join (thread=3081739184, thread_return=0x0)
    at thr_debug.c:586
#4  0x08078eaa in slapd_daemon () at daemon.c:2046
#5  0x080649c1 in main (argc=8, argv=0xbffff304) at main.c:765

Thread 2 (process 16675):
#0  0x0099a7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00bfba86 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/tls/libpthread.so.0
#2  0x081b83c3 in ldap_int_thread_cond_wait (cond=0x82887f0, mutex=0x82887d4)
    at thr_posix.c:282
#3  0x0818bc9b in ldap_pvt_thread_cond_wait (cond=0x82887f0, mutex=0x82887d4)
    at thr_debug.c:690
#4  0x08189702 in ldap_int_thread_pool_wrapper (xpool=0x82887d0) at tpool.c:473
#5  0x00bf9341 in start_thread () from /lib/tls/libpthread.so.0
#6  0x00a79fee in clone () from /lib/tls/libc.so.6

Thread 1 (process 16673):
[As backtrace above]