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

RE: slapd seg. fault when repeated getpwnam (ITS#1329)



This is a multi-part message in MIME format.

------_=_NextPart_001_01C13BD4.192E56C2
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


I reran the slapd with the -d 0 and -d 256 but the backtrace looks
similar.   Note that I have attached an email trail I have with Kurt on
this issue for additional information.=20
 <<RE: openldap 2.0.11 - getpwnam>>=20
Backtrace
(gdb) backtrace
#0  0x402d0322 in __libc_send () from /lib/i686/libc.so.6
#1  0x401de5b4 in send (fd=3D3, buf=3D0x8103cf8, n=3D82, flags=3D0)
    at wrapsyscall.c:211
#2  0x402cc22c in vsyslog (pri=3D7,=20
    fmt=3D0x809ebc0 "conn=3D%ld op=3D%ld SEARCH RESULT tag=3D%lu =
err=3D%ld
text=3D%s\n",=20
    ap=3D0x41c31954) at syslog.c:240
#3  0x402cbee7 in syslog (pri=3D7,=20
    fmt=3D0x809ebc0 "conn=3D%ld op=3D%ld SEARCH RESULT tag=3D%lu =
err=3D%ld
text=3D%s\n")
    at syslog.c:102
#4  0x08059e58 in strcpy () at ../sysdeps/generic/strcpy.c:31
#5  0x080734d2 in strcpy () at ../sysdeps/generic/strcpy.c:31
#6  0x08050de3 in strcpy () at ../sysdeps/generic/strcpy.c:31
#7  0x0804fab4 in strcpy () at ../sysdeps/generic/strcpy.c:31
#8  0x080845bd in strcpy () at ../sysdeps/generic/strcpy.c:31
#9  0x401d9bfd in pthread_start_thread (arg=3D0x41c31c00) at =
manager.c:262
(gdb)


Gerry Morong
Electronic Design Automation
ISSG
gerry.morong@compaq.com

 -----Original Message-----
From: 	Pierangelo Masarati [mailto:openldap-its@OpenLDAP.org]=20
Sent:	Wednesday, September 12, 2001 3:57 PM
To:	Morong, Gerry
Subject:	Re: slapd seg. fault when repeated getpwnam (ITS#1329)

This backtrace looks like the parent thread's, that terminates right
after
creating the listener. You need to start slurpd with '-d 0' or above to
keep it alive.

> Back Trace
> (gdb) where
> #0  0x402c990e in __select () from /lib/i686/libc.so.6
> #1  0x00000001 in __strtol_internal (nptr=3D0x0, endptr=3D0x40bbaca4,
base=3D0,=20
>     group=3D1075682130) at eval.c:36
> #2  0x401d9bfd in pthread_start_thread (arg=3D0x40bbac00) at
manager.c:262
> (gdb)

Pierangelo.


------_=_NextPart_001_01C13BD4.192E56C2
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit

Received:   from ztxmail01.ztx.compaq.com (ztxmail01.nz-cce.cpqcorp.net [161.114.8.205]) by exctay-gh03.tay.cpqcorp.net with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2652.78) id SXYAW9V1; Wed, 12 Sep 2001 14:45:25 -0400
Received:   by ztxmail01.ztx.compaq.com (Postfix, from userid 12345) id E3187C986; Wed, 12 Sep 2001 13:45:17 -0500 (CDT)
Received:   from galois.openldap.org (galois.openldap.org [204.152.186.51]) by ztxmail01.ztx.compaq.com (Postfix) with ESMTP id 81014CAAE; Wed, 12 Sep 2001 13:45:17 -0500 (CDT)
Received:   from localhost (majordomo@localhost) by galois.openldap.org (8.10.0.Beta10/8.10.0.Beta10/OpenLDAP/Hub) with SMTP id f8CIinW80675; Wed, 12 Sep 2001 18:44:49 GMT
Received:   by OpenLDAP.org (bulk_mailer v1.12); Wed, 12 Sep 2001 18:41:28 +0000
Received:   from zcamail03.zca.compaq.com (zcamail03.zca.compaq.com [161.114.32.103]) by galois.openldap.org (8.10.0.Beta10/8.10.0.Beta10/OpenLDAP/Hub) with ESMTP id f8CIfLc80507; Wed, 12 Sep 2001 18:41:21 GMT
Received:   by zcamail03.zca.compaq.com (Postfix, from userid 12345) id 711BA1CA5; Wed, 12 Sep 2001 11:40:41 -0700 (PDT)
Received:   from cceexg11.americas.cpqcorp.net (cceexg11.americas.cpqcorp.net [16.110.250.125]) by zcamail03.zca.compaq.com (Postfix) with ESMTP id 98AF81DDE; Wed, 12 Sep 2001 11:40:40 -0700 (PDT)
Received:   from cceexc15.americas.cpqcorp.net ([16.110.250.65]) by cceexg11.americas.cpqcorp.net with Microsoft SMTPSVC(5.0.2195.2966); Wed, 12 Sep 2001 13:39:39 -0500
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
content-class: urn:content-classes:message
Content-Transfer-Encoding: quoted-printable
X-MimeOLE: Produced By Microsoft Exchange V6.0.4418.65
Subject: RE: openldap 2.0.11 - getpwnam
Date: Wed, 12 Sep 2001 13:39:38 -0500
Message-ID: <778E9D0F077BD246A4B1CD040473B898236B28@cceexc15.americas.cpqcorp.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: openldap 2.0.11 - getpwnam
Thread-Index: AcE7uxcglBXP+aesEdW0MQAIx7qemw==
List-Help: <mailto:openldap-software-request@OpenLDAP.org?body=help>
List-Unsubscribe: <mailto:openldap-software-request@OpenLDAP.org?body=unsubscribe>
From: "Morong, Gerry" <Gerry.Morong@Compaq.com>
To: "Kurt D. Zeilenga" <Kurt@OpenLDAP.org>
Cc: "Pierangelo Masarati" <masarati@aero.polimi.it>,
	<openldap-software@OpenLDAP.org>

