From owner-freebsd-hackers Sat Feb 15 4: 0:18 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3674037B401 for ; Sat, 15 Feb 2003 04:00:16 -0800 (PST) Received: from smtp.hispeed.ch (isp247n.hispeed.ch [62.2.95.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF3FA43FCB for ; Sat, 15 Feb 2003 04:00:14 -0800 (PST) (envelope-from locus@hispeed.ch) Received: from rock.stable.ch (dclient217-162-34-199.hispeed.ch [217.162.34.199]) by smtp.hispeed.ch (8.12.6/8.12.6/tornado-1.0) with ESMTP id h1FC0ChT014036 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Sat, 15 Feb 2003 13:00:13 +0100 Received: from locus by rock.stable.ch with local (Exim 3.33 #1) id 18k0zH-000Biz-00 for freebsd-hackers@freebsd.org; Sat, 15 Feb 2003 13:00:07 +0100 Date: Sat, 15 Feb 2003 13:00:07 +0100 From: Thomas Spreng To: freebsd-hackers@freebsd.org Subject: linux binary and pwrite() problem... Message-ID: <20030215120007.GA44691@rock.stable.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I have two fbsd systems, both running 4.7 and linux_base-7.1_2. I am trying to run a gameserver linux binary (sof2 v1.02) on one of these machines but it just hangs if i start it. The strange thing is that exactly the same binary works on the other fbsd box with the same linux_base port. The only thing that differs is the build date of the two boxes, which is '4.7-RELEASE-p4 #0: Sun Feb 9 00:34:14 CET 2003' for the one that doesn't work and '4.7-RELEASE-p2 #13: Sat Dec 7 12:58:57 CET 2002' for the working machine. I have traced the processes on both machines with 'ktrace' and everying looks fine until the following strange thing: On the 'not-working' machine: # kdump ...... 94449 sof2ded RET ftruncate 1001/0x3e9 94449 sof2ded CALL lseek 94449 sof2ded RET lseek 1001/0x3e9 94449 sof2ded CALL #208(0xffffffff,0x3e9,0xffffffff) 94449 sof2ded RET #208 0 94449 sof2ded CALL pwrite(0x4,0xbfbfe618,0xbfbfe588,0x8) 94449 sof2ded RET pwrite 0 94449 sof2ded PSIG SIGILL caught handler=0x8126678 mask=0x0 code=0x0 94449 sof2ded PSIG SIGINT SIG_DFL While on the working box i got the following: # kdump ...... 3874 sof2ded RET ftruncate 1001/0x3e9 3874 sof2ded CALL lseek 3874 sof2ded RET lseek 1001/0x3e9 3874 sof2ded CALL #208(0xffffffff,0x3e9,0xffffffff) 3874 sof2ded RET #208 0 3874 sof2ded CALL write(0x2,0xbfbfd75c,0x24) 3874 sof2ded GIO fd 2 wrote 36 bytes "SOF2MP V1.02 linux-i386 Sep 23 2002 I cannot explain why on one box 'pwrite()' is called and on the other one 'write()', is this the first box has a newer build date? Or are there any other components that might have an effect on running linux binaries. Anything else i could do to track down this problem? Cheers, Tom PS: please cc: me for im not subscribed to hackers... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message