Run ns-slapd with valgrind and remove a suffix/backend (e.g., from Console). Valgrind reports this invalid read on deleting a suffix/backend. ==10342== Invalid read of size 4 ==10342== at 0x404953F: dse_call_callback (dse.c:2198) ==10342== by 0x40493B3: dse_delete (dse.c:2153) ==10342== by 0x404057F: op_shared_delete (delete.c:365) ==10342== by 0x403FDAD: do_delete (delete.c:128) ==10342== by 0x8057D29: connection_dispatch_operation (connection.c:573) ==10342== by 0x805951A: connection_threadmain (connection.c:2328) ==10342== by 0x361A964: _pt_root (ptthread.c:187) ==10342== by 0x789E98: start_thread (in /lib/libpthread-2.13.so) ==10342== by 0x6CFD2D: clone (in /lib/libc-2.13.so) ==10342== Address 0x41bf7c8 is 32 bytes inside a block of size 36 free'd ==10342== at 0x4005B0A: free (vg_replace_malloc.c:325) ==10342== by 0x403BB0F: slapi_ch_free (ch_malloc.c:363) ==10342== by 0x40458E0: dse_callback_delete (dse.c:261) ==10342== by 0x4045B1B: dse_callback_removefromlist (dse.c:351) ==10342== by 0x40494BA: dse_remove_callback (dse.c:2171) ==10342== by 0x4049758: slapi_config_remove_callback (dse.c:2247) ==10342== by 0x639ABF4: vlv_remove_callbacks (vlv.c:465) ==10342== by 0x6380794: ldbm_instance_unregister_callbacks (ldbm_instance_config.c:1062) ==10342== by 0x6380AB7: ldbm_instance_post_delete_instance_entry_callback (ldbm_instance_config.c:1161) ==10342== by 0x40495F6: dse_call_callback (dse.c:2206) ==10342== by 0x40493B3: dse_delete (dse.c:2153) ==10342== by 0x404057F: op_shared_delete (delete.c:365) ==10342== by 0x403FDAD: do_delete (delete.c:128) ==10342== by 0x8057D29: connection_dispatch_operation (connection.c:573) ==10342== by 0x805951A: connection_threadmain (connection.c:2328) ==10342== by 0x361A964: _pt_root (ptthread.c:187) ==10342== by 0x789E98: start_thread (in /lib/libpthread-2.13.so) ==10342== by 0x6CFD2D: clone (in /lib/libc-2.13.so)
Note: this issue was found when testing Ticket #26.
Tested the latest ds-base on RHEL6.3 as well as on Fedora 16. The invalid read was not observed in the both cases.
Red Hat Enterprise Linux Server release 6.3 Beta (Santiago)
redhat-ds-base-9.0.0-0.17.el6dsrv.x86_64
Fedora release 16 (Verne) $ rpm -q 389-ds-base 389-ds-base-1.2.10.4-4.fc16.x86_64
Added initial screened field value.
Metadata Update from @nkinder: - Issue assigned to nhosoi - Issue set to the milestone: N/A
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/259
If you want to receive further updates on the issue, please navigate to the github issue and click on subscribe button.
subscribe
Thank you for understanding. We apologize for all inconvenience.
Metadata Update from @spichugi: - Issue close_status updated to: wontfix (was: Invalid)
Login to comment on this ticket.