I rebuilt them with slapindex and it still fails but with a more verbose
back-trace.

INDEX SETTING FROM SLAPD.CONF
index uid,cn,gidNumber,uidNumber,memberUid eq
index objectClass pres,eq

DEBUG
=3D> equality_candidates
=3D> ldbm_cache_open( "objectClass.dbb", 7, 600 )
<=3D ldbm_cache_open (cache 3)
=3D> key_read
<=3D idl_fetch 2071 ids (2071 max)
<=3D index_read 2071 candidates
<=3D equality_candidates 2071
<=3D filter_candidates 2071
=3D> filter_candidates
        EQUALITY
=3D> equality_candidates
=3D> ldbm_cache_open( "uid.dbb", 7, 600 )
<=3D ldbm_cache_open (cache 4)
=3D> key_read
<=3D index_read 1 candidates
<=3D equality_candidates 1
<=3D filter_candidates 1
<=3D list_candidates 2
<=3D filter_candidates 2
<=3D list_candidates 2
<=3D filter_candidates 2
<=3D list_candidates 1
<=3D filter_candidates 1
entry_rdwr_runlock: ID: 1
=3D=3D=3D=3D> cache_return_entry_r( 1 ): returned (0)
=3D> id2entry_r( 1034 )
=3D> ldbm_cache_open( "id2entry.dbb", 7, 600 )
<=3D ldbm_cache_open (cache 1)
=3D> str2entry
Segmentation fault


BACK TRACE
(gdb) where
#0  0x402d0322 in __libc_send () from /lib/i686/libc.so.6
#1  0x401de5b4 in send (fd=3D3, buf=3D0x41d3c2a0, n=3D84, flags=3D0)
    at wrapsyscall.c:211
#2  0x402cc22c in vsyslog (pri=3D7,=20
    fmt=3D0x809ebc0 "conn=3D%ld op=3D%ld SEARCH RESULT tag=3D%lu =
err=3D%ld
text=3D%s\n",=20
    ap=3D0x465ff954) at syslog.c:240
#3  0x402cbee7 in syslog (pri=3D7,=20
    fmt=3D0x809ebc0 "conn=3D%ld op=3D%ld SEARCH RESULT tag=3D%lu =
err=3D%ld
text=3D%s\n")
    at syslog.c:102
#4  0x08059e58 in strcpy () at ../sysdeps/generic/strcpy.c:31
#5  0x080734d2 in strcpy () at ../sysdeps/generic/strcpy.c:31
#6  0x08050de3 in strcpy () at ../sysdeps/generic/strcpy.c:31
#7  0x0804fab4 in strcpy () at ../sysdeps/generic/strcpy.c:31
#8  0x080845bd in strcpy () at ../sysdeps/generic/strcpy.c:31
#9  0x401d9bfd in pthread_start_thread (arg=3D0x465ffc00) at =
manager.c:262
(gdb)

Gerry Morong
Electronic Design Automation
ISSG
gerry.morong@compaq.com

 -----Original Message-----
From: 	Kurt D. Zeilenga [mailto:Kurt@OpenLDAP.org]=20
Sent:	Wednesday, September 12, 2001 11:20 AM
To:	Morong, Gerry
Cc:	Morong, Gerry; Pierangelo Masarati;
openldap-software@OpenLDAP.org
Subject:	RE: openldap 2.0.11 - getpwnam

At 08:44 AM 2001-09-12, Morong, Gerry wrote:
>Installed OpenLDAP 2.0.14 in place of 2.0.11 and have the same problem
>with segmentation faults when doing repetitive getpwnam from two
>clients.

Did you rebuild indices?

Kurt

------_=_NextPart_001_01C13BD4.192E56C2--