Hide Forgot
Description of problem: A customer needed to get the number of entries in a given DB. Based on this article we asked him to run dbscan: https://github.com/richm/scripts/wiki/dbmon.sh But dbscan is crashing in the customer environment. Version-Release number of selected component (if applicable): RHDS 9 - 389 1.2.11.15-84. How reproducible: Easily at customer site. Steps to Reproduce: For instance, # dbscan -f /var/lib/dirsrv/slapd-389/db/customer/id2entry.db4 -t 200 > slapd-389_customer.txt /usr/bin/dbscan: line 51: 28783 Segmentation fault (core dumped) ${dir}/${COMMAND} "$@" # Actual results: Command is crashing. Expected results: On a Red Hat test machine with RHDS 9 ( 1.2.11.15-62 ): # dbscan -f /var/lib/dirsrv/slapd-gparenterhel64/db/userRoot/id2entry.db4 -t 200 | grep rdn: rdn: dc=hq,dc=gsslab,dc=rdu,dc=redhat,dc=com rdn: cn=Directory Administrators rdn: ou=Groups rdn: ou=People rdn: ou=Special Users rdn: cn=Accounting Managers rdn: cn=HR Managers rdn: cn=QA Managers rdn: cn=PD Managers # Additional info: An excerpt of the backtrace: =============================================== GNU gdb (GDB) Red Hat Enterprise Linux (7.2-75.el6) ... Program terminated with signal 11, Segmentation fault. #0 0x00000035e12784fd in _int_free () from /lib64/libc.so.6 Thread 1 (Thread 0x7fa12fa57700 (LWP 25124)): #0 0x00000035e12784fd in _int_free () from /lib64/libc.so.6 No symbol table info available. #1 0x00000035e127b72e in _int_realloc () from /lib64/libc.so.6 No symbol table info available. #2 0x00000035e127baf5 in realloc () from /lib64/libc.so.6 No symbol table info available. #3 0x000000341172ad48 in __os_urealloc () from /usr/lib64/libdb-4.7.so No symbol table info available. #4 0x00000034116f2ce6 in __db_retcopy () from /usr/lib64/libdb-4.7.so No symbol table info available. #5 0x00000034116f2e28 in __db_ret () from /usr/lib64/libdb-4.7.so No symbol table info available. #6 0x00000034116d5eaf in __dbc_get () from /usr/lib64/libdb-4.7.so No symbol table info available. #7 0x00000034116de91d in __dbc_get_pp () from /usr/lib64/libdb-4.7.so No symbol table info available. #8 0x0000000000403014 in main (argc=<value optimized out>, argv=<value optimized out>) at ldap/servers/slapd/tools/dbscan.c:1297 ===============================================
Upstream ticket: https://fedorahosted.org/389/ticket/49104
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2017-0667.html