From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 22 11:01:26 2004 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 81EAD16A4CE for ; Mon, 22 Mar 2004 11:01:26 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CF9643D2F for ; Mon, 22 Mar 2004 11:01:26 -0800 (PST) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.10/8.12.10) with ESMTP id i2MJ1Qbv058210 for ; Mon, 22 Mar 2004 11:01:26 -0800 (PST) (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i2MJ1Psk058204 for emulation@freebsd.org; Mon, 22 Mar 2004 11:01:25 -0800 (PST) (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 22 Mar 2004 11:01:25 -0800 (PST) Message-Id: <200403221901.i2MJ1Psk058204@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: emulation@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 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: Mon, 22 Mar 2004 19:01:26 -0000 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/06/28] kern/53874 emulation /usr/ports/emulators/linux_base isn't wor 1 problem total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/09/21] kern/21463 emulation Linux compatability mode should not allow o [2000/11/13] kern/22826 emulation Memory limits have no effect in linux com o [2000/12/14] misc/23561 emulation Linux compatibility mode does not support o [2001/03/28] kern/26171 emulation not work Linux-emulator, but hi is work i 4 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/06/19] misc/19391 emulation Evilness with Linux Terminus, causes X to o [2002/08/11] kern/41543 emulation Easier wine/w23 support p [2002/09/04] kern/42404 emulation TIOCSCTTY not implemented in linuxulator o [2002/11/26] kern/45785 emulation Linux WineX seems to require a few new li 4 problems total. From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 26 10:11:41 2004 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D552D16A4CE for ; Fri, 26 Mar 2004 10:11:41 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80B1C43D39 for ; Fri, 26 Mar 2004 10:11:41 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i2QIBeEX018024; Fri, 26 Mar 2004 12:11:40 -0600 (CST) (envelope-from dan) Date: Fri, 26 Mar 2004 12:11:40 -0600 From: Dan Nelson To: Paul Mather Message-ID: <20040326181140.GA15934@dan.emsphone.com> References: <20031012000509.GA59843@gromit.dlib.vt.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031012000509.GA59843@gromit.dlib.vt.edu> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: freebsd-emulation@freebsd.org Subject: Re: IBCS2 regression in FreeBSD 5?? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 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: Fri, 26 Mar 2004 18:11:42 -0000 In the last episode (Oct 11), Paul Mather said: > Does anyone know whether the IBCS2 emulation functionality regressed > going from FreeBSD 4 to FreeBSD 5? I ask because I have a > statically-linked SCO binary that works under FreeBSD 4.8-STABLE but > not under FreeBSD 5.1-RELEASE-p10 (or a version of 5.1-CURRENT). > > I have ibcs2 and coff modules, and know that IBCS2 at least partially > works. For example, I can run the "hello_world" example program in > /usr/share/examples/ibcs2 as well as some others. But, the program in > question exits immediately with "Abort". Here's what I get when > running the program using ktrace on 5.1: > > 40019 ktrace RET ktrace 0 > 40019 ktrace CALL execve(0xbfbffc7b,0xbfbffb88,0xbfbffb94) > 40019 ktrace NAMI "/usr/adsm/dsmc" And I guess this is a very belated "me too" :) I get the same on 5.2-RELEASE and -current. Paul, did you ever figure out the cause? -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 26 13:20:37 2004 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 33F5B16A4CE for ; Fri, 26 Mar 2004 13:20:37 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id C199F43D41 for ; Fri, 26 Mar 2004 13:20:36 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i2QLKWBY034116; Fri, 26 Mar 2004 15:20:32 -0600 (CST) (envelope-from dan) Date: Fri, 26 Mar 2004 15:20:31 -0600 From: Dan Nelson To: Paul Mather Message-ID: <20040326212031.GE3446@dan.emsphone.com> References: <20031012000509.GA59843@gromit.dlib.vt.edu> <20040326181140.GA15934@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040326181140.GA15934@dan.emsphone.com> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: freebsd-emulation@freebsd.org Subject: Re: IBCS2 regression in FreeBSD 5?? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 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: Fri, 26 Mar 2004 21:20:37 -0000 In the last episode (Mar 26), Dan Nelson said: > In the last episode (Oct 11), Paul Mather said: > > Does anyone know whether the IBCS2 emulation functionality > > regressed going from FreeBSD 4 to FreeBSD 5? I ask because I have > > a statically-linked SCO binary that works under FreeBSD 4.8-STABLE > > but not under FreeBSD 5.1-RELEASE-p10 (or a version of > > 5.1-CURRENT). > > > > I have ibcs2 and coff modules, and know that IBCS2 at least > > partially works. For example, I can run the "hello_world" example > > program in /usr/share/examples/ibcs2 as well as some others. But, > > the program in question exits immediately with "Abort". Here's > > what I get when running the program using ktrace on 5.1: > > > > 40019 ktrace RET ktrace 0 > > 40019 ktrace CALL execve(0xbfbffc7b,0xbfbffb88,0xbfbffb94) > > 40019 ktrace NAMI "/usr/adsm/dsmc" > > And I guess this is a very belated "me too" :) I get the same on > 5.2-RELEASE and -current. > > Paul, did you ever figure out the cause? After a short bit of debugging it looks like a memory mapping issue. The vm_map_find call at line 475 overlaps a previously-mapped range and fails. The error isn't checked, so the exec continues and the process aborts later. If I manually add one page to the map address it works and my test program is able to at least print out its version number. Here's a comparison of the /proc/pid/map files between 4.8 and 5.2. They were generated by trussing the program, then hitting ^Z to pause it. Without the truss it exited too quickly. ==> map.4 <== 0x0 0x6000 6 9 0xd62c4360 r-x 2 1 0x0 COW NC vnode 0x400000 0x403000 3 0 0xd68ad1e0 rwx 1 0 0x2180 COW NNC vnode 0x403000 0x406000 3 0 0xd6ffb7e0 rwx 1 0 0x2180 NCOW NNC default 0xbfbe0000 0xbfc00000 2 0 0xd6e73d80 rwx 1 0 0x2180 NCOW NNC default ==> map.5 <== 0x0 0x6000 6 14 0xc625b8c4 r-x 2 1 0x0 COW NC vnode /a/emssrv5/io1/g1/cobol.7a.1a.11.10/bin/cobrun 0x400000 0x403000 3 0 0xc3fe7840 rwx 1 0 0x2180 COW NNC vnode /a/emssrv5/io1/g1/cobol.7a.1a.11.10/bin/cobrun 0x403000 0x407000 3 0 0xc3edfc60 rwx 1 0 0x2180 NCOW NNC default - 0xbfbe0000 0xbfc00000 2 0 0xc60b3000 rwx 1 0 0x2180 NCOW NNC default - The third region looks like it has one extra page of memory allocated for some reason. And more interestingly, not all programs fail. I have one that works fine on a stock kernel. -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 27 07:26:01 2004 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E2D6016A4CE for ; Sat, 27 Mar 2004 07:26:01 -0800 (PST) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0122343D39 for ; Sat, 27 Mar 2004 07:25:58 -0800 (PST) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (uucp@gwyn [127.0.0.1]) i2RFPtm3009700; Sat, 27 Mar 2004 16:25:55 +0100 Received: from saturn.UUCP (uucp@localhost)i2RFPtwQ009698; Sat, 27 Mar 2004 16:25:55 +0100 Received: (from nox@localhost) by saturn (8.11.4/8.8.5) id i2RFb9m17191; Sat, 27 Mar 2004 16:37:10 +0100 (CET) Date: Sat, 27 Mar 2004 16:37:10 +0100 (CET) From: Juergen Lock Message-Id: <200403271537.i2RFb9m17191@saturn> To: farrenkopf@mail.sub.uni-goettingen.de X-Newsgroups: local.list.freebsd.emulation In-Reply-To: <29370000.1077528903@sub00261.sub.uni-goettingen.de> Organization: home cc: freebsd-emulation@freebsd.org Subject: Re: FreeBSD linux apps can not access mounted netware volumes X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 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, 27 Mar 2004 15:26:02 -0000 In article <29370000.1077528903@sub00261.sub.uni-goettingen.de> you write: >Hello, > >(I hope this is the appropriate group, I posted the question already to >"questions" and to some news groups.) > >I mount two NetWare shares within /etc/fstab at my FreeBSD desktop (using >mount_nwfs) and I >noticed in the past that linux applications like mulberry, acroread, etc. >can not access >these volumes. Instead they show an empty directory at the mount point and >nothing below. >Now I found that linux-mozilla-firebird (which is not my default browser) >is also not >able to access these shares, but it reports a permission problem: >"You don't have the permissions necessary to view this directory" > >The permissions are set to 755 for all directories and to 644 for all >files down the complete hierarchy. Owner and group are my local user:group. > >These are the lines from my /etc/fstab >/SERVER:USER/user /home/sfarren/.NW/user nwfs rw,noauto,\ >-A=SERVER 0 0 >/SERVER:USER/data /home/sfarren/.NW/data nwfs rw,noauto,\ >-A=SERVER 0 0 > >My colleagues with Linux boxes use ncpmount and do not encounter any >problems with the NetWare shares. All application which run FreeBSD native >have full access to the mounted NetWare volumes I could be wrong, but this sounds like you have empty directories under /compat/linux/home/sfarren/.NW... (or under /usr/compat/linux, depending on your system). That would at least explain this behaviour, because corresponding directories there are picked up before the real ones by the linuxulator. So the fix would be to just rmdir them... HTH, Juergen