Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 607694 - cyrus-sasl and multiple berkdb segfault
Summary: cyrus-sasl and multiple berkdb segfault
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-30 08:38 UTC by real_user
Modified: 2017-01-30 23:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description real_user 2017-01-30 08:38:34 UTC
On one of my gentoo servers i had dev-libs/cyrus-sasl installed for some time. Users configured for sasl auth.
After last system update i found that 'sasldblistusers2' and other commands broken:

# sasldblistusers2
Successful return: 0
Segmentation fault

# ldd `which sasldblistusers2`
        linux-vdso.so.1 (0x00007ffcaa381000)
        libsasl2.so.3 => /usr/lib64/libsasl2.so.3 (0x00007f4fbac90000)
        libdb-4.8.so => /usr/lib64/libdb-4.8.so (0x00007f4fba910000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f4fba577000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f4fba373000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f4fba157000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f4fbaeae000)

And finally i found that 2 different version of sys-libs/db installed:

# eix -I sys-libs/db
[I] sys-libs/db
     Available versions:
     (1)    1.85-r3
     (3)    3.2.9_p2
     (4.2)  4.2.52_p5-r1
     (4.3)  4.3.29_p1-r1
     (4.4)  ~4.4.20_p4-r1
     (4.5)  4.5.20_p2-r1
     (4.6)  4.6.21_p4
     (4.7)  4.7.25_p4
     (4.8)  4.8.30-r2{tbz2}
     (5.1)  ~5.1.29-r1
     (5.3)  5.3.28-r2{tbz2}
     (6.0)  ~6.0.35
     (6.1)  [M]~6.1.29
     (6.2)  [M]~6.2.23
       {cxx doc examples java rpc tcl test ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32" ELIBC="FreeBSD"}
     Installed versions:  4.8.30-r2(4.8){tbz2}(03:50:39 AM 07/28/2016)(cxx -doc -examples -java -tcl -test ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32" ELIBC="-FreeBSD") 5.3.28-r2(5.3){tbz2}(04:57:46 PM 01/27/2017)(cxx -doc -examples -java -tcl -test ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32" ELIBC="-FreeBSD")
     Homepage:            http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/overview/index.html
     Description:         Oracle Berkeley DB

eix -I dev-libs/cyrus-sasl
[I] dev-libs/cyrus-sasl
     Available versions:  (2) 2.1.26-r9{tbz2} ~2.1.26-r10 (~)2.1.26-r11{tbz2}
       {authdaemond berkdb gdbm java kerberos ldapdb libressl mysql openldap pam postgres sample selinux sqlite srp ssl static-libs urandom ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32" ELIBC="FreeBSD"}
     Installed versions:  2.1.26-r11(2){tbz2}(05:29:23 PM 01/27/2017)(berkdb pam ssl urandom -authdaemond -gdbm -java -kerberos -ldapdb -libressl -mysql -openldap -postgres -sample -selinux -sqlite -srp -static-libs ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32" ELIBC="-FreeBSD")

I tried to unmerge sys-libs/db-5.3.28-r2 but i see another packages (perl and some modules) already compiled against db-5. 
Also i rebuild cyrus-sasl dut it did not help.
revdep-rebuild said 'Your system is consistent'.
Comment 1 real_user 2017-01-30 23:00:54 UTC
these commands resolved my problem:
emerge --unmerge =sys-libs/db-4.8.30-r2 dev-libs/cyrus-sasl mail-mta/postfix
emerge -av1 mail-mta/postfix dev-libs/cyrus-sasl

Currently i have sys-libs/db-5.3.28-r2 only.