Red Hat Bugzilla – Bug 788764
389 programs linked against openldap crash during shutdown
Last modified: 2012-06-20 03:14:40 EDT
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. }}}
Please add steps to verify without IPA, if possible
Just verify no regressions and no crashes
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.
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.
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