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

Re: slapd crashes during search query (ITS#1570)



On Wednesday, 30. January 2002 18:42, you wrote:
> At 08:50 AM 2002-01-30, Thomas.Koch@atlantec-es.com wrote:
> >Full_Name: Thomas Koch
> >Version: 2.0.21, 2.0.22-eng
> >OS: Linux 2.4.10
> >URL: ftp://ftp.openldap.org/incoming/
> >Submission from: (NULL) (212.105.210.38)
>
> Which version of libc are you using?
library version is 2.2.4-21
-rwxr-xr-x    1 root     root      1384040 Dez 18 17:24 /lib/libc.so.6

> Which compiler/flags was libc built with?
no information, just using the distribution version (SuSE 7.3). 
I assume it is gcc 2.95.3. 
Is there a way to find out from the library itself?

> Which compiler/flags was openldap built with?
gcc version 2.95.3 
Compiler flags: -g

>
> Can you run with malloc debugging enabled?  On most
> Linux systems, MALLOC_CHECK_=2 will do the trick.
> See malloc(3) for details.

This is what we got from running with MALLOC_CHECK_=2 ...

Thomas

----- core trace ---------
#0  0x400af861 in kill () from /lib/libc.so.6
#1  0x40074acc in pthread_kill () from /lib/libpthread.so.0
#2  0x40074fd6 in raise () from /lib/libpthread.so.0
#3  0x400b0c81 in abort () from /lib/libc.so.6
#4  0x400f79d1 in free_check () from /lib/libc.so.6
#5  0x400f592f in free () from /lib/libc.so.6
#6  0x080b629d in ber_memfree (p=0x9698b90) at memory.c:156
#7  0x08065772 in ch_free (ptr=0x9698b90) at ch_malloc.c:103
#8  0x0808ea2e in idl_free (idl=0x9698b90) at idl.c:112
#9  0x0808d4b0 in substring_candidates (be=0x81f4f78, sub=0x96860e8) at filterindex.c:600
#10 0x0808bc05 in filter_candidates (be=0x81f4f78, f=0x96860b8) at filterindex.c:84
#11 0x0808ce40 in list_candidates (be=0x81f4f78, flist=0x9676f58, ftype=160) at filterindex.c:464
#12 0x0808bd5a in filter_candidates (be=0x81f4f78, f=0x9684b80) at filterindex.c:99
#13 0x0808ce40 in list_candidates (be=0x81f4f78, flist=0x9676c28, ftype=160) at filterindex.c:464
#14 0x0808bd5a in filter_candidates (be=0x81f4f78, f=0x947c4d8) at filterindex.c:99
#15 0x0808ce40 in list_candidates (be=0x81f4f78, flist=0xbf3ff970, ftype=161) at filterindex.c:464
#16 0x0808bdca in filter_candidates (be=0x81f4f78, f=0xbf3ff964) at filterindex.c:104
#17 0x0808ce40 in list_candidates (be=0x81f4f78, flist=0xbf3ff988, ftype=160) at filterindex.c:464
#18 0x0808bd5a in filter_candidates (be=0x81f4f78, f=0xbf3ff994) at filterindex.c:99
#19 0x08083628 in search_candidates (be=0x81f4f78, e=0x820b730, filter=0x947c4d8, scope=2, deref=3, manageDSAit=1) at search.c:429
#20 0x08082c62 in ldbm_back_search (be=0x81f4f78, conn=0x40b3e138, op=0x942d458, base=0x947fff8 "cn=S2369,dc=wie.so",
    nbase=0x947d678 "CN=S2369,DC="WIE.SO", scope=2, deref=3, slimit=0, tlimit=0, filter=0x947c4d8,
    filterstr=0x9686318 "(&(objectClass=tgisObject)(&(!(tgisType=oabe.Node))(tgisParent=*?oabe.Node?S_R472?*)))",
    attrs=0x9686588, attrsonly=0) at search.c:142
#21 0x08054547 in do_search (conn=0x40b3e138, op=0x942d458) at search.c:278
#22 0x08052af3 in connection_operation (arg_v=0x9676e10) at connection.c:831
#23 0x0809ae34 in ldap_int_thread_pool_wrapper (pool=0x81d5df0) at tpool.c:379
#24 0x40071f37 in pthread_start_thread () from /lib/libpthread.so.0

------ -d 1 log   -----

=> ldbm_back_search
dn2entry_r: dn: "CN=S2369,DC=wie.so"
=> dn2id( "CN=S2369,DC=wie.so" )
====> cache_find_entry_dn2id("CN=S2369,DC=WIE.SO"): 2 (1 tries)
<= dn2id 2 (in cache)
=> id2entry_r( 2 )
====> cache_find_entry_id( 2 ) "cn=S2369,dc=wie.so" (found) (1 tries)
<= id2entry_r( 2 ) 0x820b730 (cache)
search_candidates: base="CN=S2369,DC=WIE.SO" s=2 d=3
=> filter_candidates
=> list_candidates 0xa0
=> filter_candidates
=> dn2idl( "@CN=S2369,DC=WIE.SO" )
=> ldbm_cache_open( "dn2id.dbb", 73, 600 )
<= ldbm_cache_open (cache 0)
<= idl_fetch 7389 ids (7389 max)
<= filter_candidates 7389
=> filter_candidates
=> list_candidates 0xa1
=> filter_candidates
=> equality_candidates
=> ldbm_cache_open( "objectClass.dbb", 73, 600 )
<= ldbm_cache_open (cache 3)
=> key_read
<= index_read 0 candidates
<= equality_candidates NULL
<= equality_candidates 0
<= filter_candidates 0
=> filter_candidates
=> list_candidates 0xa0
=> filter_candidates
=> equality_candidates
=> ldbm_cache_open( "objectClass.dbb", 73, 600 )
<= ldbm_cache_open (cache 3)
=> key_read
<= idl_fetch 6943 ids (6943 max)
<= index_read 6943 candidates
<= equality_candidates 6943
<= filter_candidates 6943
=> filter_candidates
=> list_candidates 0xa0
=> filter_candidates
<= filter_candidates 7394
=> filter_candidates
=> substrings_candidates
=> ldbm_cache_open( "tgisParent.dbb", 73, 600 )
<= ldbm_cache_open (cache 7)
=> key_read
<= index_read 7394 candidates
=> key_read
<= index_read 7394 candidates
=> key_read
<= index_read 7394 candidates
=> key_read
<= index_read 7394 candidates
=> key_read
<= index_read 7394 candidates
=> key_read
<= index_read 7394 candidates
=> key_read
<= index_read 7394 candidates
=> key_read
<= index_read 7394 candidates
=> key_read
<= index_read 7394 candidates
=> key_read
<= index_read 7394 candidates
=> key_read
<= index_read 7394 candidates
=> key_read
<= index_read 7394 candidates
=> key_read
<= idl_fetch 6873 ids (6873 max)
<= index_read 6873 candidates
=> key_read
<= idl_fetch 6873 ids (6873 max)
<= index_read 6873 candidates
=> key_read
<= idl_fetch 6873 ids (6873 max)
<= index_read 6873 candidates
=> key_read
<= idl_fetch 6873 ids (6873 max)
<= index_read 6873 candidates
=> key_read
<= idl_fetch 6873 ids (6873 max)
<= index_read 6873 candidates
=> key_read
<= index_read 7394 candidates
=> key_read
<= index_read 7394 candidates
=> key_read
<= idl_fetch 2246 ids (2246 max)
<= index_read 2246 candidates
=> key_read
<= idl_fetch 3732 ids (3732 max)
<= index_read 3732 candidates
******** end of log **********