Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: slapd memory fault - core dump



On Sat, 28 Jun 2008 09:33:25 pm Andrew Doran wrote:
> On Wed, Jun 25, 2008 at 03:40:04PM +1000, Sarton O'Brien wrote:
> 
> > A fresh install of openldap from the latest pkgsrc on:
> > 
> > NetBSD spike.internal 4.99.66 NetBSD 4.99.66 (XEN3_DOMU) #0: Mon Jun 23 
> > 02:42:12 EST 2008  
> > root%spike.internal@localhost:/usr/obj/sys/arch/amd64/compile/XEN3_DOMU 
> > amd64
> > 
> > Throws the error 'Memory fault' and dumps core. I can successfully 
populate 
> > the database with 'smbldap-populate' but dumps randomly when being 
queried.
> 
> It's a bug in libc or libpthread I think. I'll try to reproduce it.

This seems to be a lot more stable under:

NetBSD spike.internal 4.99.69 NetBSD 4.99.69 (XEN3_DOMU) #0: Thu Jul  3 
18:03:02 EST 2008  
root%spike.internal@localhost:/usr/obj/sys/arch/amd64/compile/XEN3_DOMU amd64

Though it does seem to depend on the query. When being queried by samba it can 
fall over every .5 of a second but now I am able to traverse the database 
using php-ldapadmin which was near impossible before the latest update.

The trace doesn't appear to vary much except that now I'm not getting the gdb 
memory error:

Core was generated by `slapd'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f7ffce074f4 in pthread_curcpu_np () from /usr/lib/libpthread.so.0
(gdb) bt
#0  0x00007f7ffce074f4 in pthread_curcpu_np () from /usr/lib/libpthread.so.0
#1  0x00007f7ffcb9354d in posix_memalign () from /usr/lib/libc.so.12
#2  0x00007f7ffcb93bab in malloc () from /usr/lib/libc.so.12
#3  0x00007f7ffda08af7 in ber_memalloc_x () from /usr/pkg/lib/liblber-2.4.so.2
#4  0x00007f7ffd7f1b07 in __os_malloc () from /usr/pkg/lib/libdb4-4.6.so.6
#5  0x00007f7ffd7f1c6a in __os_calloc () from /usr/pkg/lib/libdb4-4.6.so.6
#6  0x00007f7ffd7a0009 in __db_cursor_int () from /usr/pkg/lib/libdb4-4.6.so.6
#7  0x00007f7ffd7a62c7 in __dbc_idup () from /usr/pkg/lib/libdb4-4.6.so.6
#8  0x00007f7ffd7a6bca in __dbc_get () from /usr/pkg/lib/libdb4-4.6.so.6
#9  0x00007f7ffd7af4af in __dbc_get_pp () from /usr/pkg/lib/libdb4-4.6.so.6
#10 0x00000000004b7e5d in ?? ()
#11 0x00000000004b9435 in ?? ()
#12 0x00000000004b3ef2 in ?? ()
#13 0x00000000004b4fd9 in ?? ()
#14 0x00000000004b3a65 in ?? ()
#15 0x00000000004b4fd9 in ?? ()
#16 0x00000000004b38d7 in ?? ()
#17 0x0000000000486a01 in ?? ()
#18 0x0000000000421206 in ?? ()
#19 0x0000000000421980 in ?? ()
#20 0x000000000041f2ef in ?? ()
#21 0x000000000041fa6a in ?? ()
#22 0x00007f7ffdc0f885 in ldap_int_thread_pool_wrapper ()
---Type <return> to continue, or q <return> to quit---
   from /usr/pkg/lib/libldap_r-2.4.so.2
#23 0x00007f7ffce0b612 in pthread_create () from /usr/lib/libpthread.so.0
#24 0x00007f7ffcb53aa0 in swapcontext () from /usr/lib/libc.so.12
#25 0x00007f7fe7c00000 in ?? ()
#26 0x0000000111110001 in ?? ()
#27 0x0000000033330003 in ?? ()
#28 0x0000000000000000 in ?? ()

Sarton


Home | Main Index | Thread Index | Old Index