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

Re: (ITS#5510) Does GSSAPI failure kill slapd?



>>>>> "quanah" == Quanah Gibson-Mount <quanah@zimbra.com> writes:

ALUM:/tools/src/openldap/RHEL4-i686/openldap-2.4.9/servers/slapd$ gdb slapd
GNU gdb Red Hat Linux (6.3.0.0-1.153.el4_6.2rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) r -d32768 -h ldap:/// ldaps:/// -f /var/openldap/slapd.conf
Starting program: /tools/src/openldap/RHEL4-i686/openldap-2.4.9/servers/slapd/slapd -d32768 -h ldap:/// ldaps:/// -f /var/openldap/slapd.conf
[Thread debugging using libthread_db enabled]
[New Thread -1209116992 (LWP 21561)]
@(#) $OpenLDAP: slapd 2.4.9 (May  9 2008 08:02:12) $
	aej@CCC1.WPI.EDU:/tools/src/openldap/RHEL4-i686/openldap-2.4.9/servers/slapd
[New Thread -1728967776 (LWP 21564)]
[Thread -1728967776 (LWP 21564) exited]
[New Thread -1728967776 (LWP 21565)]
[Thread -1728967776 (LWP 21565) exited]
slapd starting
[New Thread -1728967776 (LWP 21566)]
[New Thread 2035399584 (LWP 21567)]
[New Thread 2031201184 (LWP 21568)]
[New Thread 2027002784 (LWP 21569)]
SASL [conn=11] Error: unable to open Berkeley db /etc/sasldb2: No such file or directory
SASL [conn=11] Error: unable to open Berkeley db /etc/sasldb2: No such file or directory
[New Thread 1994468256 (LWP 21585)]
[New Thread 1989217184 (LWP 21586)]
[New Thread 1983966112 (LWP 21587)]
[New Thread 1953536928 (LWP 21588)]
[New Thread 1938815904 (LWP 21859)]
SASL [conn=11] Failure: GSSAPI Error: The context has expired (No error)
sb_sasl_write: failed to encode packet: generic failure
send_search_entry: conn 11  ber write failed.
slapd: rq.c:92: ldap_pvt_runqueue_remove: Assertion `e == entry' failed.

Program received signal SIGABRT, Aborted.
[Switching to Thread 2035399584 (LWP 21567)]
0x00a977a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
(gdb) where
#0  0x00a977a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00ad8815 in raise () from /lib/tls/libc.so.6
#2  0x00ada279 in abort () from /lib/tls/libc.so.6
#3  0x00ad1d91 in __assert_fail () from /lib/tls/libc.so.6
#4  0x08114473 in ldap_pvt_runqueue_remove (rq=0x82c1820, entry=0x543f) at rq.c:92
#5  0x080ffd9f in syncprov_free_syncop (so=0x8403248) at syncprov.c:744
#6  0x0810011d in syncprov_qtask (ctx=0x7951b210, arg=0x847e618) at syncprov.c:949
#7  0x08113cfd in ldap_int_thread_pool_wrapper (xpool=0x82e6ab0) at tpool.c:663
#8  0x00d123cc in start_thread () from /lib/tls/libpthread.so.0
#9  0x00b7a1ae in clone () from /lib/tls/libc.so.6

quanah> frame 4 print e

(gdb) frame 4
#4  0x08114473 in ldap_pvt_runqueue_remove (rq=0x82c1820, entry=0x543f) at rq.c:92
92		assert( e == entry );
(gdb) print e
$2 = (struct re_s *) 0x0
(gdb) print entry
$3 = (struct re_s *) 0x543f

quanah> Also, please provide the full backtrace (thread apply all bt)

(gdb) thread apply all bt

Thread 12 (Thread 1938815904 (LWP 21859)):
#0  0x00a977a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00d14cf6 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0
#2  0x08113d54 in ldap_int_thread_pool_wrapper (xpool=0x82e6ab0) at tpool.c:654
#3  0x00d123cc in start_thread () from /lib/tls/libpthread.so.0
#4  0x00b7a1ae in clone () from /lib/tls/libc.so.6

Thread 11 (Thread 1953536928 (LWP 21588)):
#0  0x00a977a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00b7b0a8 in send () from /lib/tls/libc.so.6
#2  0x00b76446 in vsyslog () from /lib/tls/libc.so.6
#3  0x00b7668f in syslog () from /lib/tls/libc.so.6
#4  0x0806365e in do_search (op=0x843e5b8, rs=0x74709120) at search.c:186
#5  0x08061a5c in connection_operation (ctx=0x74709210, arg_v=0x843e5b8) at connection.c:1084
#6  0x080620fd in connection_read_thread (ctx=0x74709210, argv=0x1c) at connection.c:1211
#7  0x08113cfd in ldap_int_thread_pool_wrapper (xpool=0x82e6ab0) at tpool.c:663
#8  0x00d123cc in start_thread () from /lib/tls/libpthread.so.0
#9  0x00b7a1ae in clone () from /lib/tls/libc.so.6

Thread 10 (Thread 1983966112 (LWP 21587)):
#0  0x00a977a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00d14cf6 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0
#2  0x08113d54 in ldap_int_thread_pool_wrapper (xpool=0x82e6ab0) at tpool.c:654
#3  0x00d123cc in start_thread () from /lib/tls/libpthread.so.0
#4  0x00b7a1ae in clone () from /lib/tls/libc.so.6

Thread 9 (Thread 1989217184 (LWP 21586)):
#0  0x00a977a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00d14cf6 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0
#2  0x08113d54 in ldap_int_thread_pool_wrapper (xpool=0x82e6ab0) at tpool.c:654
#3  0x00d123cc in start_thread () from /lib/tls/libpthread.so.0
#4  0x00b7a1ae in clone () from /lib/tls/libc.so.6

Thread 8 (Thread 1994468256 (LWP 21585)):
#0  0x00a977a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00d14cf6 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0
#2  0x08113d54 in ldap_int_thread_pool_wrapper (xpool=0x82e6ab0) at tpool.c:654
#3  0x00d123cc in start_thread () from /lib/tls/libpthread.so.0
#4  0x00b7a1ae in clone () from /lib/tls/libc.so.6

Thread 7 (Thread 2027002784 (LWP 21569)):
#0  0x00a977a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00b72f12 in fdatasync () from /lib/tls/libc.so.6
#2  0xb7fc65e2 in __os_fsync () from /usr/local/BerkeleyDB.4.5/lib/libdb-4.5.so
#3  0xb7fc3adc in __memp_sync_file () from /usr/local/BerkeleyDB.4.5/lib/libdb-4.5.so
#4  0xb7fc27cf in __memp_walk_files () from /usr/local/BerkeleyDB.4.5/lib/libdb-4.5.so
#5  0xb7fc3108 in __memp_sync_int () from /usr/local/BerkeleyDB.4.5/lib/libdb-4.5.so
#6  0xb7fc3609 in __memp_sync () from /usr/local/BerkeleyDB.4.5/lib/libdb-4.5.so
#7  0xb7fd176f in __txn_checkpoint () from /usr/local/BerkeleyDB.4.5/lib/libdb-4.5.so
#8  0xb7fd1943 in __txn_checkpoint_pp () from /usr/local/BerkeleyDB.4.5/lib/libdb-4.5.so
#9  0x080dbf0b in bdb_add (op=0x78d176c0, rs=0x78d17680) at add.c:484
#10 0x080b6061 in overlay_op_walk (op=0x78d176c0, rs=0x78d17680, which=op_add, oi=0x83298a8, on=0x83299a8)
    at backover.c:646
#11 0x080b6152 in over_op_func (op=0x78d176c0, rs=0x78d17680, which=op_add) at backover.c:698
#12 0x080fcdb6 in accesslog_response (op=0x83fc0a8, rs=0x78d19120) at accesslog.c:1650
#13 0x080b5863 in over_back_response (op=0x83fc0a8, rs=0x78d19120) at backover.c:235
#14 0x0806e95b in slap_response_play (op=0x83fc0a8, rs=0x78d19120) at result.c:307
#15 0x0806ea9b in send_ldap_response (op=0x83fc0a8, rs=0x78d19120) at result.c:381
#16 0x0806f11e in slap_send_ldap_result (op=0x83fc0a8, rs=0x78d19120) at result.c:642
#17 0x080bef75 in bdb_modify (op=0x83fc0a8, rs=0x78d19120) at modify.c:697
#18 0x080b6061 in overlay_op_walk (op=0x83fc0a8, rs=0x78d19120, which=op_modify, oi=0x832a240, on=0x8331910)
    at backover.c:646
#19 0x080b6152 in over_op_func (op=0x83fc0a8, rs=0x78d19120, which=op_modify) at backover.c:698
#20 0x08074b4a in fe_op_modify (op=0x83fc0a8, rs=0x78d19120) at modify.c:300
#21 0x080764de in do_modify (op=0x83fc0a8, rs=0x78d19120) at modify.c:175
#22 0x08061a5c in connection_operation (ctx=0x78d19210, arg_v=0x83fc0a8) at connection.c:1084
#23 0x080620fd in connection_read_thread (ctx=0x78d19210, argv=0x22) at connection.c:1211
#24 0x08113cfd in ldap_int_thread_pool_wrapper (xpool=0x82e6ab0) at tpool.c:663
#25 0x00d123cc in start_thread () from /lib/tls/libpthread.so.0
#26 0x00b7a1ae in clone () from /lib/tls/libc.so.6

Thread 6 (Thread 2031201184 (LWP 21568)):
#0  0x00a977a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00d14cf6 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0
#2  0x08113d54 in ldap_int_thread_pool_wrapper (xpool=0x82e6ab0) at tpool.c:654
#3  0x00d123cc in start_thread () from /lib/tls/libpthread.so.0
#4  0x00b7a1ae in clone () from /lib/tls/libc.so.6

Thread 5 (Thread 2035399584 (LWP 21567)):
#0  0x00a977a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00ad8815 in raise () from /lib/tls/libc.so.6
#2  0x00ada279 in abort () from /lib/tls/libc.so.6
#3  0x00ad1d91 in __assert_fail () from /lib/tls/libc.so.6
#4  0x08114473 in ldap_pvt_runqueue_remove (rq=0x82c1820, entry=0x543f) at rq.c:92
#5  0x080ffd9f in syncprov_free_syncop (so=0x8403248) at syncprov.c:744
#6  0x0810011d in syncprov_qtask (ctx=0x7951b210, arg=0x847e618) at syncprov.c:949
#7  0x08113cfd in ldap_int_thread_pool_wrapper (xpool=0x82e6ab0) at tpool.c:663
#8  0x00d123cc in start_thread () from /lib/tls/libpthread.so.0
#9  0x00b7a1ae in clone () from /lib/tls/libc.so.6

Thread 4 (Thread -1728967776 (LWP 21566)):
#0  0x00a977a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00b7a82e in epoll_wait () from /lib/tls/libc.so.6
#2  0x0805e753 in slapd_daemon_task (ptr=0x0) at daemon.c:2281
#3  0x00d123cc in start_thread () from /lib/tls/libpthread.so.0
#4  0x00b7a1ae in clone () from /lib/tls/libc.so.6

Thread 1 (Thread -1209116992 (LWP 21561)):
#0  0x00a977a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00d13297 in pthread_join () from /lib/tls/libpthread.so.0
#2  0x0805f5b9 in slapd_daemon () at daemon.c:2644
#3  0x0804cd40 in main (argc=7, argv=0xbffff884) at main.c:946