From owner-freebsd-i386@FreeBSD.ORG Fri May 2 14:30:02 2008 Return-Path: Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF4201065677 for ; Fri, 2 May 2008 14:30:02 +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 922CD8FC19 for ; Fri, 2 May 2008 14:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m42EU26w078232 for ; Fri, 2 May 2008 14:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m42EU2f0078229; Fri, 2 May 2008 14:30:02 GMT (envelope-from gnats) Resent-Date: Fri, 2 May 2008 14:30:02 GMT Resent-Message-Id: <200805021430.m42EU2f0078229@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Shelby Cain Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0A645106566B for ; Fri, 2 May 2008 14:23:05 +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 F39778FC0C for ; Fri, 2 May 2008 14:23:04 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m42EMKmo055060 for ; Fri, 2 May 2008 14:22:20 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m42EMK6k055059; Fri, 2 May 2008 14:22:20 GMT (envelope-from nobody) Message-Id: <200805021422.m42EMK6k055059@www.freebsd.org> Date: Fri, 2 May 2008 14:22:20 GMT From: Shelby Cain To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: i386/123330: Enabling samba wins in nsswitch.conf causes sshd, ftpd, etc services to die X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 May 2008 14:30:02 -0000 >Number: 123330 >Category: i386 >Synopsis: Enabling samba wins in nsswitch.conf causes sshd, ftpd, etc services to die >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri May 02 14:30:02 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Shelby Cain >Release: 7.0-REL >Organization: >Environment: FreeBSD freebsdlol.localdomain 7.0-RELEASE FreeBSD 7.0-RELEASE #1: Mon Apr 14 17:59:26 CDT 2008 root@freebsdlol.localdomain:/usr/obj/usr/src/sys/MYKERN i386 >Description: Background: I have a mixed home network of Windows, Linux and (now) FreeBSD. In order to facilitate easy communication between the systems I install Samaba and enable wins resolution in nsswitch.conf on all non-windows boxes so that netbios name resolution can occur. Problem: Once I've added "hosts: files dns wins" to my nsswitch.conf on FreeBSD any system service that appears to rely on name resolution will segfault when it attempts to handle incoming connections. I realize that netbios name resolution functionality probably isn't a super high priority but causing a denial of service by enabling something that should work without issue strikes me as a serious bug so I marked it as such. I also tried getting a backtrace from one of the ftpd.core files and gdb listed thousands of stack frames which I assume means some form of stack corruption has occurred. >How-To-Repeat: 1) Install FreeBSD 7.0-i386. 2) Enable various network services such as sshd and ftpd. 3) Establish ssh session to the server. 4) Build and install Samba3 from ports. 5) Change hosts line in /etc/nsswitch.conf to read "hosts: files dns wins" 6) Verify that you can resolve windows netbios names via a tool like ping. Do not close your existing ssh session at this point as you'll be unable to log back in! 7) Attempt to create a new ssh or ftp session. The attempt will fail and a message about the (I assume forked) process being terminated with signal 11 will be logged in /var/log/messages. This will continue for as long as "wins" is left in /etc/nsswitch.conf. 8) Removing the "wins" entry will restore normal behavior. >Fix: >Release-Note: >Audit-Trail: >Unformatted: