From owner-freebsd-emulation@FreeBSD.ORG Thu Sep 27 18:17:39 2007 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17EC316A419; Thu, 27 Sep 2007 18:17:39 +0000 (UTC) (envelope-from ml@t-b-o-h.net) Received: from vjofn.tucs-beachin-obx-house.com (vjofn-pt.tunnel.tserv1.fmt.ipv6.he.net [IPv6:2001:470:1f00:ffff::5e5]) by mx1.freebsd.org (Postfix) with ESMTP id CC29113C469; Thu, 27 Sep 2007 18:17:38 +0000 (UTC) (envelope-from ml@t-b-o-h.net) Received: from himinbjorg.tucs-beachin-obx-house.com (cpe-68-175-8-11.hvc.res.rr.com [68.175.8.11]) (authenticated bits=0) by vjofn.tucs-beachin-obx-house.com (8.12.9/8.12.9) with ESMTP id l8RIHcBJ032461; Thu, 27 Sep 2007 14:17:38 -0400 (EDT) Received: from himinbjorg.tucs-beachin-obx-house.com (localhost.tucs-beachin-obx-house.com [127.0.0.1]) by himinbjorg.tucs-beachin-obx-house.com (8.13.8/8.13.6) with ESMTP id l8RIHWKJ020209; Thu, 27 Sep 2007 14:17:32 -0400 (EDT) (envelope-from ml@t-b-o-h.net) Received: (from tbohml@localhost) by himinbjorg.tucs-beachin-obx-house.com (8.13.8/8.13.6/Submit) id l8RIHWK9020208; Thu, 27 Sep 2007 14:17:32 -0400 (EDT) (envelope-from tbohml) From: "Tuc at T-B-O-H.NET" Message-Id: <200709271817.l8RIHWK9020208@himinbjorg.tucs-beachin-obx-house.com> To: rdivacky@freebsd.org (Roman Divacky) Date: Thu, 27 Sep 2007 14:17:32 -0400 (EDT) In-Reply-To: <20070927173022.GA39854@freebsd.org> X-Mailer: ELM [version 2.5 PL8] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: emulation@freebsd.org Subject: Re: Signal 12 on simple ldd / Linux 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: Thu, 27 Sep 2007 18:17:39 -0000 > > On Thu, Sep 27, 2007 at 01:00:42PM -0400, Tuc at T-B-O-H.NET wrote: > > Hi, > > > > FreeBSD 5.3-RELEASE-p10 (Yea, I know, there are reasons) > > /proc and /linprocfs are mounted onto a point under an NFS mount point > > (This shouldn't matter since the fs is local still, no?) > > > > When trying to ldd a binary, I get a signal 12. When I truss > > it, the last bits I get are : > > > > 82825: linux_mmap(0xbfbfe82c) = 675115008 (0x283d7000) > > 82825: #243() ERR#78 'Function not implemente > > d' > > SIGNAL 12 (SIGSYS) > > SIGNAL 12 (SIGSYS) > > Process stopped because of: 16 > > process exit, rval = 140 > > Bad system call > > syscall 243 is set_thread_area.. TLS stuff. It was implemented in 7-current. > (BTW: By now everyone I hope realizes I ended up trying to run the program, not ldd it.... Sorry... I figured maybe running the program would be more accurate) Ok, but I wonder if thats the problem. I try running on another system and it DOES run, DOES give the same #243, but the next step its doing a linux_modify_ldt as such : 19038: linux_open("/lib/libgcc_s.so.1",0x0,027757762100) = 3 (0x3)^M 19038: read(0x3,0xbfbfe3a0,0x200) = 512 (0x200)^M 19038: linux_fstat64(0x3,0xbfbfe2d0,0x28153fc4) = 0 (0x0)^M 19038: linux_mmap(0xbfbfe1a0) = 675074048 (0x283cd000)^M 19038: linux_mmap(0xbfbfe1a0) = 675110912 (0x283d6000)^M 19038: close(3) = 0 (0x0)^M 19038: linux_mmap(0xbfbfe78c) = 675115008 (0x283d7000)^M 19038: linux_mmap(0xbfbfe82c) = 675119104 (0x283d8000)^M 19038: #243() ERR#78 'Function not implemente d'^M 19038: linux_modify_ldt(0x1,0xbfbfe8ac,0x10) = 0 (0x0)^M 19038: mprotect(0x283c7000,8192,(0x1)PROT_READ) = 0 (0x0)^M 19038: mprotect(0x2826a000,4096,(0x1)PROT_READ) = 0 (0x0)^M 19038: mprotect(0x28259000,4096,(0x1)PROT_READ) = 0 (0x0)^M 19038: mprotect(0x28153000,4096,(0x1)PROT_READ) = 0 (0x0)^M 19038: munmap(0x28155000,0x2c9b) = 0 (0x0)^M I'm finding out that this also ISN'T happening on systems where the Linux install is local, and used local. I'm finding 100% so far that it only happens where /compat is NFS mounted. Is this something someone has ever done, and are there any gotchas that I am running into because of it, or is it just "One of those things you figure out that leads you down the completely wrong path". Thanks, Tuc