[Pkg-openldap-devel] Bug#816294: slapd segfault on update dbconfig

Thomas Otto thomas.otto at uni-jena.de
Mon Feb 29 14:57:30 UTC 2016


Package: slapd
Version: 2.4.40+dfsg-1+deb8u2
Severity: serious



Hello,

we are using Debian 8.3 on amd64.
We installed a multimaster replication setup.

On update the BDB Settings the slapd crashed !!




ldapmodify -Z -h ldaptest1
...
dn: olcDatabase={3}hdb,cn=config
changetype: modify
replace: olcDbConfig
olcDbConfig: # Note: most DB_CONFIG settings will take effect only upon rebuilding
olcDbConfig: # the DB environment.
olcDbConfig: #
olcDbConfig: # one 0.25 GB cache
olcDbConfig: #set_cachesize 0 268435456 1
olcDbConfig: set_cachesize 1 0 1
olcDbConfig: # Data Directory
olcDbConfig: #set_data_dir db
olcDbConfig: # Transaction Log settings
olcDbConfig: set_lg_regionmax 262144
olcDbConfig: set_lg_bsize 2097152
olcDbConfig: #set_lg_dir logs
olcDbConfig: # delete Transaction Logs:
olcDbConfig: set_flags DB_LOG_AUTOREMOVE
olcDbConfig: # Note that if the log files are removed automatically, recovery after
olcDbConfig: # a catastrophic failure is likely to be impossible.
olcDbConfig: # http://wiki.zimbra.com/wiki/OpenLDAP_Performance_Tuning_5.0
olcDbConfig: # db5.1_stat -c -h /var/lib/ldap/logs
olcDbConfig: set_lk_max_locks   60000
olcDbConfig: set_lk_max_objects 25000
olcDbConfig: set_lk_max_lockers 1500

modifying entry "olcDatabase={3}hdb,cn=config"
ldap_modify: Other (e.g., implementation specific) error (80)
	additional info: failed to reopen database, rc=22



/var/log/slapd.log
...
Feb 29 14:08:24 ldaptest1 slapd[1030]: conn=1102 op=5 MOD dn="olcDatabase={3}hdb,cn=config"
Feb 29 14:08:24 ldaptest1 slapd[1030]: conn=1102 op=5 MOD attr=olcDbConfig
Feb 29 14:08:24 ldaptest1 slapd[1030]: bdb(cn=logs): BDB4511 Error: closing the transaction region with active transactions
Feb 29 14:08:24 ldaptest1 slapd[1030]: bdb_db_close: database "cn=logs": close failed: Invalid argument (22)
Feb 29 14:08:24 ldaptest1 slapd[1030]: hdb_cf_cleanup: failed to reopen database, rc=22
Feb 29 14:08:24 ldaptest1 slapd[1030]: conn=1102 op=5 RESULT tag=103 err=80 text=failed to reopen database, rc=22
Feb 29 14:08:24 ldaptest1 slapd[1030]: daemon: abnormal condition, shutdown initiated.
Feb 29 14:08:24 ldaptest1 slapd[1030]: conn=1000 fd=33 closed (slapd shutdown)
Feb 29 14:08:24 ldaptest1 slapd[1030]: conn=1001 fd=34 closed (slapd shutdown)
Feb 29 14:08:24 ldaptest1 slapd[1030]: conn=1102 fd=35 closed (slapd shutdown)
Feb 29 14:08:24 ldaptest1 slapd[1030]: slapd shutdown: waiting for 0 operations/tasks to finish


/var/log/syslog:
...
Feb 29 14:08:24 ldaptest1 kernel: [15718581.291093] slapd[1044]: segfault at e0 ip 00007f5f44f4ef32 sp 00007f5e264bdbb0 error 4 in libdb-5.3.so[7f5f44de9000+1b5000]





