Issue 10044 - dynlist sometimes crashes when a search operation is abandoned
Summary: dynlist sometimes crashes when a search operation is abandoned
Status: RESOLVED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: overlays (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: 2.5.18
Assignee: Howard Chu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-24 13:58 UTC by Ondřej Kuzník
Modified: 2024-03-26 16:59 UTC (History)
0 users

See Also:


Attachments
slapd stats logs + backtrace (3.70 KB, text/plain)
2024-02-13 12:36 UTC, Ondřej Kuzník
Details

Note You need to log in before you can comment on or make changes to this issue.
Description Ondřej Kuzník 2023-04-24 13:58:53 UTC
Playing with the DB provided in ITS#10041 on master, interrupting the ldapsearch sometimes leads to a slapd crash. It's not 100% repeatable and the debugger shows dynlist_search2resp touching memory freed by dynlist_search_cleanup already, which doesn't make sense. Might be something else is happening at the same time.
Comment 1 Quanah Gibson-Mount 2024-01-17 15:59:24 UTC
likely fixed by bug#10135, marking as duplicate unless it can be reproduced again

*** This issue has been marked as a duplicate of issue 10135 ***
Comment 2 Ondřej Kuzník 2024-02-13 12:36:20 UTC
Created attachment 1012 [details]
slapd stats logs + backtrace
Comment 3 Ondřej Kuzník 2024-02-13 12:36:54 UTC
I can still replicate this on current master with the set up in ITS#10041, just run slapd and run this ldapsearch twice, Ctrl+C it before it finishes:

ldapsearch -x -H 'ldap://localhost:9011/' -D 'cn=admin,dc=my-organization,dc=com' -w pw -b 'ou=groups,dc=my-organization,dc=com' '(&(cn=*group*)(cn=*1)(member=uid=user1,ou=people,dc=my-organization,dc=com))' cn

stats logs + backtrace attached just now
Comment 5 Quanah Gibson-Mount 2024-03-26 16:59:08 UTC
head:

  • ce524021 
by Howard Chu at 2024-02-22T19:54:30+00:00 
ITS#10044 dynlist: check for abandon in search2resp


RE26:

  • 97474d96 
by Howard Chu at 2024-03-26T16:42:34+00:00 
ITS#10044 dynlist: check for abandon in search2resp


RE25:

  • abd8706e 
by Howard Chu at 2024-03-26T16:43:13+00:00 
ITS#10044 dynlist: check for abandon in search2resp