[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
ldapsearch segmentation fault (ITS#1483)
Full_Name: Ronan SALMON
Version: 2.0.18
OS: Redhat 7.1, kernel 2.4.14
URL:
Submission from: (NULL) (193.1.176.19)
Hi,
I have about 3200 users in the database. It looks like it is working fine for
all
of them except one! And I've deleted/recreated several times that user and it's
always
the same story.
here's the ldap entry :
dn: uid=graham, ou=People ,ou=students ,dc=ittralee ,dc=ie
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: inetLocalMailRecipient
objectClass: posixAccount
objectClass: top
objectClass: account
objectClass: CourierMailAccount
loginShell: /bin/bash
uidNumber: 547
gecos: Anne Graham
cn: Anne Graham
uid: graham
sn: Graham
maildrop: graham
mailLocalAddress: anne.graham@students.ittralee.ie
mailLocalAddress: graham@students.ittralee.ie
mailHost: x.ittralee.ie
mailRoutingAddress: graham@x.ittralee.ie
description: x
departmentNumber: PTTECH
homeDirectory: /home/graham
mail: anne.graham@students.ittralee.ie
gidNumber: 549
userPassword:: cXdlcnR5
All users are setup from the same script and therefore have the same
attributes.
if I run ldapsearch -x -b dc=ittralee,dc=ie uid=graham, it works, but if I run
ldapsearch -x -h lab-mail-2 -b dc=ittralee,dc=ie
"(&(objectClass=inetLocalMailRecipient)(mailLocalAddress=anne.graham@students.ittralee.ie))"
slapd crashes (see below), but it crashes only with that user and with that
filter. It tried 25 other emails
without crashing (lucky?)
Ronan.
...
conn=0 op=1 SRCH base="dc=ittralee,dc=ie" scope=2
filter="(&(objectClass=inetLocalMailRecipient)(mailLocalAddress=anne.graham@students.ittralee.ie))"
=> ldbm_back_search
dn2entry_r: dn: "DC=ITTRALEE,DC=IE"
=> dn2id( "DC=ITTRALEE,DC=IE" )
=> ldbm_cache_open( "/var/lib/ldap/dn2id.gdbm", 34, 600 )
ldbm_cache_open (blksize 4096) (maxids 1022) (maxindirect 9)
<= ldbm_cache_open (opened 0)
<= dn2id 1
=> id2entry_r( 1 )
=> ldbm_cache_open( "/var/lib/ldap/id2entry.gdbm", 34, 600 )
ldbm_cache_open (blksize 4096) (maxids 1022) (maxindirect 9)
<= ldbm_cache_open (opened 1)
=> str2entry
<= str2entry(dc=ittralee, dc=ie) -> -1 (0x80e14a0)
entry_rdwr_rlock: ID: 1
<= id2entry_r( 1 ) 0x80e14a0 (disk)
search_candidates: base="DC=ITTRALEE,DC=IE" s=2 d=0
=> filter_candidates
AND
=> list_candidates 0xa0
=> filter_candidates
DN SUBTREE
=> dn2idl( "@DC=ITTRALEE,DC=IE" )
=> ldbm_cache_open( "/var/lib/ldap/dn2id.gdbm", 34, 600 )
<= ldbm_cache_open (cache 0)
<= idl_fetch 3475 ids (3475 max)
<= filter_candidates 3475
=> filter_candidates
OR
=> list_candidates 0xa1
=> filter_candidates
EQUALITY
=> equality_candidates
=> ldbm_cache_open( "/var/lib/ldap/nextid.gdbm", 34, 600 )
ldbm_cache_open (blksize 4096) (maxids 1022) (maxindirect 9)
<= ldbm_cache_open (opened 2)
=> ldbm_cache_open( "/var/lib/ldap/objectClass.gdbm", 34, 600 )
ldbm_cache_open (blksize 4096) (maxids 1022) (maxindirect 9)
<= ldbm_cache_open (opened 3)
=> key_read
<= index_read 0 candidates
<= equality_candidates NULL
<= equality_candidates 0
<= filter_candidates 0
=> filter_candidates
AND
=> list_candidates 0xa0
=> filter_candidates
EQUALITY
=> equality_candidates
=> ldbm_cache_open( "/var/lib/ldap/objectClass.gdbm", 34, 600 )
<= ldbm_cache_open (cache 3)
=> key_read
<= idl_fetch 5915 ids (5915 max)
<= index_read 5915 candidates
<= equality_candidates 5915
<= filter_candidates 5915
=> filter_candidates
EQUALITY
=> equality_candidates
=> ldbm_cache_open( "/var/lib/ldap/mailLocalAddress.gdbm", 34, 600 )
ldbm_cache_open (blksize 4096) (maxids 1022) (maxindirect 9)
<= ldbm_cache_open (opened 4)
=> key_read
<= index_read 1 candidates
<= equality_candidates 1
<= filter_candidates 1
<= list_candidates 2
<= filter_candidates 2
<= list_candidates 2
<= filter_candidates 2
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 2051 (LWP 2160)]
0x402beba6 in chunk_free (ar_ptr=0x403704a0, p=0x8115ee0) at malloc.c:3242
3242 malloc.c: No such file or directory.
in malloc.c
(gdb)