#47685 valgrind: vattr memory leaks detected in filtered role
Closed: wontfix Opened by mreynolds.

Create a new filtered role, and look up entries that should be part of that new role:

==4831== Thread 1:
==4831== 32 bytes in 2 blocks are definitely lost in loss record 670 of 1,932
==4831== at 0x4A0577B: calloc (vg_replace_malloc.c:593)
==4831== by 0x4C5F851: slapi_ch_calloc (ch_malloc.c:243)
==4831== by 0x4D0365F: vattr_call_sp_get_batch_values (vattr.c:1718)
==4831== by 0x4D021B2: slapi_vattr_namespace_values_get_sp (vattr.c:928)
==4831== by 0x4CD888D: send_specific_attrs (result.c:1410)
==4831== by 0x4CD912C: send_ldap_search_entry_ext (result.c:1633)
==4831== by 0x4CD7F72: send_ldap_search_entry (result.c:1080)
==4831== by 0x4CB37A2: iterate (opshared.c:1444)
==4831== by 0x4CB3C08: send_results_ext (opshared.c:1678)
==4831== by 0x4CB2915: op_shared_search (opshared.c:853)
==4831== by 0x4311F5: do_search (search.c:376)
==4831== by 0x415D15: connection_dispatch_operation (connection.c:684)
==4831== by 0x417AB2: connection_threadmain (connection.c:2534)
==4831== by 0x3A8D029A72: ??? (in /lib64/libnspr4.so)
==4831== by 0x378E407850: start_thread (in /lib64/libpthread-2.12.so)
==4831== by 0x378E0E890C: clone (in /lib64/libc-2.12.so)
==4831==
==4831== 48 bytes in 6 blocks are definitely lost in loss record 859 of 1,932
==4831== at 0x4A0577B: calloc (vg_replace_malloc.c:593)
==4831== by 0x4C5F851: slapi_ch_calloc (ch_malloc.c:243)
==4831== by 0x4C76D5F: slapi_entry_vattrcache_find_values_and_type_ex (entry.c:2620)
==4831== by 0x4D0207D: slapi_vattr_namespace_values_get_sp (vattr.c:883)
==4831== by 0x4CD888D: send_specific_attrs (result.c:1410)
==4831== by 0x4CD912C: send_ldap_search_entry_ext (result.c:1633)
==4831== by 0x4CD7F72: send_ldap_search_entry (result.c:1080)
==4831== by 0x4CB37A2: iterate (opshared.c:1444)
==4831== by 0x4CB3C08: send_results_ext (opshared.c:1678)
==4831== by 0x4CB2915: op_shared_search (opshared.c:853)
==4831== by 0x4311F5: do_search (search.c:376)
==4831== by 0x415D15: connection_dispatch_operation (connection.c:684)
==4831== by 0x417AB2: connection_threadmain (connection.c:2534)
==4831== by 0x3A8D029A72: ??? (in /lib64/libnspr4.so)
==4831== by 0x378E407850: start_thread (in /lib64/libpthread-2.12.so)
==4831== by 0x378E0E890C: clone (in /lib64/libc-2.12.so)
==4831==
==4831== 128 bytes in 16 blocks are definitely lost in loss record 1,414 of 1,932
==4831== at 0x4A0577B: calloc (vg_replace_malloc.c:593)
==4831== by 0x4C5F851: slapi_ch_calloc (ch_malloc.c:243)
==4831== by 0x4D02302: slapi_vattr_namespace_values_get_sp (vattr.c:991)
==4831== by 0x4CD888D: send_specific_attrs (result.c:1410)
==4831== by 0x4CD912C: send_ldap_search_entry_ext (result.c:1633)
==4831== by 0x4CD7F72: send_ldap_search_entry (result.c:1080)
==4831== by 0x4CB37A2: iterate (opshared.c:1444)
==4831== by 0x4CB3C34: send_results_ext (opshared.c:1682)
==4831== by 0x4CB2915: op_shared_search (opshared.c:853)
==4831== by 0x4311F5: do_search (search.c:376)
==4831== by 0x415D15: connection_dispatch_operation (connection.c:684)
==4831== by 0x417AB2: connection_threadmain (connection.c:2534)
==4831== by 0x3A8D029A72: ??? (in /lib64/libnspr4.so)
==4831== by 0x378E407850: start_thread (in /lib64/libpthread-2.12.so)
==4831== by 0x378E0E890C: clone (in /lib64/libc-2.12.so)
==4831==
==4831== 792 bytes in 99 blocks are definitely lost in loss record 1,758 of 1,932
==4831== at 0x4A0577B: calloc (vg_replace_malloc.c:593)
==4831== by 0x4C5F851: slapi_ch_calloc (ch_malloc.c:243)
==4831== by 0x4D02302: slapi_vattr_namespace_values_get_sp (vattr.c:991)
==4831== by 0x4CD888D: send_specific_attrs (result.c:1410)
==4831== by 0x4CD912C: send_ldap_search_entry_ext (result.c:1633)
==4831== by 0x4CD7F72: send_ldap_search_entry (result.c:1080)
==4831== by 0x4CB37A2: iterate (opshared.c:1444)
==4831== by 0x4CB3C08: send_results_ext (opshared.c:1678)
==4831== by 0x4CB2915: op_shared_search (opshared.c:853)
==4831== by 0x4311F5: do_search (search.c:376)
==4831== by 0x415D15: connection_dispatch_operation (connection.c:684)
==4831== by 0x417AB2: connection_threadmain (connection.c:2534)
==4831== by 0x3A8D029A72: ??? (in /lib64/libnspr4.so)
==4831== by 0x378E407850: start_thread (in /lib64/libpthread-2.12.so)
==4831== by 0x378E0E890C: clone (in /lib64/libc-2.12.so)


Ticket has been cloned to Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1206304

I can no longer reproduce this leak. Closing ticket.

Metadata Update from @mreynolds:
- Issue assigned to mreynolds
- Issue set to the milestone: 1.3.4 backlog

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/389ds/389-ds-base/issues/1021

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @spichugi:
- Issue close_status updated to: wontfix (was: Invalid)

Metadata