From owner-freebsd-emulation@FreeBSD.ORG Sat Sep 25 19:05:41 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 47F351065670 for ; Sat, 25 Sep 2010 19:05:41 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 00C4C8FC12 for ; Sat, 25 Sep 2010 19:05:40 +0000 (UTC) Received: from outgoing.leidinger.net (p57B3B59B.dip.t-dialin.net [87.179.181.155]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 4B62E84401F; Sat, 25 Sep 2010 21:05:38 +0200 (CEST) Received: from unknown (IO.Leidinger.net [192.168.2.110]) by outgoing.leidinger.net (Postfix) with ESMTP id 8271116C4; Sat, 25 Sep 2010 21:05:35 +0200 (CEST) Date: Sat, 25 Sep 2010 21:05:28 +0200 From: Alexander Leidinger To: tomdean@speakeasy.org Message-ID: <20100925210528.000056cc@unknown> In-Reply-To: <1285366257.2068.15.camel@asus> References: <1285366257.2068.15.camel@asus> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.16.0; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 4B62E84401F.A3B6D X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-0.4, required 6, autolearn=disabled, ALL_TRUSTED -1.00, J_CHICKENPOX_52 0.60) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1286046338.68709@YL17e9qbEgyhqE5MsmYOhw X-EBL-Spam-Status: No Cc: freebsd-emulation@freebsd.org Subject: Re: Linux Binaries Core Dump X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Sep 2010 19:05:41 -0000 On Fri, 24 Sep 2010 15:10:57 -0700 "Thomas D. Dean" wrote: > I have FreeBSD 8.1-stable as of 9/17. > Most Linux binaries seem to core dump. However, a recently built (on > Ubuntu) "hello world" works. So I do not think there is a kernel problem (could be, but not very likely in my opinion). > I installed the linux_base-f10 port. > I have linux.ko loaded. > I have a 2nd disk with Ubuntu 10.04 on the same machine. I mounted > the Ubuntu file systems on /Ubuntu. > > I want to drop Ubuntu and run only FreeBSD, but, need a few binaries, > like maple and eagle. > > Most linux binaries under FreeBSD emulation core dump. > > I deinstalled, cleaned, built, and reinstalled linux_base-f10. Did you "rm -r /compat/linux" between deinstall and reinstall? > I did a portupgrade -rR linux_base-f10. > > I think I am missing something. Any ideas? Do you have anything in the LD_PRELOAD variable? If yes, this is the problem. If not: You could install the linux-gentoo port and run a test with binaries from it. One time like you did before, one time by doing a chroot into /usr/local/linux-gentoo. If the first one doesn't work and the second one works, there is something in your environment (variable or something somewhere below '/')). In this case you could run the test within ktrace and use the linux-kdump port to get a text-dump of what was taken where. Bye, Alexander.