Description:
mysqld crashes without giving a hint what's wrong
due to a conflict between the bundled bdb library
and libnss_db if mysql is compiled with --with-berkley-db
and "db" being part of the "services:" entry in
/etc/nsswitch.conf
see also bug #4872
How to repeat:
compile mysql with --with-berkley-db on linux/ppc, make sure the "services:" entry in /etc/nsswitch.conf has the "db" method in it
run "mysqld --help --verbose" or "mysql_install_db" to see it crash
(gdb) bt
#0 __db_associatechk (dbp=0x107492a0, sdbp=0x0, callback=0x107497e0, flags=0)
at ../../bdb/db/db_iface.c:924
#1 0x1035a9ac in __db_associate (dbp=0x107492a0, txn=0xfacef54, sdbp=0x0, callback=0x107497e0,
flags=0) at ../../bdb/db/db_am.c:867
#2 0x0face9ac in _nss_db_getspnam_r () from /lib/libnss_db.so.2
#3 0x0faceaf4 in _nss_db_getspnam_r () from /lib/libnss_db.so.2
#4 0x0facdedc in _nss_db_endservent () from /lib/libnss_db.so.2
#5 0x0face268 in _nss_db_getservbyname_r () from /lib/libnss_db.so.2
#6 0x0fbdd9c4 in getservbyname_r () from /lib/tls/libc.so.6
#7 0x0fbdd740 in getservbyname () from /lib/tls/libc.so.6
#8 0x10187df0 in set_ports () at mysqld.cc:1219
#9 0x1018c2d0 in usage () at mysqld.cc:6184
#10 0x1018db80 in get_options (argc=0, argv=0x10740f84) at mysqld.cc:7082
#11 0x10189c90 in init_common_variables (conf_file_name=0x105577bc "my", argc=3,
argv=0x10740f80, groups=0x10630c14) at mysqld.cc:2593
#12 0x1018b0d4 in main (argc=3, argv=0x7ffffb04) at mysqld.cc:3287