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

Reply via email to