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

Re: (ITS#8690) syncprov memory leak

--On Tuesday, August 01, 2017 8:33 PM +0000 quanah@symas.com wrote:

> With the patch applied, test019 sporadically segfaults after doing a
> delete  op on an entry.  Took me 12/50 iterations with back-mdb, 2/50
> with  back-bdb.  But just 1/1 on two other occasions, so while it's not
> every  iteration, it's fairly repeatable.  I will work on getting a
> backtrace as  well.

With the current code, test050 sporadically fails (Took me 8/50 iterations):

5983d09b do_syncrep2: rid=012 
5983d09b bdb_delete: deleted id=00000018 dn="cn=To be deleted by server 
5983d09b send_ldap_result: conn=-1 op=0 p=0
5983d09b send_ldap_result: err=0 matched="" text=""
5983d09b syncprov_sendresp: to=002, 
5983d09b => send_search_entry: conn 1012 dn="cn=To be deleted by server 
ber_flush2: 175 bytes to sd 26
5983d09b <= send_search_entry: conn 1012 exit.
5983d09b slap_graduate_commit_csn: removing 0x7f93ac113800 
5983d09b syncrepl_entry: rid=013 be_delete cn=To be deleted by server 
3,dc=example,dc=com (0)
5983d09b slap_queue_csn: queueing 0x7f93ac107860 
5983d09b bdb_modify: dc=example,dc=com
5983d09b bdb_modify: txn1 id: 8000004e
5983d09b bdb_dn2entry("dc=example,dc=com")
5983d09b bdb_modify: txn2 id: 8000004f
5983d09b bdb_modify_internal: 0x00000001: dc=example,dc=com
5983d09b bdb_modify_internal: replace contextCSN
5983d09b => entry_encode(0x00000001): dc=example,dc=com
5983d09b <= entry_encode(0x00000001): dc=example,dc=com
5983d09b syncprov_sendresp: to=004, cookie=rid=011,sid=001,csn=
5983d09b slap_build_sync_ctrl: ber_flatten2 failed (-1)
5983d09b send_ldap_result: conn=1013 op=1 p=3
5983d09b send_ldap_result: err=80 matched="" text="internal error"
5983d09b send_ldap_response: msgid=2 tag=101 err=80
ber_flush2: 146 bytes to sd 30
5983d09b conn=1013 op=1 SEARCH RESULT tag=101 err=80 
duration=-1427710511.244ms nentries=0 text=internal error

Aug  3 18:40:43 ub16 kernel: [42374.949965] slapd[30897]: segfault at 
8000004e ip 00007f93bccb5cc0 sp 00007f93ba1aaa10 error 4 in 



Quanah Gibson-Mount
Product Architect
Symas Corporation
Packaged, certified, and supported LDAP solutions powered by OpenLDAP: