Bug 1158005
Summary: | OpenLDAP crash in NSS shutdown handling | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Hisanobu Okuda <hokuda> | ||||||
Component: | openldap | Assignee: | Matus Honek <mhonek> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Patrik Kis <pkis> | ||||||
Severity: | unspecified | Docs Contact: | Milan Navratil <mnavrati> | ||||||
Priority: | unspecified | ||||||||
Version: | 7.0 | CC: | ebenes, hokuda, jorton, jsynacek, mhonek, pkis | ||||||
Target Milestone: | rc | Keywords: | Patch | ||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: |
The httpd service sometimes terminated unexpectedly with a segmentation fault on the libldap library unload. The underlying source code has been modified to prevent a bad memory access error that caused the bug to occur. As a result, httpd no longer crashes in this situation.
|
Story Points: | --- | ||||||
Clone Of: | |||||||||
: | 1373222 (view as bug list) | Environment: | |||||||
Last Closed: | 2015-11-19 08:52:35 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: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 1205796, 1373222 | ||||||||
Attachments: |
|
Description
Hisanobu Okuda
2014-10-28 09:15:08 UTC
Found the nssShutdownList.funcs[1].func points a wrong address. (gdb) up #1 0x00007f09ffac2774 in nss_ShutdownShutdownList () at nssinit.c:1049 1049 nssinit.c: No such file or directory. (gdb) print nssShutdownList.peakFuncs $1 = 2 (gdb) print nssShutdownList.funcs[0] $2 = { func = 0x7f0a000189a0 <ssl_ShutdownLocks>, <<=== this is OK. appData = 0x0 } (gdb) print nssShutdownList.funcs[1] $3 = { func = 0x7f09fc9736f0, <<============= WRONG! appData = 0x0 } (gdb) But I have no idea to find the root cause why the wrong pointer is stored. Please supply steps to reproduce, package versions, etc, per the standard bugzilla template. Created attachment 951337 [details]
installed-rpms
Created attachment 1013854 [details]
patch v1
The commit below modifies the patch for this bug, so that correct __atribute__ ((destructor)) ordering is used. Incorrect destructor ordering was discovered as a regression reported in bug #1231228. http://pkgs.devel.redhat.com/cgit/rpms/openldap/commit/?h=rhel-7.2&id=a0cc331d5f354b4aef0669977e164dce3b117463 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/RHSA-2015-2131.html |