Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leak in entryrdn during delete #5643

Closed
mreynolds389 opened this issue Feb 10, 2023 · 1 comment · Fixed by #5717
Closed

Memory leak in entryrdn during delete #5643

mreynolds389 opened this issue Feb 10, 2023 · 1 comment · Fixed by #5717
Assignees
Milestone

Comments

@mreynolds389
Copy link
Contributor

Issue Description

Delete op triggers memory leak:

Direct leak of 96 byte(s) in 3 object(s) allocated from:
    #0 0x7f5c708ba6af in __interceptor_malloc (/lib64/libasan.so.8+0xba6af)
    #1 0x7f5c70f1faee in GrowStuff (/lib64/libnspr4.so+0x12aee)
    #2 0x7f5c70f1f865 in fill_n (/lib64/libnspr4.so+0x12865)
    #3 0x7f5c70f2049e in dosprintf (/lib64/libnspr4.so+0x1349e)
    #4 0x7f5c70f20db2 in PR_vsmprintf (/lib64/libnspr4.so+0x13db2)
    #5 0x7f5c7005d87c in slapi_ch_smprintf (/usr/lib64/dirsrv/libslapd.so.0+0x25d87c)
    #6 0x7f5c6a105693 in entryrdn_delete_key ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c:2700
    #7 0x7f5c6a106621 in entryrdn_index_entry ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c:252
    #8 0x7f5c6a0d0d82 in index_addordel_entry ldap/servers/slapd/back-ldbm/index.c:487
    #9 0x7f5c6a1076ec in ldbm_back_delete ldap/servers/slapd/back-ldbm/ldbm_delete.c:811
    #10 0x7f5c700920c2 in op_shared_delete ldap/servers/slapd/delete.c:338
    #11 0x7f5c70092832 in do_delete (/usr/lib64/dirsrv/libslapd.so.0+0x292832)
    #12 0x55639e2812e6 in connection_dispatch_operation ldap/servers/slapd/connection.c:643
    #13 0x55639e2812e6 in connection_threadmain ldap/servers/slapd/connection.c:1805
    #14 0x7f5c70f39412 in _pt_root (/lib64/libnspr4.so+0x2c412)
    #15 0x7f5c6fa8cdec in start_thread (/lib64/libc.so.6+0x8cdec)
    #16 0x7f5c6fb1236f in clone3 (/lib64/libc.so.6+0x11236f)
@mreynolds389 mreynolds389 added the needs triage The issue will be triaged during scrum label Feb 10, 2023
@jchapma jchapma self-assigned this Apr 2, 2023
jchapma added a commit to jchapma/389-ds-base that referenced this issue Apr 3, 2023
Bug description: Failure to delete temp key buffer

Fix description: Delete temp key buffer on exit

Fixes: 389ds#5643

Reviewed by:
jchapma added a commit that referenced this issue Apr 4, 2023
Bug description: Failure to delete temp key buffer

Fix description: Delete temp key buffer on exit

Fixes: #5643

Reviewed by: @mreynolds389  (Thank you)
mreynolds389 pushed a commit that referenced this issue May 11, 2023
Bug description: Failure to delete temp key buffer

Fix description: Delete temp key buffer on exit

Fixes: #5643

Reviewed by: @mreynolds389  (Thank you)
mreynolds389 pushed a commit that referenced this issue May 11, 2023
Bug description: Failure to delete temp key buffer

Fix description: Delete temp key buffer on exit

Fixes: #5643

Reviewed by: @mreynolds389  (Thank you)
mreynolds389 pushed a commit that referenced this issue May 11, 2023
Bug description: Failure to delete temp key buffer

Fix description: Delete temp key buffer on exit

Fixes: #5643

Reviewed by: @mreynolds389  (Thank you)
@mreynolds389
Copy link
Contributor Author

9c05f2e..2a27121 389-ds-base-2.3 -> 389-ds-base-2.3
aa1d1a9..09236fb 389-ds-base-2.2 -> 389-ds-base-2.2
f6e226e..cd3d624 389-ds-base-2.1 -> 389-ds-base-2.1

@mreynolds389 mreynolds389 removed the needs triage The issue will be triaged during scrum label May 11, 2023
@mreynolds389 mreynolds389 added this to the 2.1.0 milestone May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants