Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1049522

Summary: Crash after replica is installed
Product: Red Hat Enterprise Linux 7 Reporter: Namita Soman <nsoman>
Component: 389-ds-baseAssignee: Rich Megginson <rmeggins>
Status: CLOSED CURRENTRELEASE QA Contact: Sankar Ramalingam <sramling>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: mgregg, nhosoi, nkinder
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 389-ds-base-1.3.1.6-14.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 10:44:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
abrt dir none

Description Namita Soman 2014-01-07 16:59:29 UTC
Description of problem:
The crash happens when running automated tests where replica is installed. The crash is on the replica - after the client is installed. 


Version-Release number of selected component (if applicable):
ipa-server  - x86_64 3.3.3-8.el7
389-ds-base - x86_64 1.3.1.6-12.el7  

How reproducible:
always

Steps to Reproduce:
1. Install IPA Master, Replica, Client


Actual results:
no crash

Expected results:
Crash detected.
Can't open build_ids: [Errno 2] No such file or directory: 'build_ids'
Locked './.lock'
Unlocked './.lock'
Generating backtrace
Executing: gdb -batch -ex set debug-file-directory /usr/lib/debug:/var/cache/abrt-di/usr/lib/debug -ex file /usr/sbin/ns-slapd -ex core-file ./coredump -ex thread apply all backtrace 1024 full -ex info sharedlib -ex print (char*)__abort_msg -ex print (char*)__glib_assert_msg -ex info registers -ex disassemble
Locked './.lock'
Unlocked './.lock'
Backtrace is generated and saved, 21131 bytes

Additional info:

Comment 2 Namita Soman 2014-01-07 17:21:55 UTC
the Actual and Expected Results above should be interchanged - of course :) Sorry!

Comment 3 Namita Soman 2014-01-07 18:19:26 UTC
Created attachment 846806 [details]
abrt dir

Comment 4 Noriko Hosoi 2014-01-07 19:48:20 UTC
389-ds-base-1.3.1.6-12 was built on 12/10/2013.

This fix was added after that.  We need to respin 1.3.1.6-13 with this fix...

    commit 5d4ac7c8c5d48be0796cdbf2ae7b9c40460de18c
    Author: Mark Reynolds <mreynolds>
    Date:   Thu Dec 12 15:36:11 2013 -0500

        Ticket 47620 - Fix cherry-pick error for 1.3.2 and 1.3.1
       
        Description:  During the cherry-pick process I had to make some manual changes,
                      and there were two schedule_destroy() calls made which lead to
                      a dereferenced point.
       
        https://fedorahosted.org/389/ticket/47620
       
        Reviewed by: rmeggins(Thanks!)
        (cherry picked from commit 3ae6900d8269926a1da097e3818aa444137aa9d9)


(gdb) p *s
$6 = {session_id = 0x7ff5af430a10 "", max_backlog = 0, startup_delay = 0, schedule_list = 0x0, prio_attrs = 0x0,
  prio_attrs_override_schedule = 0, last_session_end = 0, last_session_status = 0, last_successful_session_end = 0,
  callback_fn = 0x7ff5a27a52b0 <update_window_state_change_callback>, callback_arg = 0x7ff5af727ee0, pending_event = 0x0, lock = 0x0}
(gdb) p s->lock
$7 = (PRLock *) 0x0
(gdb) bt
#0  0x00007ff5abed6bd1 in pthread_mutex_destroy () from /lib64/libpthread.so.0
#1  0x00007ff5ac52d8f9 in PR_DestroyLock () from /lib64/libnspr4.so
#2  0x00007ff5a27c414a in schedule_destroy (s=0x7ff5af426d40) at ldap/servers/plugins/replication/repl5_schedule.c:178
#3  0x00007ff5a27a5873 in agmt_delete (rap=0x7ff5af774510) at ldap/servers/plugins/replication/repl5_agmt.c:633
#4  0x00007ff5adf34496 in object_release (o=0x7ff5af774500) at ldap/servers/slapd/object.c:113
#5  0x00007ff5adf34794 in objset_remove_obj (set=0x7ff5af7803b0, object=object@entry=0x7ff5af774500) at ldap/servers/slapd/objset.c:271
#6  0x00007ff5a27a9c59 in agmtlist_shutdown () at ldap/servers/plugins/replication/repl5_agmtlist.c:711
#7  0x00007ff5a27b0f0f in multimaster_stop (pb=<optimized out>) at ldap/servers/plugins/replication/repl5_init.c:745
#8  0x00007ff5adf3fe45 in plugin_call_func (list=0x7ff5af2c69b0, operation=210, pb=0x7ffff8993af0, call_one=1)
    at ldap/servers/slapd/plugin.c:1453
#9  0x00007ff5adf400a3 in plugin_call_one (pb=<optimized out>, operation=<optimized out>, list=<optimized out>)
    at ldap/servers/slapd/plugin.c:1421
#10 plugin_dependency_closeall () at ldap/servers/slapd/plugin.c:1365
#11 0x00007ff5adf400e7 in plugin_closeall (close_backends=close_backends@entry=1, close_globals=close_globals@entry=1)
    at ldap/servers/slapd/plugin.c:1408
#12 0x00007ff5ae403567 in slapd_daemon (ports=ports@entry=0x7ffff8994080) at ldap/servers/slapd/daemon.c:1336
#13 0x00007ff5ae3f66b5 in main (argc=7, argv=0x7ffff8994698) at ldap/servers/slapd/main.c:1273

Comment 5 Noriko Hosoi 2014-01-07 22:51:33 UTC
*** Bug 1047982 has been marked as a duplicate of this bug. ***

Comment 7 Michael Gregg 2014-01-08 23:10:31 UTC
Verified against 389-ds-base-1.3.1.6-14.el7.x86_64

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: Bug 987705 -  RHEL7 389-ds-base slapd segfault during ipa-replica-install BZ1047982
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   PASS   ] :: File '/var/log/ipareplica-install.log' should not contain 'Could not connect to the Directory Server' 
:: [   PASS   ] :: File '/var/log/messages' should not contain 'ns-slapd.*segfault' 
:: [   PASS   ] :: BZ 987705 or BZ 1047982 not found

Comment 8 Michael Gregg 2014-01-15 19:19:48 UTC
*** Bug 1053310 has been marked as a duplicate of this bug. ***

Comment 9 Ludek Smid 2014-06-13 10:44:57 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.