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

Re: slapd segfaults with SASL/GSSAPI binds

Christopher Schadl wrote:

Oh yeah, here is the gdb backtrace from the crash.  It seems to be
happening in some private bdb function, did I miss a patch somewhere?  I
applied the two patches provided by sleepycat when I downloaded BDB, and
all of the tests completed just fine when I built openldap.

Most likely since you're using a BDB that you built, it's different from the version that was bundled on your system before. Whatever /lib/libnss_db is, it probably was compiled against an older version of BDB. A BDB version mismatch like this will frequently cause SEGVs. You'll have to rebuild libnss_db, or make sure it doesn't get used. There's nothing in OpenLDAP software related to this problem.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 2051 (LWP 11815)]
0x40075872 in __db_associate_arg ()
   from /usr/local/BerkeleyDB.4.2/lib/libdb-4.2.so
(gdb) backtrace
#0  0x40075872 in __db_associate_arg ()
   from /usr/local/BerkeleyDB.4.2/lib/libdb-4.2.so
#1  0x400756aa in __db_associate_pp ()
   from /usr/local/BerkeleyDB.4.2/lib/libdb-4.2.so
#2  0x406c790d in _nss_db_getspnam_r () from /lib/libnss_db.so.2
#3  0x406c79e0 in _nss_db_getspnam_r () from /lib/libnss_db.so.2
#4  0x406c711e in _nss_db_endservent () from /lib/libnss_db.so.2
#5  0x406c73b3 in _nss_db_getservbyname_r () from /lib/libnss_db.so.2
#6  0x402cca83 in getservbyname_r () from /lib/libc.so.6
#7  0x402cc931 in getservbyname () from /lib/libc.so.6
#8  0x40388211 in krb5_getportbyname () from /usr/lib/libkrb5.so.17
#9  0x4038cdbf in krb5_krbhst_init () from /usr/lib/libkrb5.so.17
#10 0x40393d05 in krb5_sendto_kdc2 () from /usr/lib/libkrb5.so.17
#11 0x40393d81 in krb5_sendto_kdc () from /usr/lib/libkrb5.so.17
#12 0x40387b06 in krb5_get_in_cred () from /usr/lib/libkrb5.so.17
#13 0x40389220 in krb5_get_init_creds_keytab () from
#14 0x4036538c in gss_acquire_cred () from /usr/lib/libgssapi.so.1
#15 0x40359fd7 in gssapi_server_mech_step (conn_context=0x817a400,
    clientinlen=539, serverout=0xbf5ff820, serveroutlen=0xbf5ff824,
    oparams=0x81799c0) at gssapi.c:618
#16 0x400ce81e in sasl_server_step (conn=0x8179160,
---Type <return> to continue, or q <return> to quit---
    clientinlen=539, serverout=0xbf5ff820, serveroutlen=0xbf5ff824)
    at server.c:1359
#17 0x400ce6ca in sasl_server_start (conn=0x8179160, mech=0x817a3f0
    clientinlen=539, serverout=0xbf5ff820, serveroutlen=0xbf5ff824)
    at server.c:1291
#18 0x08091c4d in slap_sasl_bind ()
#19 0x08076242 in do_bind ()
#20 0x080632df in connection_done ()
#21 0x080c1950 in ldap_pvt_thread_pool_destroy ()
#22 0x401de0ba in pthread_start_thread () from /lib/libpthread.so.0
#23 0x401de101 in pthread_start_thread_event () from

-- -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http://highlandsun.com/hyc Symas: Premier OpenSource Development and Support