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

Re: OpenLDAP crash when defining multiple olcDbURI for chaining



On 14-09-08 5:30 PM, Quanah Gibson-Mount wrote:
--On Monday, September 08, 2014 6:25 PM -0400 Khosrow Ebrahimpour <khosrow.ebrahimpour@ssc-spc.gc.ca> wrote:

Hello list,

I am trying to setup referral chaining in a multi-master setup. I can
setup chaining to one of the masters without any problems. And I can
perform a MOD operation that is then referral chased and performed on the
master.

OpenLDAP 2.4.31 is extremely old. The current release is 2.4.39. You should attempt to reproduce this with the current RE24 code, which as numerous fixes even since 2.4.39, as we are preparing for 2.4.40. If you can still reproduce this with the current RE24 code, then please file a bug report at http://www.openldap.org/its/

Thanks!

--Quanah

Just managed to reproduce the bug on RE24 (commit #dbc6741750de79b852ec9f728abb8b1425b6f03f). Exact same setup as described earlier with the same result: replica crashes on a MOD operation.

I'm still not sure if this is a bug or a misconfiguration on my part. Attached is the crash log with loglevel set to "stats trace args sync" (again with no indication of any errors).


Thanks,
--
Khosrow
Sep 12 00:06:00 ldap3-dev slapd[32043]: slap_listener_activate(8):
Sep 12 00:06:00 ldap3-dev slapd[32043]: >>> slap_listener(ldap:///)
Sep 12 00:06:00 ldap3-dev slapd[32043]: conn=1048 fd=12 ACCEPT from IP=127.0.0.1:45891 (IP=0.0.0.0:389)
Sep 12 00:06:00 ldap3-dev slapd[32043]: connection_get(12)
Sep 12 00:06:00 ldap3-dev slapd[32043]: connection_get(12): got connid=1048
Sep 12 00:06:00 ldap3-dev slapd[32043]: connection_read(12): checking for input on id=1048
Sep 12 00:06:00 ldap3-dev slapd[32043]: op tag 0x60, time 1410480360
Sep 12 00:06:00 ldap3-dev slapd[32043]: conn=1048 op=0 do_bind
Sep 12 00:06:00 ldap3-dev slapd[32043]: >>> dnPrettyNormal: <cn=admin,dc=example,dc=org>
Sep 12 00:06:00 ldap3-dev slapd[32043]: <<< dnPrettyNormal: <cn=admin,dc=example,dc=org>, <cn=admin,dc=example,dc=org>
Sep 12 00:06:00 ldap3-dev slapd[32043]: conn=1048 op=0 BIND dn="cn=admin,dc=example,dc=org" method=128
Sep 12 00:06:00 ldap3-dev slapd[32043]: do_bind: version=3 dn="cn=admin,dc=example,dc=org" method=128
Sep 12 00:06:00 ldap3-dev slapd[32043]: ==> hdb_bind: dn: cn=admin,dc=example,dc=org
Sep 12 00:06:00 ldap3-dev slapd[32043]: conn=1048 op=0 BIND dn="cn=admin,dc=example,dc=org" mech=SIMPLE ssf=0
Sep 12 00:06:00 ldap3-dev slapd[32043]: do_bind: v3 bind: "cn=admin,dc=example,dc=org" to "cn=admin,dc=example,dc=org"
Sep 12 00:06:00 ldap3-dev slapd[32043]: send_ldap_result: conn=1048 op=0 p=3
Sep 12 00:06:00 ldap3-dev slapd[32043]: send_ldap_result: err=0 matched="" text=""
Sep 12 00:06:00 ldap3-dev slapd[32043]: send_ldap_response: msgid=1 tag=97 err=0
Sep 12 00:06:00 ldap3-dev slapd[32043]: conn=1048 op=0 RESULT tag=97 err=0 text=
Sep 12 00:06:00 ldap3-dev slapd[32043]: connection_get(12)
Sep 12 00:06:00 ldap3-dev slapd[32043]: connection_get(12): got connid=1048
Sep 12 00:06:00 ldap3-dev slapd[32043]: connection_read(12): checking for input on id=1048
Sep 12 00:06:00 ldap3-dev slapd[32043]: op tag 0x66, time 1410480360
Sep 12 00:06:00 ldap3-dev slapd[32043]: conn=1048 op=1 do_modify
Sep 12 00:06:00 ldap3-dev slapd[32043]: conn=1048 op=1 do_modify: dn (uid=kebrahimpour,ou=people,dc=example,dc=org)
Sep 12 00:06:00 ldap3-dev slapd[32043]: >>> dnPrettyNormal: <uid=kebrahimpour,ou=people,dc=example,dc=org>
Sep 12 00:06:00 ldap3-dev slapd[32043]: <<< dnPrettyNormal: <uid=kebrahimpour,ou=people,dc=example,dc=org>, <uid=kebrahimpour,ou=people,dc=example,dc=org>
Sep 12 00:06:00 ldap3-dev slapd[32043]: conn=1048 op=1 modifications:
Sep 12 00:06:00 ldap3-dev slapd[32043]: 	replace: gecos
Sep 12 00:06:00 ldap3-dev slapd[32043]: 		one value, length 22
Sep 12 00:06:00 ldap3-dev slapd[32043]: conn=1048 op=1 MOD dn="uid=kebrahimpour,ou=people,dc=example,dc=org"
Sep 12 00:06:00 ldap3-dev slapd[32043]: conn=1048 op=1 MOD attr=gecos
Sep 12 00:06:00 ldap3-dev slapd[32043]: bdb_dn2entry("uid=kebrahimpour,ou=people,dc=example,dc=org")
Sep 12 00:06:00 ldap3-dev slapd[32043]: => hdb_dn2id("ou=people,dc=example,dc=org")
Sep 12 00:06:00 ldap3-dev slapd[32043]: <= hdb_dn2id: got id=0x6
Sep 12 00:06:00 ldap3-dev slapd[32043]: => hdb_dn2id("uid=kebrahimpour,ou=people,dc=example,dc=org")
Sep 12 00:06:00 ldap3-dev slapd[32043]: <= hdb_dn2id: got id=0x14
Sep 12 00:06:00 ldap3-dev slapd[32043]: entry_decode: ""
Sep 12 00:06:00 ldap3-dev slapd[32043]: <= entry_decode()
Sep 12 00:06:00 ldap3-dev slapd[32043]: send_ldap_result: conn=1048 op=1 p=3
Sep 12 00:06:00 ldap3-dev slapd[32043]: send_ldap_result: err=10 matched="" text=""
Sep 12 00:06:00 ldap3-dev slapd[32043]: send_ldap_result: referral="ldap://ldap1-dev/uid=kebrahimpour,ou=people,dc=example,dc=org";
Sep 12 00:06:00 ldap3-dev slapd[32043]: >>> dnPrettyNormal: <uid=kebrahimpour,ou=people,dc=example,dc=org>
Sep 12 00:06:00 ldap3-dev slapd[32043]: <<< dnPrettyNormal: <uid=kebrahimpour,ou=people,dc=example,dc=org>, <uid=kebrahimpour,ou=people,dc=example,dc=org>
Sep 12 00:06:00 ldap3-dev slapd[32043]: conn=1048 op=1 ldap_chain_op: ref="ldap://ldap1-dev/uid=kebrahimpour,ou=people,dc=example,dc=org"; -> "ldap://ldap1-dev";
ldap3-dev:/tmp#