From owner-freebsd-stable@FreeBSD.ORG Wed Apr 16 14:12:46 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 776DE106566B for ; Wed, 16 Apr 2008 14:12:46 +0000 (UTC) (envelope-from modelnine@modelnine.org) Received: from jord.modelnine.org (jord.modelnine.org [83.246.72.120]) by mx1.freebsd.org (Postfix) with ESMTP id 3EFBF8FC25 for ; Wed, 16 Apr 2008 14:12:46 +0000 (UTC) (envelope-from modelnine@modelnine.org) Received: from [192.168.1.37] (a89-182-216-5.net-htp.de [89.182.216.5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: modelnine) by jord.modelnine.org (Postfix) with ESMTPSA id 700D2A40CDA for ; Wed, 16 Apr 2008 16:12:44 +0200 (CEST) From: Heiko Wundram To: freebsd-stable@freebsd.org Date: Wed, 16 Apr 2008 16:14:34 +0200 User-Agent: KMail/1.9.7 References: <2D61488F-F9BD-4B2C-B0D1-70267540A1BE@nevada.net.nz> In-Reply-To: <2D61488F-F9BD-4B2C-B0D1-70267540A1BE@nevada.net.nz> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804161614.34721.modelnine@modelnine.org> Subject: Re: File descriptor passing broken in FreeBSD 7? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Apr 2008 14:12:46 -0000 Am Mittwoch, 16. April 2008 14:09:18 schrieb Philip Murray: > I recently tried to use the newly released mod_rails > (www.modrails.com) for Apache, and discovered it doesn't work on > FreeBSD 7. It does however work on FreeBSD 6 just fine. > > I tracked it down to sendmsg() as detailed here: > > http://code.google.com/p/phusion-passenger/issues/detail?id=16 > > The mod_rails/passenger unit tests fail on FD passing, as do the Ruby > 1.8.6 standard unit tests. They all fail with EBADF > > I've also tried this test case (with minor appropriate changes to file > paths etc.) > > http://www.gnome.org/~markmc/code/test-descriptor-passing.c > > Again it works in FreeBSD 6, but not in FreeBSD 7 (albeit with > ECONNREFUSED not EBADF). > > > Any ideas? Works fine on 7.0-STABLE from end of last week (i.e., doesn't core-dump, and outputs the contents of test-descriptor-passing.c, to which I adapted the filename). uname -a: FreeBSD phoenix.modelnine.org 7.0-STABLE FreeBSD 7.0-STABLE #2: Fri Apr 11 13:46:16 CEST 2008 root@phoenix.modelnine.org:/usr/obj/usr/src/sys/HEIKO i386 I ran the program as an unprivileged user. -- Heiko Wundram