In your debugger outputs, both lib/libdb-4.0.so and /usr/lib/libdb.so.3 are being loaded. What is /usr/lib/libdb.so.3? Is this a BDB 3.x library? If so, this is probably your problem.
Ken OCNS Consulting wrote: > > Ken: > > Here's ldd output> > > # ldd /usr/cyrus/bin/imapd > libsasl2.so.2 => /usr/local/lib/libsasl2.so.2 (0x40018000) > libpthread.so.0 => /lib/i686/libpthread.so.0 (0x40042000) > librt.so.1 => /lib/librt.so.1 (0x40057000) > libdl.so.2 => /lib/libdl.so.2 (0x40069000) > libdb-4.0.so => /usr/local/BerkeleyDB/lib/libdb-4.0.so (0x4006d000) > libresolv.so.2 => /lib/libresolv.so.2 (0x400fb000) > libcom_err.so.3 => /usr/local/lib/libcom_err.so.3 (0x4010e000) > libnsl.so.1 => /lib/libnsl.so.1 (0x40110000) > libc.so.6 => /lib/i686/libc.so.6 (0x40126000) > libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1 (0x40262000) > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) > > Okay, now when I attempt to convert /etc/sasldb -> /etc/sasldb2 and issue -> > > # /usr/dist/cyrus-sasl-2.1.1/utils/dbconverter-2 /etc/sasldb > /etc/sasldb2.new > > This program will take the sasldb file specified on the > command line and convert it to a new sasldb file in the default > location (usually /etc/sasldb). It is STRONGLY RECOMMENDED that you > backup sasldb before allowing this program to run > > We are going to convert /etc/sasldb and our output will be in > /etc/sasldb2.new > > Press return to continue > > Segmentation fault (core dumped) > > the "lt-dbconverter-2" binary terminates with -> signal 11, Segmentation > fault. > > Here's the traceback from the core: > > # gdb -core=core -e /usr/dist/cyrus-sasl-2.1.1/utils/.libs/lt-dbconverter-2 > GNU gdb Red Hat Linux (5.1-1) > Copyright 2001 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". > > warning: core file may not match specified executable file. > Core was generated by `lt-dbconverter-2 /etc/sasldb /etc/sasldb2.new'. > Program terminated with signal 11, Segmentation fault. > Reading symbols from /lib/libresolv.so.2...done. > Loaded symbols for /lib/libresolv.so.2 > Reading symbols from /usr/local/lib/libsasl2.so.2...done. > Loaded symbols for /usr/local/lib/libsasl2.so.2 > Reading symbols from /lib/libdl.so.2...done. > Loaded symbols for /lib/libdl.so.2 > Reading symbols from /lib/libdb-4.0.so...done. > Loaded symbols for /lib/libdb-4.0.so > Reading symbols from /lib/i686/libc.so.6...done. > Loaded symbols for /lib/i686/libc.so.6 > Reading symbols from /usr/local/lib/libgcc_s.so.1...done. > Loaded symbols for /usr/local/lib/libgcc_s.so.1 > Reading symbols from /lib/ld-linux.so.2...done. > Loaded symbols for /lib/ld-linux.so.2 > Reading symbols from /usr/lib/sasl2/libsasldb.so.2...done. > Loaded symbols for /usr/lib/sasl2/libsasldb.so.2 > Reading symbols from /usr/lib/sasl2/libcrammd5.so.2...done. > Loaded symbols for /usr/lib/sasl2/libcrammd5.so.2 > Reading symbols from /usr/lib/sasl2/libdigestmd5.so.2...done. > Loaded symbols for /usr/lib/sasl2/libdigestmd5.so.2 > Reading symbols from /lib/libcrypto.so.2...done. > Loaded symbols for /lib/libcrypto.so.2 > Reading symbols from /usr/lib/sasl2/libotp.so.2...done. > Loaded symbols for /usr/lib/sasl2/libotp.so.2 > Reading symbols from /usr/lib/sasl2/libplain.so.2...done. > Loaded symbols for /usr/lib/sasl2/libplain.so.2 > Reading symbols from /lib/libcrypt.so.1...done. > Loaded symbols for /lib/libcrypt.so.1 > Reading symbols from /usr/lib/sasl2/libanonymous.so.2...done. > Loaded symbols for /usr/lib/sasl2/libanonymous.so.2 > Reading symbols from /usr/lib/sasl2/libkerberos4.so.2...done. > Loaded symbols for /usr/lib/sasl2/libkerberos4.so.2 > Reading symbols from /usr/kerberos/lib/libkrb4.so.2...done. > Loaded symbols for /usr/kerberos/lib/libkrb4.so.2 > Reading symbols from /usr/local/kerberos/lib/libkrb5.so.3...done. > Loaded symbols for /usr/local/kerberos/lib/libkrb5.so.3 > Reading symbols from /usr/local/kerberos/lib/libcom_err.so.3...done. > Loaded symbols for /usr/local/kerberos/lib/libcom_err.so.3 > Reading symbols from /usr/local/kerberos/lib/libdes425.so.3...done. > Loaded symbols for /usr/local/kerberos/lib/libdes425.so.3 > Reading symbols from /usr/local/kerberos/lib/libk5crypto.so.3...done. > Loaded symbols for /usr/local/kerberos/lib/libk5crypto.so.3 > Reading symbols from /usr/lib/sasl2/libgssapiv2.so.2...done. > Loaded symbols for /usr/lib/sasl2/libgssapiv2.so.2 > Reading symbols from /usr/local/lib/libgssapi_krb5.so.2...done. > Loaded symbols for /usr/local/lib/libgssapi_krb5.so.2 > Reading symbols from /usr/lib/libdb.so.3...done. > Loaded symbols for /usr/lib/libdb.so.3 > #0 0x00000000 in ?? () > (gdb) bt > #0 0x00000000 in ?? () > #1 0x08048bf0 in ?? () > #2 0x08048c84 in ?? () > #3 0x08048fd0 in ?? () > #4 0x40102627 in __libc_start_main (main=0x8048ee0, argc=3, > ubp_av=0xbffff1f4, init=0x80487d0, fini=0x8049e30, > rtld_fini=0x4000dcc4 <_dl_fini>, stack_end=0xbffff1ec) at > ../sysdeps/generic/libc-start.c:129 > (gdb) q > > Any ideas? > > RB > > -----Original Message----- > From: Ken Murchison [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, March 20, 2002 5:16 PM > To: OCNS Consulting > Cc: [EMAIL PROTECTED] > Subject: Re: Signaled to Death by 11 - Again - > > Are you _sure_ that SASL and IMAP and linked against the same version of > BDB? Do a 'ldd /usr/cyrus/bin/imapd' and make sure you're not linked > against multiple versions of BDB. > > Was the /etc/sasldb2 file created with the same version? > > OCNS Consulting wrote: > > > > Ken: > > > > Here's the traceback results you requested. > > > > Let me know how I can help.... > > > > RB > > > > > ============================================================================ > > ========= > > > > # gdb -core=core -e /usr/cyrus/bin/imapd > > GNU gdb Red Hat Linux (5.1-1) > > Copyright 2001 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". > > Core was generated by `imapd'. > > Program terminated with signal 11, Segmentation fault. > > Reading symbols from /usr/local/lib/libsasl2.so.2...done. > > Loaded symbols for /usr/local/lib/libsasl2.so.2 > > Reading symbols from /lib/i686/libpthread.so.0...done. > > > > warning: Unable to set global thread event mask: generic error > > [New Thread 1024 (LWP 25676)] > > Error while reading shared library symbols: > > Cannot enable thread event reporting for Thread 1024 (LWP 25676): generic > > error > > Reading symbols from /lib/librt.so.1...done. > > Loaded symbols for /lib/librt.so.1 > > Reading symbols from /lib/libdl.so.2...done. > > Loaded symbols for /lib/libdl.so.2 > > Reading symbols from /usr/local/BerkeleyDB/lib/libdb-4.0.so...done. > > Loaded symbols for /usr/local/BerkeleyDB/lib/libdb-4.0.so > > Reading symbols from /lib/libresolv.so.2...done. > > Loaded symbols for /lib/libresolv.so.2 > > Reading symbols from /usr/local/lib/libcom_err.so.3...done. > > Loaded symbols for /usr/local/lib/libcom_err.so.3 > > Reading symbols from /lib/libnsl.so.1...done. > > Loaded symbols for /lib/libnsl.so.1 > > Reading symbols from /lib/i686/libc.so.6...done. > > Loaded symbols for /lib/i686/libc.so.6 > > Reading symbols from /usr/local/lib/libgcc_s.so.1...done. > > Loaded symbols for /usr/local/lib/libgcc_s.so.1 > > Reading symbols from /lib/ld-linux.so.2...done. > > Loaded symbols for /lib/ld-linux.so.2 > > Reading symbols from /usr/lib/sasl2/libsasldb.so.2...done. > > Loaded symbols for /usr/lib/sasl2/libsasldb.so.2 > > Reading symbols from /usr/lib/sasl2/libcrammd5.so.2...done. > > Loaded symbols for /usr/lib/sasl2/libcrammd5.so.2 > > Reading symbols from /usr/lib/sasl2/libdigestmd5.so.2...done. > > Loaded symbols for /usr/lib/sasl2/libdigestmd5.so.2 > > Reading symbols from /lib/libcrypto.so.2...done. > > Loaded symbols for /lib/libcrypto.so.2 > > Reading symbols from /usr/lib/sasl2/libotp.so.2...done. > > Loaded symbols for /usr/lib/sasl2/libotp.so.2 > > Reading symbols from /usr/lib/sasl2/libplain.so.2...done. > > Loaded symbols for /usr/lib/sasl2/libplain.so.2 > > Reading symbols from /lib/libcrypt.so.1...done. > > Loaded symbols for /lib/libcrypt.so.1 > > Reading symbols from /usr/lib/sasl2/libanonymous.so.2...done. > > Loaded symbols for /usr/lib/sasl2/libanonymous.so.2 > > Reading symbols from /usr/lib/sasl2/libkerberos4.so.2...done. > > Loaded symbols for /usr/lib/sasl2/libkerberos4.so.2 > > Reading symbols from /usr/kerberos/lib/libkrb4.so.2...done. > > Loaded symbols for /usr/kerberos/lib/libkrb4.so.2 > > Reading symbols from /usr/local/kerberos/lib/libkrb5.so.3...done. > > Loaded symbols for /usr/local/kerberos/lib/libkrb5.so.3 > > Reading symbols from /usr/local/kerberos/lib/libdes425.so.3...done. > > Loaded symbols for /usr/local/kerberos/lib/libdes425.so.3 > > Reading symbols from /usr/local/kerberos/lib/libk5crypto.so.3...done. > > Loaded symbols for /usr/local/kerberos/lib/libk5crypto.so.3 > > Reading symbols from /usr/lib/sasl2/libgssapiv2.so.2...done. > > Loaded symbols for /usr/lib/sasl2/libgssapiv2.so.2 > > Reading symbols from /usr/local/lib/libgssapi_krb5.so.2...done. > > Loaded symbols for /usr/local/lib/libgssapi_krb5.so.2 > > Reading symbols from /usr/lib/libdb.so.3...done. > > Loaded symbols for /usr/lib/libdb.so.3 > > Reading symbols from /lib/libnss_files.so.2...done. > > Loaded symbols for /lib/libnss_files.so.2 > > #0 0x00000000 in ?? () > > (gdb) bt > > #0 0x00000000 in ?? () > > #1 0x4002adb4 in berkeleydb_open (utils=0x81b1740, conn=0x81b0ab8, > rdwr=0, > > mbdb=0xbfffb754) at db_berkeley.c:92 > > #2 0x4002af4a in _sasldb_getdata (utils=0x81b1740, context=0x81b0ab8, > > auth_identity=0x81b2098 "cyrus1", > > realm=0x81b2080 "mailsrv.ocns.com", propName=0x40025d67 > "userPassword", > > out=0xbfffb7f0 "", max_out=8192, out_len=0xbfffb7e4) > > at db_berkeley.c:173 > > #3 0x4002a0d7 in sasldb_auxprop_lookup (glob_context=0x0, > > sparams=0x81b01b0, flags=0, user=0x81b14c9 "cyrus1", ulen=6) > > at sasldb.c:147 > > #4 0x4001bd3d in _sasl_auxprop_lookup (sparams=0x81b01b0, flags=0, > > user=0x81b14c9 "cyrus1", ulen=6) at auxprop.c:821 > > #5 0x4001bee9 in _sasl_canon_user (conn=0x81b0ab8, user=0x81b14c9 > "cyrus1", > > ulen=6, flags=1, oparams=0x81b1318) at canonusr.c:181 > > #6 0x4001c678 in auxprop_verify_password (conn=0x81b0ab8, > userstr=0x81a3140 > > "cyrus1", passwd=0x81b2000 "Password", > > service=0x81b0248 "imap", user_realm=0x0) at checkpw.c:158 > > #7 0x4002493b in _sasl_checkpass (conn=0x81b0ab8, service=0x81b0248 > "imap", > > user=0x81a3140 "cyrus1", pass=0x81b2000 "Password") > > at server.c:1485 > > #8 0x40024a7f in sasl_checkpass (conn=0x81b0ab8, user=0x81a3140 "cyrus1", > > userlen=6, pass=0x81b2000 "Password", passlen=8) > > at server.c:1534 > > #9 0x080516b8 in ?? () > > #10 0x0804ff7d in ?? () > > #11 0x0804eb4c in ?? () > > #12 0x0804d6a9 in ?? () > > #13 0x40142627 in __libc_start_main (main=0x804d060, argc=1, > > ubp_av=0xbffff324, init=0x804c130, fini=0x80fdc20, > > rtld_fini=0x4000dcc4 <_dl_fini>, stack_end=0xbffff31c) at > > ../sysdeps/generic/libc-start.c:129 > > (gdb) q > > # > > -- > Kenneth Murchison Oceana Matrix Ltd. > Software Engineer 21 Princeton Place > 716-662-8973 x26 Orchard Park, NY 14127 > --PGP Public Key-- http://www.oceana.com/~ken/ksm.pgp -- Kenneth Murchison Oceana Matrix Ltd. Software Engineer 21 Princeton Place 716-662-8973 x26 Orchard Park, NY 14127 --PGP Public Key-- http://www.oceana.com/~ken/ksm.pgp