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 1431207 - ns-slapd killed by SIGABRT
Summary: ns-slapd killed by SIGABRT
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: 389-ds-base
Version: 7.4
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: rc
: ---
Assignee: wibrown@redhat.com
QA Contact: Viktor Ashirov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-10 15:23 UTC by Viktor Ashirov
Modified: 2017-08-01 21:14 UTC (History)
4 users (show)

Fixed In Version: 389-ds-base-1.3.6.1-5.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-01 21:14:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
stacktrace.txt (4.42 KB, text/plain)
2017-03-10 15:23 UTC, Viktor Ashirov
no flags Details
coredump.bz2 (1.02 MB, application/x-bzip)
2017-03-10 15:27 UTC, Viktor Ashirov
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:2086 0 normal SHIPPED_LIVE 389-ds-base bug fix and enhancement update 2017-08-01 18:37:38 UTC

Description Viktor Ashirov 2017-03-10 15:23:51 UTC
Created attachment 1261952 [details]
stacktrace.txt

Description of problem:

ns-slapd crashes during full acceptance tests:

{   "signal": 6
,   "executable": "/usr/sbin/ns-slapd"
,   "stacktrace":
      [ {   "crash_thread": true
        ,   "frames":
              [ {   "address": 139733868061175
                ,   "build_id": "ad449ea6ef65b63d5b5ab55d67bd5750de19f0e4"
                ,   "build_id_offset": 217591
                ,   "function_name": "raise"
                ,   "file_name": "/usr/lib64/libc-2.17.so"
                }
              , {   "address": 139733868067048
                ,   "build_id": "ad449ea6ef65b63d5b5ab55d67bd5750de19f0e4"
                ,   "build_id_offset": 223464
                ,   "function_name": "abort"
                ,   "file_name": "/usr/lib64/libc-2.17.so"
                }
              , {   "address": 139733868322631
                ,   "build_id": "ad449ea6ef65b63d5b5ab55d67bd5750de19f0e4"
                ,   "build_id_offset": 479047
                ,   "function_name": "__libc_message"
                ,   "file_name": "/usr/lib64/libc-2.17.so"
                }
              , {   "address": 139733868353049
                ,   "build_id": "ad449ea6ef65b63d5b5ab55d67bd5750de19f0e4"
                ,   "build_id_offset": 509465
                ,   "function_name": "_int_free"
                ,   "file_name": "/usr/lib64/libc-2.17.so"
                }
              , {   "address": 139733910099041
                ,   "build_id": "e5d8782e2fcfaf259b364a8a58ca0480b64c79b6"
                ,   "build_id_offset": 349281
                ,   "function_name": "slapi_ch_free"
                ,   "file_name": "/usr/lib64/dirsrv/libslapd.so.0.1.0"
                }
              , {   "address": 139733910670130
                ,   "build_id": "e5d8782e2fcfaf259b364a8a58ca0480b64c79b6"
                ,   "build_id_offset": 920370
                ,   "function_name": "vattr_map_entry_free"
                ,   "file_name": "/usr/lib64/dirsrv/libslapd.so.0.1.0"
                }
              , {   "address": 139733910670173
                ,   "build_id": "e5d8782e2fcfaf259b364a8a58ca0480b64c79b6"
                ,   "build_id_offset": 920413
                ,   "function_name": "vattr_he_cleanup_fn"
                ,   "file_name": "/usr/lib64/dirsrv/libslapd.so.0.1.0"
                }
              , {   "address": 139733885201264
                ,   "build_id": "f64ea169c894416678f317e4024f07e5c5c152e7"
                ,   "build_id_offset": 7024
                ,   "function_name": "PL_HashTableEnumerateEntries"
                ,   "file_name": "/usr/lib64/libplds4.so"
                }
              , {   "address": 139733910668370
                ,   "build_id": "e5d8782e2fcfaf259b364a8a58ca0480b64c79b6"
                ,   "build_id_offset": 918610
                ,   "function_name": "vattr_cleanup"
                ,   "file_name": "/usr/lib64/dirsrv/libslapd.so.0.1.0"
                }
              , {   "address": 139733919729662
                ,   "build_id": "39b96c47cbdd971adc9af682b2dff62198f7e540"
                ,   "build_id_offset": 75774
                ,   "function_name": "main"
                ,   "file_name": "/usr/sbin/ns-slapd"
                } ]
        } ]
}

Full stacktrace is attached.


Version-Release number of selected component (if applicable):
389-ds-base-1.3.6.1-1.el7.x86_64

How reproducible:
always

Steps to Reproduce:
It's not clear which test triggers the crash, it happens at shutdown. 

Looks like it was introduced by https://pagure.io/389-ds-base/c/0e48cdf2cd6d1566a7734ce5569274a8dc2bf90d

Comment 2 Viktor Ashirov 2017-03-10 15:27:00 UTC
Created attachment 1261953 [details]
coredump.bz2

Comment 4 wibrown@redhat.com 2017-03-13 00:58:06 UTC
I think I need a test to help with this. It looks like something is putting a stack value into the vattr map, which triggers the abort on free. (can't free off the stack).

If we have a test to reproduce this, that would make this a lot easier to track down and resolve, but I can see how the memory leak fixes would resolve this.

The issue is we shouldn't just roll back this fix because we have a lot of leaks, and we need these fixes. It's just a pain that we found it so late :(

Comment 5 mreynolds 2017-03-27 18:37:45 UTC
Is this fixed? I don't see an upstream ticket?

Comment 6 Viktor Ashirov 2017-03-28 14:05:23 UTC
I can't reproduce it with the new build. Looks like coverity fixes helped.

Comment 8 Viktor Ashirov 2017-04-06 11:20:32 UTC
Build tested:
389-ds-base-1.3.6.1-6.el7.x86_64

No crashes were observed with this build, marking as VERIFIED.

Comment 9 errata-xmlrpc 2017-08-01 21:14:10 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://access.redhat.com/errata/RHBA-2017:2086


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