Package: libnss-db
Version: 2.2.3pre1-2
Severity: critical
Justification: breaks unrelated software

Hi!

I have default nsswitch.conf and libnss-db installed. My app uses
libdb_cxx-4.4.so and when I call getservbyname(), my app segfaulted.

Please see example:
#include <netdb.h>

int main() {
    struct servent *x = getservbyname("ftp","tcp");
    return 0;
}
When I compile it with g++ -g t.cc -ldb_cxx-4.4, I got SEGFAULT:

[EMAIL PROTECTED]:~/tmp% ./a.out
1
zsh: segmentation fault (core dumped)  ./a.out

Here is the backtrace:

(gdb) bt
#0  0xb7f59af6 in ?? ()
#1  0xb7ed2f9e in __db_errcall () from /usr/lib/libdb_cxx-4.4.so
#2  0xb7ed300c in __db_err () from /usr/lib/libdb_cxx-4.4.so
#3  0xb7eedf8f in __db_mi_open () from /usr/lib/libdb_cxx-4.4.so
#4  0xb7edc70b in __db_get_open_flags () from /usr/lib/libdb_cxx-4.4.so
#5  0xb7f5974c in _nss_db_getspnam_r () from /usr/lib/libnss_db.so.2
#6  0xb7f59818 in _nss_db_getspnam_r () from /usr/lib/libnss_db.so.2
#7  0xb7f58f96 in _nss_db_endservent () from /usr/lib/libnss_db.so.2
#8  0xb7f591d5 in _nss_db_getservbyname_r () from /usr/lib/libnss_db.so.2
#9  0xb7ccc7d2 in getservbyname_r () from /lib/tls/i686/cmov/libc.so.6
#10 0xb7ccc67e in getservbyname () from /lib/tls/i686/cmov/libc.so.6
#11 0x080487a8 in main () at t.cc:8



-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.18-3-686
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)

Versions of packages libnss-db depends on:
ii  libc6                       2.3.6.ds1-13 GNU C Library: Shared libraries
ii  libdb4.3                    4.3.29-8     Berkeley v4.3 Database Libraries [
ii  libselinux1                 1.32-3       SELinux shared libraries
ii  make                        3.81-2       The GNU version of the "make" util

libnss-db recommends no packages.

-- debconf-show failed



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to