Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 788764 - 389 programs linked against openldap crash during shutdown
389 programs linked against openldap crash during shutdown
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: 389-ds-base (Show other bugs)
6.3
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Rich Megginson
IDM QE LIST
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-08 18:36 EST by Rich Megginson
Modified: 2012-06-20 03:14 EDT (History)
2 users (show)

See Also:
Fixed In Version: 389-ds-base-1.2.10.0-1.el6
Doc Type: Bug Fix
Doc Text:
Cause: Shutting down the directory server. Consequence: Directory server crashes during shutdown. Fix: Applications that use threads must link against -lldap_r and not against -lldap. Result: Server does not crash at shutdown time.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-06-20 03:14:40 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2012:0813 normal SHIPPED_LIVE Low: 389-ds-base security, bug fix, and enhancement update 2012-06-19 15:29:15 EDT

  None (edit)
Description Rich Megginson 2012-02-08 18:36:32 EST
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/389/ticket/252

https://bugzilla.redhat.com/show_bug.cgi?id=755725

{{{
Description of problem:
When restarting the dirsrv process, it receives a segfault

Version-Release number of selected component (if applicable):
389-ds-base-1.2.10-0.5.a5.fc15.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Install FreeIPA
2. Restart DIRSRV
3. check dmesg for segfaults

Actual results:
restart generates segfault

Expected results:
Restart without crashing

Additional info:


(gdb) thread apply all bt all

Thread 1 (Thread 0x7f4a76a387e0 (LWP 918)):
No symbol "all" in current context.
(gdb) thread apply all bt full

Thread 1 (Thread 0x7f4a76a387e0 (LWP 918)):
#0  __GI___libc_free (mem=0x185) at malloc.c:3709
        ar_ptr = <optimized out>
        p = <optimized out>
        hook = 0
#1  0x000000352be0e510 in ldap_int_destroy_global_options () at
../../../libraries/libldap/init.c:496
        gopts = 0x352c049360
#2  0x000000352660e896 in _dl_fini () at dl-fini.c:244
        array = 0x352c0475c8
        i = <optimized out>
        nmaps = 94
        nloaded = <optimized out>
        i = <optimized out>
        l = 0x7f4a76a459b0
        ns = 0
        maps = 0x7fff3ccac680
        maps_size = 752
        do_audit = 0
#3  0x0000003526a38991 in __run_exit_handlers (status=0, listp=0x3526d935a8,
run_list_atexit=true) at exit.c:78
        atfct = <optimized out>
        onfct = <optimized out>
        cxafct = <optimized out>
        f = <optimized out>
#4  0x0000003526a38a15 in __GI_exit (status=<optimized out>) at exit.c:100
No locals.
#5  0x0000003526a213a4 in __libc_start_main (main=0x40c8d0 <main>, argc=7,
ubp_av=0x7fff3ccacb08, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7fff3ccacaf8) at libc-start.c:258
        result = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, -6666163846686787399,
4255964, 140734213311232, 0, 0, 6666311345183307961, -6694800918663219015},
mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x7fff3ccacb48, 0x1}, data =
{prev = 0x0, cleanup = 0x0,
              canceltype = 1019923272}}}
        not_first_call = <optimized out>
#6  0x000000000040f105 in _start ()
No symbol table info available.
}}}
Comment 1 Jenny Galipeau 2012-02-10 12:29:11 EST
Please add steps to verify without IPA, if possible
Comment 3 Rich Megginson 2012-04-16 16:29:40 EDT
Just verify no regressions and no crashes
Comment 4 Amita Sharma 2012-05-03 09:19:45 EDT
No Crash found with ::
[root@snmaptest ~]# rpm -qa | grep 389
389-adminutil-devel-1.1.14-1.el6.x86_64
389-admin-console-1.1.8-1.el6.noarch
389-admin-1.1.25-1.el6.x86_64
389-admin-console-doc-1.1.8-1.el6.noarch
389-ds-base-1.2.11-0.2.rc1.el6.x86_64
389-ds-console-doc-1.2.6-1.el6.noarch
389-console-1.1.7-1.el6.noarch
389-ds-base-devel-1.2.11-0.2.rc1.el6.x86_64
389-ds-console-1.2.6-1.el6.noarch
389-ds-base-libs-1.2.11-0.2.rc1.el6.x86_64
389-adminutil-1.1.14-1.el6.x86_64


Hence VERIFIED.
Comment 5 Rich Megginson 2012-05-24 19:40:50 EDT
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause: Shutting down the directory server.
Consequence: Directory server crashes during shutdown.
Fix: Applications that use threads must link against -lldap_r and not against -lldap.
Result: Server does not crash at shutdown time.
Comment 6 errata-xmlrpc 2012-06-20 03:14:40 EDT
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.

http://rhn.redhat.com/errata/RHSA-2012-0813.html

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