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

(ITS#4773) syncrepl segfault with incorrect config



Full_Name: Adrian Bridgett
Version: 2.3.29
OS: Linux (Debian)
URL: 
Submission from: (NULL) (81.5.177.202)


Trying to add or delete entries with syncrepl overlay I was getting segfaults.

I couldn't check against my test box (remote location, no power), but eventually
came across:
http://www.mail-archive.com/openldap-software@openldap.org/msg06772.html

This was in fact the problem I had too - I had specified syncrepl early on
rather than after the database definition.  Moving syncrepl into the correct
place fixed it.

Two hours wasted trying to figure out what was wrong, it would be good to have
some error message in this case :-)

The stack traces I got out weren't terribly helpful to me (from a debug build of
2.3.27 running on Debian sarge all up to date):
#0  0xa7f3501f in lutil_debug (debug=255, level=4, 
    fmt=0x4 <Address 0x4 out of bounds>)
    at /home/autobuild/builds/openldap2.3/openldap-2.3.27/libraries/liblber/debug.c:63
#1  0x0807f71b in fe_op_modify ()
#2  0x0807f0f5 in fe_op_modify ()
(repeat of #2)
#939 0x0807f0f5 in fe_op_modify ()
#940 0x0807f0f5 in fe_op_modify ()
#941 0x0807f0f5 in fe_op_modify ()
#942 0x080bf2fa in overlay_op_walk ()
#943 0x080bf3fd in overlay_op_walk ()
#944 0x080bf531 in overlay_op_walk ()
#945 0x0807e900 in do_modify ()
#946 0x0806960f in connection_done ()
#947 0xa7f46c28 in ldap_int_thread_pool_wrapper (xpool=0x24)
    at /home/autobuild/builds/openldap2.3/openldap-2.3.27/libraries/libldap_r/tpool.c:478
#948 0xa7d51b63 in start_thread () from /lib/tls/libpthread.so.0
#949 0xa7ce018a in clone () from /lib/tls/libc.so.6


#0  0x0806fca8 in fe_op_add ()
#1  0x0806ff58 in fe_op_add ()
(repeat of #1)
#11378 0x0806ff58 in fe_op_add ()
#11379 0x080bf2fa in overlay_op_walk ()
#11380 0x080bf3fd in overlay_op_walk ()
#11381 0x080bf591 in overlay_op_walk ()
#11382 0x0806f7af in do_add ()
#11383 0x0806960f in connection_done ()
#11384 0xa7f23c28 in ldap_int_thread_pool_wrapper (xpool=0x26)
    at /home/autobuild/builds/openldap2.3/openldap-2.3.27/libraries/libldap_r/tpool.c:478
#11385 0xa7d2eb63 in start_thread () from /lib/tls/libpthread.so.0
#11386 0xa7cbd18a in clone () from /lib/tls/libc.so.6

Please shout if you want any more info.

Thanks for a great product,

Adrian