From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Apr 9 00:30:07 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8024F1065674 for ; Thu, 9 Apr 2009 00:30:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5B6498FC19 for ; Thu, 9 Apr 2009 00:30:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n390U7AW022189 for ; Thu, 9 Apr 2009 00:30:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n390U741022188; Thu, 9 Apr 2009 00:30:07 GMT (envelope-from gnats) Resent-Date: Thu, 9 Apr 2009 00:30:07 GMT Resent-Message-Id: <200904090030.n390U741022188@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Benjamin Lee Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9538F1065670 for ; Thu, 9 Apr 2009 00:28:13 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 694908FC1C for ; Thu, 9 Apr 2009 00:28:13 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n390SD1A017875 for ; Thu, 9 Apr 2009 00:28:13 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n390SCx1017874; Thu, 9 Apr 2009 00:28:12 GMT (envelope-from nobody) Message-Id: <200904090028.n390SCx1017874@www.freebsd.org> Date: Thu, 9 Apr 2009 00:28:12 GMT From: Benjamin Lee To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/133501: pthread_atfork breaks nss_ldap on RELENG_7 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Apr 2009 00:30:07 -0000 >Number: 133501 >Category: ports >Synopsis: pthread_atfork breaks nss_ldap on RELENG_7 >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Apr 09 00:30:06 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Benjamin Lee >Release: 7.1-RELEASE-p4 >Organization: >Environment: FreeBSD *** 7.1-RELEASE-p4 FreeBSD 7.1-RELEASE-p4 #0: Sun Mar 22 12:35:36 UTC 2009 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 >Description: pthread_atfork breaks nss_ldap on machines running RELENG_7. I have verified this on several machines running 7.0-RELEASE and 7.1-RELEASE. I have been unable to reproduce the issue on older versions (e.g. 6.3-RELEASE, 6.2-RELEASE). Therefore I suspect that the defect is related to the change from libkse to libthr. When logging into an affected machine using SSH and challenge-response authentication, several nss_ldap calls fail and cause a variety of problems. One of these problems is that the call to initgroups(3) fails (the only group in `groups` output is the user's gid). The following messages are logged to /var/log/auth.log: Apr 8 17:22:51 *** sshd[14259]: Accepted keyboard-interactive/pam for blee from *** port 63880 ssh2 Apr 8 17:22:51 *** sshd[14262]: nss_ldap: could not get LDAP result - Can't contact LDAP server Apr 8 17:22:51 *** sshd[14262]: nss_ldap: could not get LDAP result - Can't contact LDAP server The problem does *NOT* occur when using public key authentication (i.e. SSH keys). >How-To-Repeat: Login to a machine running RELENG_7 and nss_ldap using SSH and challenge-response authentication. >Fix: Workaround: Update the configure.in patch to disable pthread_atfork support by applying attached the diff against files/patch-configure.in. Patch attached with submission follows: --- patch-configure.in.orig 2008-12-10 08:11:25.000000000 -0800 +++ patch-configure.in 2009-04-08 17:13:10.000000000 -0700 @@ -24,3 +24,11 @@ AC_CHECK_HEADERS(irs.h) ;; esac AC_CHECK_HEADERS(thread.h) +@@ -227,7 +230,6 @@ + AC_CHECK_FUNCS(gethostbyname) + AC_CHECK_FUNCS(nsdispatch) + AC_CHECK_LIB(pthread_nonshared, main) +-AC_CHECK_FUNCS(pthread_atfork) + AC_CHECK_FUNCS(pthread_once) + AC_CHECK_FUNCS(ether_aton) + AC_CHECK_FUNCS(ether_ntoa) >Release-Note: >Audit-Trail: >Unformatted: