[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#5687) corrupted double-linked list on shutdown



--On Friday, September 05, 2008 8:52 PM +0000 h.b.furuseth@usit.uio.no 
wrote:

>> [quanah@freelancer tests]$ *** glibc detected ***
>> /home/quanah/q/openldap-2.4.12/servers/slapd/.libs/lt-slapd: corrupted
>> double-linked list: 0x000000000d28a430 ***
>
> This message comes from glibc malloc.  Its data structures are
> corrupted.
>
> I couldn't figure out much from the the valgrind output.
> But you'll get more frequent mallocs with CPPFLAGS=-DSLAP_NO_SL_MALLOC,
> if that code isn't rotted - maybe that'll bring out the problem in
> another guise.  If that code still works, I don't remember.

More notes:

I get a core file every time I kill test039, even at stages outside the 
search.  I only get the glibc error some of the time.  Even testing with 
the latest and greatest valgrind, I don't see anything in its output file. 
I've managed to reproduce this behavior on both CentOS5 (64-bit) and RHEL4 
(64-bit), which are running different kernels (and I assume glibc versions).

backtrace on a non-glibc fault core:

Core was generated by 
`/home/quanah/q/openldap-2.4.12/servers/slapd/.libs/lt-slapd -s0 -f 
/home/quanah'.
Program terminated with signal 11, Segmentation fault.
#0  0x00000038dc06ca17 in malloc_consolidate () from /lib64/libc.so.6
(gdb) bt
#0  0x00000038dc06ca17 in malloc_consolidate () from /lib64/libc.so.6
#1  0x00000038dc06e607 in _int_free () from /lib64/libc.so.6
#2  0x00000038dc071fac in free () from /lib64/libc.so.6
#3  0x00002ae61bf34732 in ber_memfree_x (p=0x7302670, ctx=0x0) at 
memory.c:152
#4  0x000000000049d882 in slap_sl_mem_destroy (key=0x49da46, 
data=0x7302630) at sl_malloc.c:41
#5  0x00002ae61bce35c2 in ldap_pvt_thread_pool_context_reset 
(vctx=0x46da1dd0) at tpool.c:943
#6  0x00002ae61bce2a8a in ldap_int_thread_pool_wrapper (xpool=0x688e610) at 
tpool.c:677
#7  0x00000038dcc061b5 in start_thread () from /lib64/libpthread.so.0
#8  0x00000038dc0cd36d in clone () from /lib64/libc.so.6
#9  0x0000000000000000 in ?? ()


--

Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra ::  the leader in open source messaging and collaboration