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 1254344 - Server crashes in ACL_LasFindFlush during shutdown if ACIs contain IP addresss restrictions
Summary: Server crashes in ACL_LasFindFlush during shutdown if ACIs contain IP address...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: 389-ds-base
Version: 7.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Noriko Hosoi
QA Contact: Viktor Ashirov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-17 19:11 UTC by Noriko Hosoi
Modified: 2020-09-13 21:29 UTC (History)
3 users (show)

Fixed In Version: 389-ds-base-1.3.4.0-12.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-19 11:44:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 1564 0 None None None 2020-09-13 21:29:09 UTC
Red Hat Product Errata RHBA-2015:2351 0 normal SHIPPED_LIVE 389-ds-base bug fix and enhancement update 2015-11-19 10:28:44 UTC

Description Noriko Hosoi 2015-08-17 19:11:02 UTC
389ds compiled from git for the current branch 1.3.3 (so it's somewhere between 1.3.3.12 and future 1.3.3.13) crashes when shutting down. The crash happens only if some modifications were made to the server since its start. No replication. Reproducible - each time.

OS - CentOS7 x86_64 with all the latest patches.

Jul 28 21:09:05 ldap-edev systemd: Stopping 389 Directory Server edev....
Jul 28 21:09:05 ldap-edev kernel: ns-slapd[10215]: segfault at 40 ip 00007ff7f8fbac14 sp 00007fff3b6ff130 error 4 in libns-dshttpd.so.0.0.0[7ff7f8f98000+45000]
Jul 28 21:09:05 ldap-edev systemd: dirsrv: main process exited, code=dumped, status=11/SEGV
Jul 28 21:09:05 ldap-edev systemd: Unit dirsrv entered failed state.

Typical error messages in system logs (one per server restart or stop):

Jul 28 14:22:43 ldap-edev kernel: ns-slapd[5570]: segfault at 40 ip 00007f5027956b13 sp 00007ffe8fec7fb0 error 4 in libns-dshttpd.so.0.0.0[7f5027938000+3d000]
Jul 28 19:39:32 ldap-edev kernel: ns-slapd[5932]: segfault at 40 ip 00007f6c9714fb13 sp 00007ffc73cf2c00 error 4 in libns-dshttpd.so.0.0.0[7f6c97131000+3d000]
Jul 28 19:50:10 ldap-edev kernel: ns-slapd[7100]: segfault at 40 ip 00007fdce6975b13 sp 00007ffc78505400 error 4 in libns-dshttpd.so.0.0.0[7fdce6957000+3d000]
Jul 28 19:52:18 ldap-edev kernel: ns-slapd[7231]: segfault at 40 ip 00007fb2dae4cb13 sp 00007ffc1948ec20 error 4 in libns-dshttpd.so.0.0.0 (deleted)[7fb2dae2e000+3d000]
Jul 28 20:42:01 ldap-edev kernel: ns-slapd[8283]: segfault at 40 ip 00007f68f372ec14 sp 00007ffc1daa46d0 error 4 in libns-dshttpd.so.0.0.0[7f68f370c000+45000]
Jul 28 20:45:56 ldap-edev kernel: ns-slapd[8805]: segfault at 40 ip 00007fad8371ec14 sp 00007fff6914abe0 error 4 in libns-dshttpd.so.0.0.0[7fad836fc000+45000]
Jul 28 20:49:05 ldap-edev kernel: ns-slapd[8921]: segfault at 40 ip 00007f841dd22c14 sp 00007ffc14097150 error 4 in libns-dshttpd.so.0.0.0[7f841dd00000+45000]
Jul 28 20:51:16 ldap-edev kernel: ns-slapd[9003]: segfault at 40 ip 00007f1036075c14 sp 00007ffe27cef430 error 4 in libns-dshttpd.so.0.0.0[7f1036053000+45000]

The debug build shows that it happens in the file  {{{ lib/libaccess/register.cpp:276 }}}, the corresponding line is:
 *flush_funcp = (LASFlushFunc_t)PR_HashTableLookup(ACLLasFlushHash, attr_name);

The gdb output is attached.

The previous server branch (in particular, 1.3.2.27) does not crash after importing the same ldif.

Comment 1 mreynolds 2015-08-17 19:23:09 UTC
Fix upstream.

Verification Script:

ds/dirsrvtests/ticket/ticket48233.py

Comment 3 Viktor Ashirov 2015-08-19 08:27:32 UTC
Build tested: 389-ds-base-1.3.4.0-12.el7.x86_64.rpm

============================================================================ test session starts =============================================================================
platform linux2 -- Python 2.7.5 -- py-1.4.30 -- pytest-2.7.2 -- /usr/bin/python
rootdir: /tmp/test/ds/dirsrvtests/tickets, inifile: 
collected 1 items 

../tmp/test/ds/dirsrvtests/tickets/ticket48233_test.py::test_ticket48233 PASSED

========================================================================= 1 passed in 40.60 seconds ==========================================================================

Marking as VERIFIED.

Comment 4 errata-xmlrpc 2015-11-19 11:44:05 UTC
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-2015-2351.html


Note You need to log in before you can comment on or make changes to this bug.