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

RE: SLAPD Crashing due to search (ITS#1840)



Kervin,
	tried the rebuild with your suggestion below, but the stack
trace looks no different. I haven't tried 2.1beta - I'm avoiding
handcrafting something myself - I was hoping to stick with standard
RedHat RPMS.... I was actually considering going back to 1.2.13... any
thoughts?

Regards
Garry


> -----Original Message-----
> From: Kervin L. Pierre [mailto:kervin@blueprint-tech.com] 
> Sent: Thursday, 6 June 2002 1:19 AM
> To: Garry Thomas
> Cc: openldap-its@OpenLDAP.org
> Subject: Re: SLAPD Crashing due to search (ITS#1840)
> 
> 
> 
> Have you tried 2.1beta?  Your problem might have already been fixed.
> 
> unfortunately, openldap is not built with the '-g' compiler flag by 
> default so the backtrace isn't as illuminating as it could be.
> 
> A workaround is to try to use the rpm optimization flag environment 
> variable.  I haven't tried this yet, but from looking at the 
> spec file 
> it should work.
> 
> export RPM_OPT_FLAGS="-g"
> rpm --rebuild ...
> unset RPM_OPT_FLAGS
> 
> let me know if this works.
> 
> --Kervin
> 
> 
> Garry Thomas wrote:
> > Hi Again,
> > 	In advance....thanks Kervin for you help thus 
> far...once again, I 
> > learn...
> > 
> > 	I've managed to recompile 2.0.23 without stripped 
> symbols, using the 
> > rpm --rebuild option...
> > 
> > [root@opt tmp]#file /usr/sbin/slapd
> > /usr/sbin/slapd: ELF 32-bit LSB executable, Intel 80386, version 1 
> > (SYSV), dynamically linked (uses shared libs), not stripped
> > 
> > and I hope my attempts at driving GDB have produced some sort of 
> > useful stack trace. You can see from below that I was not 
> sure which 
> > commands to use, so I tried a few....
> > 
> > BTW...if you run slapd as the user ldap (as per Redhat Default), it 
> > doesn't create a core file, even if the ldap user has the 
> appropriate 
> > rights to the current/working directory....anyhow, it does 
> when run as 
> > root.
> > 
> > Regards
> > Garry
> > 
> > [root@opt tmp]# gdb /usr/sbin/slapd core.16729
> > GNU gdb Red Hat Linux (5.1.90CVS-5)
> > Copyright 2002 Free Software Foundation, Inc.
> > GDB is free software, covered by the GNU General Public 
> License, and you
> > are
> > welcome to change it and/or distribute copies of it under certain
> > conditions.
> > Type "show copying" to see the conditions.
> > There is absolutely no warranty for GDB.  Type "show warranty" for
> > details.
> > This GDB was configured as "i386-redhat-linux"...
> > Core was generated by `/usr/sbin/slapd'.
> > Program terminated with signal 11, Segmentation fault.
> > Reading symbols from /usr/lib/libsasl.so.7...done.
> > Loaded symbols for /usr/lib/libsasl.so.7
> > Reading symbols from /usr/lib/libgdbm.so.2...done.
> > Loaded symbols for /usr/lib/libgdbm.so.2
> > Reading symbols from /lib/libpam.so.0...done.
> > Loaded symbols for /lib/libpam.so.0
> > Reading symbols from /usr/kerberos/lib/libkrb5.so.3...done.
> > Loaded symbols for /usr/kerberos/lib/libkrb5.so.3
> > Reading symbols from /usr/kerberos/lib/libk5crypto.so.3...done.
> > Loaded symbols for /usr/kerberos/lib/libk5crypto.so.3
> > Reading symbols from /usr/kerberos/lib/libcom_err.so.3...done.
> > Loaded symbols for /usr/kerberos/lib/libcom_err.so.3
> > Reading symbols from /lib/libssl.so.2...done.
> > Loaded symbols for /lib/libssl.so.2
> > Reading symbols from /lib/libcrypto.so.2...done.
> > Loaded symbols for /lib/libcrypto.so.2
> > Reading symbols from /lib/libcrypt.so.1...done.
> > Loaded symbols for /lib/libcrypt.so.1
> > Reading symbols from /lib/libnsl.so.1...done.
> > Loaded symbols for /lib/libnsl.so.1
> > Reading symbols from /lib/libresolv.so.2...done.
> > Loaded symbols for /lib/libresolv.so.2
> > Reading symbols from /lib/libdl.so.2...done.
> > Loaded symbols for /lib/libdl.so.2
> > Reading symbols from /lib/i686/libpthread.so.0...done.
> > Loaded symbols for /lib/i686/libpthread.so.0
> > Reading symbols from /lib/i686/libc.so.6...done.
> > Loaded symbols for /lib/i686/libc.so.6
> > Reading symbols from /lib/ld-linux.so.2...done.
> > Loaded symbols for /lib/ld-linux.so.2
> > Reading symbols from /lib/libnss_files.so.2...done.
> > Loaded symbols for /lib/libnss_files.so.2
> > Reading symbols from /usr/lib/sasl/libanonymous.so...done.
> > Loaded symbols for /usr/lib/sasl/libanonymous.so
> > Reading symbols from /usr/lib/sasl/libcrammd5.so...done.
> > Loaded symbols for /usr/lib/sasl/libcrammd5.so
> > Reading symbols from /usr/lib/sasl/libdigestmd5.so...done.
> > Loaded symbols for /usr/lib/sasl/libdigestmd5.so
> > Reading symbols from /usr/lib/sasl/liblogin.so...done.
> > Loaded symbols for /usr/lib/sasl/liblogin.so
> > Reading symbols from /usr/lib/sasl/libplain.so...done.
> > Loaded symbols for /usr/lib/sasl/libplain.so
> > Reading symbols from /usr/lib/sasl/libgssapiv2.so...done.
> > Loaded symbols for /usr/lib/sasl/libgssapiv2.so
> > Reading symbols from /usr/kerberos/lib/libgssapi_krb5.so.2...done.
> > Loaded symbols for /usr/kerberos/lib/libgssapi_krb5.so.2
> > Reading symbols from /usr/lib/libdb.so.3...done.
> > Loaded symbols for /usr/lib/libdb.so.3
> > #0  0x4207ae76 in chunk_free () from /lib/i686/libc.so.6
> > (gdb) backtrace
> > #0  0x4207ae76 in chunk_free () from /lib/i686/libc.so.6
> > #1  0x4207ac24 in free () from /lib/i686/libc.so.6
> > #2  0x080abbbd in ber_memfree ()
> > #3  0x080638ab in ch_free ()
> > #4  0x0808844b in idl_free ()
> > #5  0x08086cec in list_candidates ()
> > #6  0x08085e2b in filter_candidates ()
> > #7  0x0807da7f in search_candidates ()
> > #8  0x0807d200 in ldbm_back_search ()
> > #9  0x08054b0c in do_search ()
> > #10 0x08053488 in connection_operation ()
> > #11 0x08093774 in ldap_int_thread_pool_wrapper ()
> > #12 0x40200fef in pthread_start_thread () from 
> /lib/i686/libpthread.so.0
> > (gdb) list
> > 1       init.c: No such file or directory.
> >         in init.c
> > (gdb) bt
> > #0  0x4207ae76 in chunk_free () from /lib/i686/libc.so.6
> > #1  0x4207ac24 in free () from /lib/i686/libc.so.6
> > #2  0x080abbbd in ber_memfree ()
> > #3  0x080638ab in ch_free ()
> > #4  0x0808844b in idl_free ()
> > #5  0x08086cec in list_candidates ()
> > #6  0x08085e2b in filter_candidates ()
> > #7  0x0807da7f in search_candidates ()
> > #8  0x0807d200 in ldbm_back_search ()
> > #9  0x08054b0c in do_search ()
> > #10 0x08053488 in connection_operation ()
> > #11 0x08093774 in ldap_int_thread_pool_wrapper ()
> > #12 0x40200fef in pthread_start_thread () from 
> /lib/i686/libpthread.so.0
> > (gdb) list
> > 1       in init.c
> > (gdb) backtrace full
> > #0  0x4207ae76 in chunk_free () from /lib/i686/libc.so.6
> > No symbol table info available.
> > #1  0x4207ac24 in free () from /lib/i686/libc.so.6
> > No symbol table info available.
> > #2  0x080abbbd in ber_memfree ()
> > No symbol table info available.
> > #3  0x080638ab in ch_free ()
> > No symbol table info available.
> > #4  0x0808844b in idl_free ()
> > No symbol table info available.
> > #5  0x08086cec in list_candidates ()
> > No symbol table info available.
> > #6  0x08085e2b in filter_candidates ()
> > No symbol table info available.
> > #7  0x0807da7f in search_candidates ()
> > No symbol table info available.
> > #8  0x0807d200 in ldbm_back_search ()
> > No symbol table info available.
> > #9  0x08054b0c in do_search ()
> > No symbol table info available.
> > #10 0x08053488 in connection_operation ()
> > No symbol table info available.
> > #11 0x08093774 in ldap_int_thread_pool_wrapper ()
> > No symbol table info available.
> > #12 0x40200fef in pthread_start_thread () from 
> /lib/i686/libpthread.so.0
> > No symbol table info available.
> > (gdb) list
> > 1       in init.c
> > (gdb) bt full
> > #0  0x4207ae76 in chunk_free () from /lib/i686/libc.so.6
> > No symbol table info available.
> > #1  0x4207ac24 in free () from /lib/i686/libc.so.6
> > No symbol table info available.
> > #2  0x080abbbd in ber_memfree ()
> > No symbol table info available.
> > #3  0x080638ab in ch_free ()
> > No symbol table info available.
> > #4  0x0808844b in idl_free ()
> > No symbol table info available.
> > #5  0x08086cec in list_candidates ()
> > No symbol table info available.
> > #6  0x08085e2b in filter_candidates ()
> > No symbol table info available.
> > #7  0x0807da7f in search_candidates ()
> > No symbol table info available.
> > #8  0x0807d200 in ldbm_back_search ()
> > No symbol table info available.
> > #9  0x08054b0c in do_search ()
> > No symbol table info available.
> > #10 0x08053488 in connection_operation ()
> > No symbol table info available.
> > #11 0x08093774 in ldap_int_thread_pool_wrapper ()
> > No symbol table info available.
> > #12 0x40200fef in pthread_start_thread () from 
> /lib/i686/libpthread.so.0
> > No symbol table info available.
> > (gdb) list
> > 1       in init.c
> > 
> > 
> > 
> > 
> 
> 
>