[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#5549) slapd SEGV faults in entry_partsize when monitoring

Full_Name: Andreas Mueller
Version: 2.4.9
OS: Solaris 10
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

We have four slapd servers in a mirrormode configuration.
This generally works well. We monitor these servers using
ldapsearches to cn=Monitor every minute, and collect
performance data to construct load/performance graphs
with rrdtool. Unfortunately, it sometimes happens that
slapd crashes during the monitoring query. Using gdb, we
were able to get a stack backtrace:

Core was generated by `/usr/local/libexec/slapd'.
Program terminated with signal 11, Segmentation fault.
#0  0x0005fd48 in entry_partsize ()
(gdb) bt
#0  0x0005fd48 in entry_partsize ()
#1  0x000603b4 in entry_flatsize ()
#2  0x0006a5c8 in slap_send_search_entry ()
#3  0x00134330 in monitor_send_children ()
#4  0x001348e0 in monitor_back_search ()
#5  0x000523ac in fe_op_search ()
#6  0x00051b64 in do_search ()
#7  0x0004dd8c in connection_operation ()
#8  0x0004e4c4 in connection_read_thread ()
#9  0x001a22a8 in ldap_int_thread_pool_wrapper ()
#10 0xfe3c5800 in __tbl_10_huge_digits () from /lib/libc.so.1

All cores obtained so far show that the segmentation fault
occured at the same location inside entry_partsize.

Unfortunately we cannot systematically reproduce this behaviour,
and we also cannot get the line number (binaries are stripped).

We have not tried other versions or other platforms. For production,
we use the versions available in package form from www.sunfreeware.com,
but the error also happens on servers we have compiled ourselves from
the sources.