#48388 /usr/sbin/ns-slapd db2ldif -r segfaults from time to time
Closed: wontfix None Opened 8 years ago by apollo13.

I am not able to reproduce the segfault all the time, but it happens often enough. My system is using freeipa from CentsOS 7.2. The segfault also occured on CentOS 7.1 but less frequently it seems.

The gdb trace is as follows:

Core was generated by `/usr/sbin/ns-slapd db2ldif -D /etc/dirsrv/slapd-BAP-LAN -n ipaca -a /var/lib/di'.
Program terminated with signal 11, Segmentation fault.
#0  cos_cache_template_index_compare (e1=0x7f56c000df70, e2=0x0) at ldap/servers/plugins/cos/cos_cache.c:3057
3057        if(0 == slapi_dn_issuffix((const char*)e1,*(const char**)e2))
(gdb) bt
#0  cos_cache_template_index_compare (e1=0x7f56c000df70, e2=0x0) at ldap/servers/plugins/cos/cos_cache.c:3057
#1  0x00007f56e91eaf08 in __GI_bsearch (key=key@entry=0x7f56c000df70, base=0x0, nmemb=<optimized out>, size=size@entry=8, compar=compar@entry=0x7f56e19a1510 <cos_cache_template_index_compare>)
    at bsearch.c:37
#2  0x00007f56e19a5ddd in cos_cache_template_index_bsearch (dn=0x7f56c000df70 "changenumber=9892,cn=changelog") at ldap/servers/plugins/cos/cos_cache.c:3079
#3  cos_cache_change_notify (pb=pb@entry=0x7f56c000d0a0) at ldap/servers/plugins/cos/cos_cache.c:3348
#4  0x00007f56e19a0bed in cos_post_op (pb=0x7f56c000d0a0) at ldap/servers/plugins/cos/cos.c:265
#5  0x00007f56eb9f86c8 in plugin_call_func (list=0x7f56edb15430, operation=operation@entry=523, pb=pb@entry=0x7f56c000d0a0, call_one=call_one@entry=0) at ldap/servers/slapd/plugin.c:1920
#6  0x00007f56eb9f8993 in plugin_call_list (pb=0x7f56c000d0a0, operation=523, list=<optimized out>) at ldap/servers/slapd/plugin.c:1864
#7  plugin_call_plugins (pb=pb@entry=0x7f56c000d0a0, whichfunction=whichfunction@entry=523) at ldap/servers/slapd/plugin.c:438
#8  0x00007f56eb9ad27d in op_shared_delete (pb=pb@entry=0x7f56c000d0a0) at ldap/servers/slapd/delete.c:358
#9  0x00007f56eb9ad3b2 in delete_internal_pb (pb=pb@entry=0x7f56c000d0a0) at ldap/servers/slapd/delete.c:211
#10 0x00007f56eb9ad663 in slapi_delete_internal_pb (pb=pb@entry=0x7f56c000d0a0) at ldap/servers/slapd/delete.c:154
#11 0x00007f56dced135e in delete_changerecord (cnum=cnum@entry=9892) at ldap/servers/plugins/retrocl/retrocl_trim.c:88
#12 0x00007f56dced1631 in trim_changelog () at ldap/servers/plugins/retrocl/retrocl_trim.c:287
#13 changelog_trim_thread_fn (arg=<optimized out>) at ldap/servers/plugins/retrocl/retrocl_trim.c:330
#14 0x00007f56e9bdb7bb in _pt_root (arg=0x7f56cc0008c0) at ../../../nspr/pr/src/pthreads/ptthread.c:212
#15 0x00007f56e957cdc5 in start_thread (arg=0x7f56ebe18700) at pthread_create.c:308
#16 0x00007f56e92aa21d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113
(gdb) f 0
#0  cos_cache_template_index_compare (e1=0x7f56c000df70, e2=0x0) at ldap/servers/plugins/cos/cos_cache.c:3057
3057        if(0 == slapi_dn_issuffix((const char*)e1,*(const char**)e2))
(gdb) p e1
$1 = (const void *) 0x7f56c000df70
(gdb) p e2
$2 = (const void *) 0x0
(gdb) p (char*)e1
$3 = 0x7f56c000df70 "changenumber=9892,cn=changelog"

Please let me know if I can provide any further information.


As requested by lkrispen on IRC: The segfault occurs when running ipa-backup

Example output:
{{{
Preparing backup on ipa01.bap.lan
Stopping IPA services
Backing up ipaca in BAP-LAN to LDIF
db2ldif failed: [16/Dec/2015:19:00:09 +0100] - /etc/dirsrv/slapd-BAP-LAN/dse.ldif: nsslapd-maxdescriptors: nsslapd-maxdescriptors: invalid value "8192", maximum file descriptors must range from 1 to 4096 (the current process limit). Server will use a setting of 4096.
[16/Dec/2015:19:00:09 +0100] - Config Warning: - nsslapd-maxdescriptors: invalid value "8192", maximum file descriptors must range from 1 to 4096 (the current process limit). Server will use a setting of 4096.
[16/Dec/2015:19:00:09 +0100] - userRoot: entry cache size: 10485760B; db size: 770048B
[16/Dec/2015:19:00:09 +0100] - ipaca: entry cache size: 10485760B; db size: 835584B
[16/Dec/2015:19:00:09 +0100] - WARNING: changelog: entry cache size 2097152B is less than db size 7086080B; We recommend to increase the entry cache size nsslapd-cachememsize.
[16/Dec/2015:19:00:09 +0100] - Total entry cache size: 23068672B; dbcache size: 10000000B; available memory size: 1856712704B
[16/Dec/2015:19:00:09 +0100] ldbm_usn_init - backend: changelog (global mode)
[16/Dec/2015:19:00:09 +0100] ldbm_usn_init - backend: userRoot (global mode)
[16/Dec/2015:19:00:09 +0100] ldbm_usn_init - backend: ipaca (global mode)
[16/Dec/2015:19:00:09 +0100] schema-compat-plugin - warning: no entries set up under cn=computers, cn=compat,dc=bap,dc=lan
[16/Dec/2015:19:00:09 +0100] schema-compat-plugin - warning: no entries set up under cn=ng, cn=compat,dc=bap,dc=lan
[16/Dec/2015:19:00:09 +0100] schema-compat-plugin - warning: no entries set up under ou=sudoers,dc=bap,dc=lan
[16/Dec/2015:19:00:09 +0100] NSACLPlugin - The ACL target cn=groups,cn=compat,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:09 +0100] NSACLPlugin - The ACL target cn=computers,cn=compat,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:09 +0100] NSACLPlugin - The ACL target cn=ng,cn=compat,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:09 +0100] NSACLPlugin - The ACL target ou=sudoers,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:09 +0100] NSACLPlugin - The ACL target cn=users,cn=compat,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:09 +0100] NSACLPlugin - The ACL target cn=vaults,cn=kra,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:09 +0100] NSACLPlugin - The ACL target cn=vaults,cn=kra,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:09 +0100] NSACLPlugin - The ACL target cn=vaults,cn=kra,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:09 +0100] NSACLPlugin - The ACL target cn=vaults,cn=kra,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:09 +0100] NSACLPlugin - The ACL target cn=vaults,cn=kra,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:09 +0100] NSACLPlugin - The ACL target cn=vaults,cn=kra,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:09 +0100] NSACLPlugin - The ACL target cn=vaults,cn=kra,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:09 +0100] NSACLPlugin - The ACL target cn=vaults,cn=kra,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:09 +0100] NSACLPlugin - The ACL target cn=vaults,cn=kra,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:09 +0100] NSACLPlugin - The ACL target cn=vaults,cn=kra,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:09 +0100] NSACLPlugin - The ACL target cn=vaults,cn=kra,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:09 +0100] NSACLPlugin - The ACL target cn=ad,cn=etc,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:09 +0100] NSACLPlugin - The ACL target cn=casigningcert cert-pki-ca,cn=ca_renewal,cn=ipa,cn=etc,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:09 +0100] NSACLPlugin - The ACL target cn=casigningcert cert-pki-ca,cn=ca_renewal,cn=ipa,cn=etc,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:09 +0100] - Skipping CoS Definition cn=Password Policy,cn=accounts,dc=bap,dc=lan--no CoS Templates found, which should be added before the CoS Definition.
[16/Dec/2015:19:00:09 +0100] ldbm_back_add - conn=0 op=0 modify_term: old_entry=0x0, new_entry=0x0
ldiffile: /var/lib/dirsrv/slapd-BAP-LAN/ldif/BAP-LAN-ipaca.ldif
[16/Dec/2015:19:00:09 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7f2a9f09c040, new_entry=0x7f2a700033c0, rc=0
[16/Dec/2015:19:00:09 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7f2a9f09c040, new_entry=0x7f2a700033c0, rc=0
[16/Dec/2015:19:00:09 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7f2a9f09c040, new_entry=0x7f2a700033c0, in_cache=1
[16/Dec/2015:19:00:09 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7f2a700033c0, new_entry=0x7f2a7000bce0, rc=0
[16/Dec/2015:19:00:09 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7f2a700033c0, new_entry=0x7f2a7000bce0, rc=0
[16/Dec/2015:19:00:09 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7f2a700033c0, new_entry=0x7f2a7000bce0, in_cache=1
[16/Dec/2015:19:00:09 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7f2a7000bce0, new_entry=0x7f2a7000ceb0, rc=0
[16/Dec/2015:19:00:09 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7f2a7000bce0, new_entry=0x7f2a7000ceb0, rc=0
[16/Dec/2015:19:00:09 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7f2a7000bce0, new_entry=0x7f2a7000ceb0, in_cache=1
[16/Dec/2015:19:00:09 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7f2a7000ceb0, new_entry=0x7f2a70000ab0, rc=0
[16/Dec/2015:19:00:09 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7f2a7000ceb0, new_entry=0x7f2a70000ab0, rc=0
[16/Dec/2015:19:00:09 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7f2a7000ceb0, new_entry=0x7f2a70000ab0, in_cache=1
[16/Dec/2015:19:00:09 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7f2a70000ab0, new_entry=0x7f2a7000c420, rc=0
[16/Dec/2015:19:00:09 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7f2a70000ab0, new_entry=0x7f2a7000c420, rc=0
[16/Dec/2015:19:00:09 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7f2a70000ab0, new_entry=0x7f2a7000c420, in_cache=1
[16/Dec/2015:19:00:09 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7f2a7000c420, new_entry=0x7f2a7000ed80, rc=0
[16/Dec/2015:19:00:09 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7f2a7000c420, new_entry=0x7f2a7000ed80, rc=0
[16/Dec/2015:19:00:09 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7f2a7000c420, new_entry=0x7f2a7000ed80, in_cache=1
[16/Dec/2015:19:00:09 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7f2a7000ed80, new_entry=0x7f2a70002060, rc=0
[16/Dec/2015:19:00:09 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7f2a7000ed80, new_entry=0x7f2a70002060, rc=0
[16/Dec/2015:19:00:09 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7f2a7000ed80, new_entry=0x7f2a70002060, in_cache=1
[16/Dec/2015:19:00:09 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7f2a70002060, new_entry=0x7f2a7000c4b0, rc=0
[16/Dec/2015:19:00:09 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7f2a70002060, new_entry=0x7f2a7000c4b0, rc=0
[16/Dec/2015:19:00:09 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7f2a70002060, new_entry=0x7f2a7000c4b0, in_cache=1
[16/Dec/2015:19:00:09 +0100] - export ipaca: Processed 131 entries (100%).
[16/Dec/2015:19:00:09 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7f2a7000c4b0, new_entry=0x7f2a70002670, rc=0
[16/Dec/2015:19:00:09 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7f2a7000c4b0, new_entry=0x7f2a70002670, rc=0
[16/Dec/2015:19:00:09 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7f2a7000c4b0, new_entry=0x7f2a70002670, in_cache=1
[16/Dec/2015:19:00:09 +0100] - Waiting for 4 database threads to stop
/usr/sbin/db2ldif: line 157: 19086 Segmentation fault /usr/sbin/ns-slapd db2ldif -D /etc/dirsrv/slapd-BAP-LAN -n ipaca -a "/var/lib/dirsrv/slapd-BAP-LAN/ldif/BAP-LAN-ipaca.ldif" -r

Backing up userRoot in BAP-LAN to LDIF
db2ldif failed: [16/Dec/2015:19:00:09 +0100] - /etc/dirsrv/slapd-BAP-LAN/dse.ldif: nsslapd-maxdescriptors: nsslapd-maxdescriptors: invalid value "8192", maximum file descriptors must range from 1 to 4096 (the current process limit). Server will use a setting of 4096.
[16/Dec/2015:19:00:09 +0100] - Config Warning: - nsslapd-maxdescriptors: invalid value "8192", maximum file descriptors must range from 1 to 4096 (the current process limit). Server will use a setting of 4096.
[16/Dec/2015:19:00:09 +0100] - userRoot: entry cache size: 10485760B; db size: 770048B
[16/Dec/2015:19:00:09 +0100] - ipaca: entry cache size: 10485760B; db size: 835584B
[16/Dec/2015:19:00:09 +0100] - WARNING: changelog: entry cache size 2097152B is less than db size 7086080B; We recommend to increase the entry cache size nsslapd-cachememsize.
[16/Dec/2015:19:00:09 +0100] - Total entry cache size: 23068672B; dbcache size: 10000000B; available memory size: 1856712704B
[16/Dec/2015:19:00:09 +0100] - Detected Disorderly Shutdown last time Directory Server was running, recovering database.
[16/Dec/2015:19:00:09 +0100] ldbm_usn_init - backend: changelog (global mode)
[16/Dec/2015:19:00:09 +0100] ldbm_usn_init - backend: userRoot (global mode)
[16/Dec/2015:19:00:09 +0100] ldbm_usn_init - backend: ipaca (global mode)
[16/Dec/2015:19:00:09 +0100] schema-compat-plugin - warning: no entries set up under cn=computers, cn=compat,dc=bap,dc=lan
[16/Dec/2015:19:00:09 +0100] schema-compat-plugin - warning: no entries set up under cn=ng, cn=compat,dc=bap,dc=lan
[16/Dec/2015:19:00:09 +0100] schema-compat-plugin - warning: no entries set up under ou=sudoers,dc=bap,dc=lan
[16/Dec/2015:19:00:09 +0100] NSACLPlugin - The ACL target cn=groups,cn=compat,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:09 +0100] NSACLPlugin - The ACL target cn=computers,cn=compat,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:09 +0100] NSACLPlugin - The ACL target cn=ng,cn=compat,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:10 +0100] NSACLPlugin - The ACL target ou=sudoers,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:10 +0100] NSACLPlugin - The ACL target cn=users,cn=compat,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:10 +0100] NSACLPlugin - The ACL target cn=vaults,cn=kra,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:10 +0100] NSACLPlugin - The ACL target cn=vaults,cn=kra,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:10 +0100] NSACLPlugin - The ACL target cn=vaults,cn=kra,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:10 +0100] NSACLPlugin - The ACL target cn=vaults,cn=kra,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:10 +0100] NSACLPlugin - The ACL target cn=vaults,cn=kra,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:10 +0100] NSACLPlugin - The ACL target cn=vaults,cn=kra,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:10 +0100] NSACLPlugin - The ACL target cn=vaults,cn=kra,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:10 +0100] NSACLPlugin - The ACL target cn=vaults,cn=kra,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:10 +0100] NSACLPlugin - The ACL target cn=vaults,cn=kra,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:10 +0100] NSACLPlugin - The ACL target cn=vaults,cn=kra,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:10 +0100] NSACLPlugin - The ACL target cn=vaults,cn=kra,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:10 +0100] NSACLPlugin - The ACL target cn=ad,cn=etc,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:10 +0100] NSACLPlugin - The ACL target cn=casigningcert cert-pki-ca,cn=ca_renewal,cn=ipa,cn=etc,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:10 +0100] NSACLPlugin - The ACL target cn=casigningcert cert-pki-ca,cn=ca_renewal,cn=ipa,cn=etc,dc=bap,dc=lan does not exist
[16/Dec/2015:19:00:10 +0100] - Skipping CoS Definition cn=Password Policy,cn=accounts,dc=bap,dc=lan--no CoS Templates found, which should be added before the CoS Definition.
[16/Dec/2015:19:00:10 +0100] ldbm_back_add - conn=0 op=0 modify_term: old_entry=0x0, new_entry=0x0
ldiffile: /var/lib/dirsrv/slapd-BAP-LAN/ldif/BAP-LAN-userRoot.ldif
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7fbc05583be0, new_entry=0x7fbbd80033d0, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7fbc05583be0, new_entry=0x7fbbd80033d0, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7fbc05583be0, new_entry=0x7fbbd80033d0, in_cache=1
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7fbbd80033d0, new_entry=0x7fbbd8002550, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7fbbd80033d0, new_entry=0x7fbbd8002550, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7fbbd80033d0, new_entry=0x7fbbd8002550, in_cache=1
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7fbbd8002550, new_entry=0x7fbbd8002b90, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7fbbd8002550, new_entry=0x7fbbd8002b90, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7fbbd8002550, new_entry=0x7fbbd8002b90, in_cache=1
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7fbbd8002b90, new_entry=0x7fbbd80012a0, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7fbbd8002b90, new_entry=0x7fbbd80012a0, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7fbbd8002b90, new_entry=0x7fbbd80012a0, in_cache=1
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7fbbd80012a0, new_entry=0x7fbbd800cdb0, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7fbbd80012a0, new_entry=0x7fbbd800cdb0, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7fbbd80012a0, new_entry=0x7fbbd800cdb0, in_cache=1
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7fbbd800cdb0, new_entry=0x7fbbd800e4e0, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7fbbd800cdb0, new_entry=0x7fbbd800e4e0, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7fbbd800cdb0, new_entry=0x7fbbd800e4e0, in_cache=1
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7fbbd800e4e0, new_entry=0x7fbbd8005e10, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7fbbd800e4e0, new_entry=0x7fbbd8005e10, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7fbbd800e4e0, new_entry=0x7fbbd8005e10, in_cache=1
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7fbbd8005e10, new_entry=0x7fbbd80008f0, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7fbbd8005e10, new_entry=0x7fbbd80008f0, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7fbbd8005e10, new_entry=0x7fbbd80008f0, in_cache=1
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7fbbd80008f0, new_entry=0x7fbbd8004430, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7fbbd80008f0, new_entry=0x7fbbd8004430, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7fbbd80008f0, new_entry=0x7fbbd8004430, in_cache=1
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7fbbd8004430, new_entry=0x7fbbd8004f60, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7fbbd8004430, new_entry=0x7fbbd8004f60, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7fbbd8004430, new_entry=0x7fbbd8004f60, in_cache=1
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7fbbd8004f60, new_entry=0x7fbbd800e600, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7fbbd8004f60, new_entry=0x7fbbd800e600, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7fbbd8004f60, new_entry=0x7fbbd800e600, in_cache=1
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7fbbd800e600, new_entry=0x7fbbd800ce80, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7fbbd800e600, new_entry=0x7fbbd800ce80, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7fbbd800e600, new_entry=0x7fbbd800ce80, in_cache=1
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7fbbd800ce80, new_entry=0x7fbbd80011b0, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7fbbd800ce80, new_entry=0x7fbbd80011b0, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7fbbd800ce80, new_entry=0x7fbbd80011b0, in_cache=1
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7fbbd80011b0, new_entry=0x7fbbd8005370, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7fbbd80011b0, new_entry=0x7fbbd8005370, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7fbbd80011b0, new_entry=0x7fbbd8005370, in_cache=1
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7fbbd8005370, new_entry=0x7fbbd800d7f0, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7fbbd8005370, new_entry=0x7fbbd800d7f0, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7fbbd8005370, new_entry=0x7fbbd800d7f0, in_cache=1
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7fbbd800d7f0, new_entry=0x7fbbd80011b0, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7fbbd800d7f0, new_entry=0x7fbbd80011b0, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7fbbd800d7f0, new_entry=0x7fbbd80011b0, in_cache=1
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7fbbd80011b0, new_entry=0x7fbbd80052d0, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7fbbd80011b0, new_entry=0x7fbbd80052d0, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7fbbd80011b0, new_entry=0x7fbbd80052d0, in_cache=1
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7fbbd80052d0, new_entry=0x7fbbd800d7f0, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7fbbd80052d0, new_entry=0x7fbbd800d7f0, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7fbbd80052d0, new_entry=0x7fbbd800d7f0, in_cache=1
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7fbbd800d7f0, new_entry=0x7fbbd8002cf0, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7fbbd800d7f0, new_entry=0x7fbbd8002cf0, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7fbbd800d7f0, new_entry=0x7fbbd8002cf0, in_cache=1
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7fbbd8002cf0, new_entry=0x7fbbd80052d0, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7fbbd8002cf0, new_entry=0x7fbbd80052d0, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7fbbd8002cf0, new_entry=0x7fbbd80052d0, in_cache=1
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7fbbd80052d0, new_entry=0x7fbbd8005080, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7fbbd80052d0, new_entry=0x7fbbd8005080, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7fbbd80052d0, new_entry=0x7fbbd8005080, in_cache=1
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7fbbd8005080, new_entry=0x7fbbd80053e0, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7fbbd8005080, new_entry=0x7fbbd80053e0, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7fbbd8005080, new_entry=0x7fbbd80053e0, in_cache=1
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7fbbd80053e0, new_entry=0x7fbbd80052d0, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7fbbd80053e0, new_entry=0x7fbbd80052d0, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7fbbd80053e0, new_entry=0x7fbbd80052d0, in_cache=1
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7fbbd80052d0, new_entry=0x7fbbd8005080, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7fbbd80052d0, new_entry=0x7fbbd8005080, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7fbbd80052d0, new_entry=0x7fbbd8005080, in_cache=1
[16/Dec/2015:19:00:10 +0100] - export userRoot: Processed 421 entries (100%).
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_update_all: old_entry=0x7fbbd8005080, new_entry=0x7fbbd800d010, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_switch_entries: old_entry=0x7fbbd8005080, new_entry=0x7fbbd800d010, rc=0
[16/Dec/2015:19:00:10 +0100] ldbm_back_delete - conn=0 op=0 modify_term: old_entry=0x7fbbd8005080, new_entry=0x7fbbd800d010, in_cache=1
[16/Dec/2015:19:00:10 +0100] - Waiting for 4 database threads to stop
/usr/sbin/db2ldif: line 157: 19141 Segmentation fault /usr/sbin/ns-slapd db2ldif -D /etc/dirsrv/slapd-BAP-LAN -n userRoot -a "/var/lib/dirsrv/slapd-BAP-LAN/ldif/BAP-LAN-userRoot.ldif" -r

Backing up BAP-LAN
Backing up files
Backed up to /var/lib/ipa/backup/ipa-full-2015-12-16-19-00-12
Starting IPA service
The ipa-backup command was successful
}}}

A very nice enhancement for plugin_startall!

Only a concern is the hardcoded plug-in list for db2ldif_dump_replica, but I guess you chose that way since it's hard to retrieve it at the startup moment... What would be the consequence if the list has the change in the future? For instance, DES was replaced by AES recently. I think this chance is really, really slim, but a customer could modify the plug-in dependency?

Replying to [comment:4 nhosoi]:

A very nice enhancement for plugin_startall!

Only a concern is the hardcoded plug-in list for db2ldif_dump_replica, but I guess you chose that way since it's hard to retrieve it at the startup moment... What would be the consequence if the list has the change in the future? For instance, DES was replaced by AES recently. I think this chance is really, really slim, but a customer could modify the plug-in dependency?

It would be slim, but technically possible. I will work on making the plugin list dynamic.

Added a recursive function to get all the plugin dependency's dependencies.

New patch attached...

d7c71db..c7c3d59 master -> master
commit c7c3d59
Author: Mark Reynolds mreynolds@redhat.com
Date: Fri Dec 18 16:38:33 2015 -0500

Do you think this fix could be included in Redhat 7.2 / Centos 7.2?

Replying to [comment:10 harri]:

Do you think this fix could be included in Redhat 7.2 / Centos 7.2?

Unfortunately, there is no plan to backport this fix to 389-ds-base on RHEL-7.2/CentOS 7.2 for now.

Do I have to wait for Redhat 7.3 or 7.4 or even 8.0?

Sorry for asking, but its hard to understand why this bug was set to fixed without any reliable version information.

Anyway, thanx for fixing this bug.

Replying to [comment:12 harri]:

Do I have to wait for Redhat 7.3 or 7.4 or even 8.0?

Sorry for asking, but its hard to understand why this bug was set to fixed without any reliable version information.

Anyway, thanx for fixing this bug.

Sorry about the confusion. This ticket is for the upstream releases, e.g., Fedora 24. The fix is already in 389-ds-base-1.3.4.5 and newer on Fedora 22 and above, which are already available for Fedoras.

The downstream versions on RHELs require more thorough testing. We need more time for that. This fix is going to be included in the next RHEL7 release.

Hope this is clear enough...
Thanks,
--noriko

Metadata Update from @nhosoi:
- Issue assigned to mreynolds
- Issue set to the milestone: 1.3.4.5

7 years ago

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/1719

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: Fixed)

3 years ago

Login to comment on this ticket.

Metadata