From owner-freebsd-stable@FreeBSD.ORG Wed Apr 16 12:28:36 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 208121065674 for ; Wed, 16 Apr 2008 12:28:36 +0000 (UTC) (envelope-from pmurray@nevada.net.nz) Received: from bellagio.open2view.net (bellagio.open2view.net [210.48.79.75]) by mx1.freebsd.org (Postfix) with ESMTP id E29A28FC28 for ; Wed, 16 Apr 2008 12:28:35 +0000 (UTC) (envelope-from pmurray@nevada.net.nz) Received: from [10.1.1.9] (125-239-151-158.jetstream.xtra.co.nz [125.239.151.158]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by bellagio.open2view.net (Postfix) with ESMTP id 6CDAA6C65D0 for ; Thu, 17 Apr 2008 00:09:23 +1200 (NZST) Message-Id: <2D61488F-F9BD-4B2C-B0D1-70267540A1BE@nevada.net.nz> From: Philip Murray To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Thu, 17 Apr 2008 00:09:18 +1200 X-Mailer: Apple Mail (2.919.2) Subject: 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 12:28:36 -0000 Hi, 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? Cheers Phil