From nobody@FreeBSD.org  Mon Apr  5 11:16:28 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C23D216A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  5 Apr 2004 11:16:28 -0700 (PDT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id BB89943D2F
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  5 Apr 2004 11:16:28 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i35IGS72014109
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 5 Apr 2004 11:16:28 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.10/8.12.10/Submit) id i35IGSdL014108;
	Mon, 5 Apr 2004 11:16:28 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200404051816.i35IGSdL014108@www.freebsd.org>
Date: Mon, 5 Apr 2004 11:16:28 -0700 (PDT)
From: Fred Leitz <fred@eggheads.ca>
To: freebsd-gnats-submit@FreeBSD.org
Subject: nss_ldap causes segfault on exit
X-Send-Pr-Version: www-2.3

>Number:         65220
>Category:       bin
>Synopsis:       nss_ldap causes segfault on exit
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    nectar
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 05 11:20:11 PDT 2004
>Closed-Date:    Tue Aug 03 00:11:27 GMT 2004
>Last-Modified:  Tue Aug 03 00:11:27 GMT 2004
>Originator:     Fred Leitz
>Release:        5.2.1
>Organization:
None
>Environment:
FreeBSD trogdor.shaw.ca 5.2.1-RELEASE-p1 FreeBSD 5.2.1-RELEASE-p1 #6: Tue Mar  9 17:08:41 PST 2004     root@trogdor.shaw.ca:/usr/obj/usr/src/sys/TROGDOR  i386
>Description:
      When nss_ldap is enabled ps aux and top and any program that looks up usernames from uids will segfault on exit.
>How-To-Repeat:
      Install nss_ldap, enable it in /etc/nsswitch.conf run ps aux. An ldap server is not necessary.
>Fix:
      There are patches in 5-CURRENT to try and fix the problem, nsdispatch.c and a few other files. Don't know if a backport is possible. The patch says that when linked with threaded libs libc tries to release resources it doesnt have.
>Release-Note:
>Audit-Trail:

From: Fredrick Leitz <fredrick.leitz@sjrb.ca>
To: "'freebsd-gnats-submit@FreeBSD.org'" <freebsd-gnats-submit@FreeBSD.org>
Cc:  
Subject: Re: bin/65220: nss_ldap causes segfault on exit
Date: Mon, 05 Apr 2004 14:12:47 -0600

 Can be fixed by adding the following to /etc/libmap.conf
 libc_r.so.5             libpthread.so.1
 libc_r.so               libpthread.so

From: Alex Meier <alex@ksz.ch>
To: freebsd-gnats-submit@FreeBSD.org, fred@eggheads.ca
Cc:  
Subject: Re: bin/65220: nss_ldap causes segfault on exit
Date: Mon, 03 May 2004 16:15:00 +0200

 If I try to fix it this way, my OpenLDAP Server doesn't start anymore. 
 I've installed OpenLDAP from the openldap21-server port.
Responsible-Changed-From-To: freebsd-bugs->nectar 
Responsible-Changed-By: eik 
Responsible-Changed-When: Wed Jul 28 19:55:58 CEST 2004 
Responsible-Changed-Why:  
Over to nss_ldap maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=65220 
State-Changed-From-To: open->closed 
State-Changed-By: nectar 
State-Changed-When: Tue Aug 3 00:10:52 GMT 2004 
State-Changed-Why:  
Issue corrected. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=65220 
>Unformatted:
Hmm, I replied via email on July 29, but it didn't seem to make it into
this report.  Here is the text:

 On Jul 29, 2004, at 6:52 AM, Jacques Vidrine wrote:
 >This was fixed in April with revision 1.12 of nsdispatch.c.  A patch
 >relative to FreeBSD 5.2.1 is available at:
 >
 > http://cvsweb.freebsd.org/src/lib/libc/net/nsdispatch.c.diff?r1=1.8&r2=1.12 .
 >
 >Cheers,
 >-- 
 >Jacques A Vidrine / NTT/Verio
 >nectar@celabo.org / jvidrine@verio.net / nectar@freebsd.org