root at ldaptest1:~# ldd /usr/sbin/slapd
	linux-vdso.so.1 (0x00007fff8925e000)
	libldap_r-2.4.so.2 => /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2 (0x00007f3fb14d2000)
	liblber-2.4.so.2 => /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2 (0x00007f3fb12c3000)
	libdb-5.3.so => /usr/lib/x86_64-linux-gnu/libdb-5.3.so (0x00007f3fb0f02000)
	libodbc.so.2 => /usr/lib/x86_64-linux-gnu/libodbc.so.2 (0x00007f3fb0c9a000)
	libslp.so.1 => /usr/lib/x86_64-linux-gnu/libslp.so.1 (0x00007f3fb0a88000)
	libsasl2.so.2 => /usr/lib/x86_64-linux-gnu/libsasl2.so.2 (0x00007f3fb086c000)
	libgnutls-deb0.so.28 => /usr/lib/x86_64-linux-gnu/libgnutls-deb0.so.28 (0x00007f3fb054d000)
	libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007f3fb0316000)
	libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f3fb00ff000)
	libslapi-2.4.so.2 => /usr/lib/x86_64-linux-gnu/libslapi-2.4.so.2 (0x00007f3fafedf000)
	libltdl.so.7 => /usr/lib/x86_64-linux-gnu/libltdl.so.7 (0x00007f3fafcd5000)
	libwrap.so.0 => /lib/x86_64-linux-gnu/libwrap.so.0 (0x00007f3fafaca000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f3faf8ad000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3faf502000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f3faf2fe000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f3faf0e3000)
	libp11-kit.so.0 => /usr/lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007f3faee9d000)
	libtasn1.so.6 => /usr/lib/x86_64-linux-gnu/libtasn1.so.6 (0x00007f3faec89000)
	libnettle.so.4 => /usr/lib/x86_64-linux-gnu/libnettle.so.4 (0x00007f3faea57000)
	libhogweed.so.2 => /usr/lib/x86_64-linux-gnu/libhogweed.so.2 (0x00007f3fae828000)
	libgmp.so.10 => /usr/lib/x86_64-linux-gnu/libgmp.so.10 (0x00007f3fae5a5000)
	libnsl.so.1 => /lib/x86_64-linux-gnu/libnsl.so.1 (0x00007f3fae38d000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f3fb1aae000)
	libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f3fae185000)


root at ldaptest1:~# dpkg -l libdb*
Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig Löschen/Halten
| Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/
         Halb installiert/Trigger erWartet/Trigger anhängig
|/ Fehler?=(kein)/R=Neuinstallation notwendig (Status, Fehler: GROSS=schlecht)
||/ Name                                Version                Architektur            Beschreibung
+++-===================================-======================-======================-===========================================================================
un  libdb2                              <keine>                <keine>                (keine Beschreibung vorhanden)
ii  libdb4.6                            4.6.21-16              amd64                  Berkeley v4.6 Database Libraries [runtime]
ii  libdb4.7                            4.7.25-9               amd64                  Berkeley v4.7 Database Libraries [runtime]
ii  libdb4.8                            4.8.30-2               amd64                  Berkeley v4.8 Database Libraries [runtime]
ii  libdb5.1:amd64                      5.1.29-5               amd64                  Berkeley v5.1 Database Libraries [runtime]
ii  libdb5.3:amd64                      5.3.28-9               amd64                  Berkeley v5.3 Database Libraries [runtime]
un  libdbd-anydata-perl                 <keine>                <keine>                (keine Beschreibung vorhanden)
un  libdbd-csv-perl                     <keine>                <keine>                (keine Beschreibung vorhanden)
un  libdbd-freetds                      <keine>                <keine>                (keine Beschreibung vorhanden)
un  libdbd-mysql                        <keine>                <keine>                (keine Beschreibung vorhanden)
ii  libdbd-mysql-perl                   4.028-2+b1             amd64                  Perl5 database interface to the MySQL database
un  libdbd-pgsql                        <keine>                <keine>                (keine Beschreibung vorhanden)
un  libdbd-sqlite                       <keine>                <keine>                (keine Beschreibung vorhanden)
un  libdbd-sqlite3                      <keine>                <keine>                (keine Beschreibung vorhanden)
ii  libdbi-perl                         1.631-3+b1             amd64                  Perl Database Interface (DBI)
ii  libdbi1:amd64                       0.9.0-4                amd64                  DB Independent Abstraction Layer for C -- shared library
un  libdbm-ruby1.8                      <keine>                <keine>                (keine Beschreibung vorhanden)
un  libdbm-ruby1.9.1                    <keine>                <keine>                (keine Beschreibung vorhanden)
ii  libdbus-1-3:amd64                   1.8.20-0+deb8u1        amd64                  simple interprocess messaging system (library)
ii  libdbus-glib-1-2:amd64              0.102-1                amd64                  simple interprocess messaging system (GLib-based shared library)




best regards

Thomas Otto
-- 
Thomas Otto, Dipl.-Inf.
Friedrich-Schiller-Universität Jena
Rechenzentrum
Am Johannisfriedhof 2
D-07743 Jena
Tel.: 03641/9-40530
Fax.: 03641/9-40630



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5090 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-openldap-devel/attachments/20160229/45864d46/attachment.bin>


More information about the Pkg-openldap-devel mailing list