From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 10 10:34:09 2006 Return-Path: X-Original-To: emulation@freebsd.org 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 5ADEB16A415 for ; Sun, 10 Sep 2006 10:34:09 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7482E43D73 for ; Sun, 10 Sep 2006 10:34:01 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5ED98.dip.t-dialin.net [84.165.237.152]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8AACN0M078333; Sun, 10 Sep 2006 12:12:26 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8AAXiXX026126; Sun, 10 Sep 2006 12:33:44 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Sun, 10 Sep 2006 12:34:02 +0200 From: Alexander Leidinger To: emulation@freebsd.org Message-ID: <20060910123402.000e1358@Magellan.Leidinger.net> X-Mailer: Sylpheed-Claws 2.4.0 (GTK+ 2.8.20; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Cc: Marcin Cieslak Subject: Wiki page about the current development status of the linuxolator 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: Sun, 10 Sep 2006 10:34:09 -0000 Hi, I started a wiki page (http://wiki.freebsd.org/linux-kernel) which describes the current status and the list of open TODO items (incomplete, feel free to add more if you have write access or submit more if not; individual write access to the wiki can be arranged for persistent contributors). Currently I'm running some tests from the linux test project on -current with compat.linux.osrelease=2.4.2. Volunteers are free to - pick up some of the failing tests and fix the problems - run the tests with osrelease=2.6.16 - compile a kernel with the stuff in perforce (//depot/projects/linuxolator) and do one of the items above; diff at http://www.Leidinger.net/FreeBSD/linuxolator-p4.diff - implement missing syscalls - ... It's open season to improve the linuxolator, feel free to hunt down some bugs and claim your spiritual bounty (an entry in our contributors list, your name mentioned in the commit log, write access to the wiki or maybe even an offer for a commit bit). I suggest to coordinate here on emulation@. Bye, Alexander. P.S.: If you are wondering why I CCed you, it's because you expressed interest in helping, or submitted patches to improve the linuxolator. -- Need to find the location of a program? Use "locate program_name". -- Dru http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 10 11:36:24 2006 Return-Path: X-Original-To: emulation@freebsd.org 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 0574F16A417 for ; Sun, 10 Sep 2006 11:36:24 +0000 (UTC) (envelope-from saper@SYSTEM.PL) Received: from mail01.ish.de (pip252.ish.de [80.69.98.252]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B8E943D55 for ; Sun, 10 Sep 2006 11:36:23 +0000 (GMT) (envelope-from saper@SYSTEM.PL) Received: from [81.210.201.87] (account saper@iesy.net HELO saperski.saper.info) by mail-fe-01.mail01.ish.de (CommuniGate Pro SMTP 5.0.6) with ESMTPSA id 75442875; Sun, 10 Sep 2006 13:36:21 +0200 Received: from [127.0.0.1] (saperski.saper.info [127.0.0.1]) by saperski.saper.info (8.13.8/8.13.8) with ESMTP id k8ABa2a5052671 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sun, 10 Sep 2006 13:36:13 +0200 (CEST) (envelope-from saper@SYSTEM.PL) Message-ID: <4503F8A2.1030104@SYSTEM.PL> Date: Sun, 10 Sep 2006 13:36:02 +0200 From: Marcin Cieslak User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.4) Gecko/20060721 SeaMonkey/1.0.2 MIME-Version: 1.0 To: Alexander Leidinger References: <20060910123402.000e1358@Magellan.Leidinger.net> In-Reply-To: <20060910123402.000e1358@Magellan.Leidinger.net> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Cc: emulation@freebsd.org Subject: Re: Wiki page about the current development status of the linuxolator 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: Sun, 10 Sep 2006 11:36:24 -0000 Great idea! Now I can really understand what the state of things is, cool. Should we somehow differentiate between 2.4 and 2.6 state of things? I will try to have a look at some networking stuff (getsockopt, bind02 looks like the easy one). -- << Marcin Cieslak // saper@system.pl >> From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 10 12:26:49 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org 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 C8B7416A407 for ; Sun, 10 Sep 2006 12:26:49 +0000 (UTC) (envelope-from admin@intron.ac) Received: from intron.ac (unknown [210.51.165.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id B8C6443D49 for ; Sun, 10 Sep 2006 12:26:48 +0000 (GMT) (envelope-from admin@intron.ac) Received: from localhost (localhost [127.0.0.1]) (uid 1003) by intron.ac with local; Sun, 10 Sep 2006 20:26:46 +0800 id 0010E404.45040486.0000F06A References: <20060910123402.000e1358@Magellan.Leidinger.net> <4503F8A2.1030104@SYSTEM.PL> In-Reply-To: <4503F8A2.1030104@SYSTEM.PL> From: "Intron is my alias on the Internet" To: Marcin Cieslak Date: Sun, 10 Sep 2006 20:26:46 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312"; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Cc: freebsd-emulation@freebsd.org Subject: Re: Wiki page about the current development status of the linuxolator 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: Sun, 10 Sep 2006 12:26:49 -0000 Marcin Cieslak wrote: > Great idea! > > Now I can really understand what the state of things is, cool. > Should we somehow differentiate between 2.4 and 2.6 state of things? > > I will try to have a look at some networking stuff (getsockopt, > bind02 looks like the easy one). > I am going in for ORACLE 10g running under FreeBSD, too. My Linux AIO module has been committed into Perforce repository today, which makes LibAIO runnable under FreeBSD. But currently, it is believed that there are still some serious problems on process, thread (light weight process) and Inter-Process Communication. ------------------------------------------------------------------------ From Beijing, China From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 10 12:47:59 2006 Return-Path: X-Original-To: emulation@freebsd.org 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 A691F16A40F for ; Sun, 10 Sep 2006 12:47:59 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0477C43D4C for ; Sun, 10 Sep 2006 12:47:58 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5ED98.dip.t-dialin.net [84.165.237.152]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8ACQVtv081381; Sun, 10 Sep 2006 14:26:32 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8ACls5Q045060; Sun, 10 Sep 2006 14:47:54 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Sun, 10 Sep 2006 14:48:12 +0200 From: Alexander Leidinger To: Marcin Cieslak Message-ID: <20060910144812.6933ffd1@Magellan.Leidinger.net> In-Reply-To: <4503F8A2.1030104@SYSTEM.PL> References: <20060910123402.000e1358@Magellan.Leidinger.net> <4503F8A2.1030104@SYSTEM.PL> X-Mailer: Sylpheed-Claws 2.4.0 (GTK+ 2.8.20; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Cc: emulation@freebsd.org Subject: Re: Wiki page about the current development status of the linuxolator 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: Sun, 10 Sep 2006 12:47:59 -0000 Quoting Marcin Cieslak (Sun, 10 Sep 2006 13:36:02 +0200): > Great idea! > > Now I can really understand what the state of things is, cool. > Should we somehow differentiate between 2.4 and 2.6 state of things? I want to differentiate. I want to - detect stuff which was wrong already - detect stuff which brakes when switching to 2.6 - detect bugs in the new stuff > I will try to have a look at some networking stuff (getsockopt, > bind02 looks like the easy one). Great. And if you or someone else have time to have a look at the remove() one, it would give the most bang for the bucks (I wouldn't be surprised if we have an errno problem here, which means it affects a lot of stuff)... I will be busy with doing the tests and updating the comments field today. Maybe I will also start a 2.6.16 test, but this depends on how much pitfalls (e.g. "reboot02" reboots the system unexpectedly) there are with the still running 2.4.2 test. Bye, Alexander. -- 'On whose authority?' demanded Wert. Trymon turned his grey eyes on him. 'Mine. I need no other.' (The Light Fantastic) http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 10 12:56:25 2006 Return-Path: X-Original-To: emulation@freebsd.org 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 3E53916A403 for ; Sun, 10 Sep 2006 12:56:25 +0000 (UTC) (envelope-from saper@SYSTEM.PL) Received: from mail01.ish.de (pip251.ish.de [80.69.98.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C58E43D49 for ; Sun, 10 Sep 2006 12:56:24 +0000 (GMT) (envelope-from saper@SYSTEM.PL) Received: from [81.210.201.87] (account saper@iesy.net HELO saperski.saper.info) by mail-fe-01.mail01.ish.de (CommuniGate Pro SMTP 5.0.6) with ESMTPSA id 75447145; Sun, 10 Sep 2006 14:56:22 +0200 Received: from [127.0.0.1] (saperski.saper.info [127.0.0.1]) by saperski.saper.info (8.13.8/8.13.8) with ESMTP id k8ACu88F002394 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sun, 10 Sep 2006 14:56:15 +0200 (CEST) (envelope-from saper@SYSTEM.PL) Message-ID: <45040B68.8010302@SYSTEM.PL> Date: Sun, 10 Sep 2006 14:56:08 +0200 From: Marcin Cieslak User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.4) Gecko/20060721 SeaMonkey/1.0.2 MIME-Version: 1.0 To: Alexander Leidinger References: <20060910123402.000e1358@Magellan.Leidinger.net> <4503F8A2.1030104@SYSTEM.PL> <20060910144812.6933ffd1@Magellan.Leidinger.net> In-Reply-To: <20060910144812.6933ffd1@Magellan.Leidinger.net> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Cc: emulation@freebsd.org Subject: remove() problem fixed 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: Sun, 10 Sep 2006 12:56:25 -0000 The fix for remove() was ... trivial. We need to introduce non POSIX compliant behaviour of unlink(2). No idea why it worked, probably libc checked for directory instead of the EISDIR error value. Sorry for versioning crap, I am using my normal buildworld environment stuff. Is there anyway I can make easily make diffs to p4 repo? If not, I will have to go head and install whole CVS repository to finally be able to "cvs diff" Now unlink() gets EISDIR instead of EPERM and remove() is able to recover. -- << Marcin Cieslak // saper@system.pl >> --- linux_file.c Sun Sep 10 14:41:16 2006 +++ linux_file.c_new Sun Sep 10 14:36:08 2006 @@ -27,7 +27,7 @@ */ #include -__FBSDID("$FreeBSD: /repoman/r/ncvs/src/sys/compat/linux/linux_file.c,v 1.91 2005/04/13 04:31:43 mdodd Exp $"); +__FBSDID("$FreeBSD: src/sys/compat/linux/linux_file.c,v 1.91 2005/04/13 04:31:43 mdodd Exp $"); #include "opt_compat.h" #include "opt_mac.h" @@ -45,6 +45,7 @@ #include #include #include +#include #include #include #include @@ -502,6 +503,7 @@ { char *path; int error; + struct stat sbp; LCONVPATHEXIST(td, args->path, &path); @@ -511,6 +513,11 @@ #endif error = kern_unlink(td, path, UIO_SYSSPACE); + if (error == EPERM) + /* Introduce POSIX noncompliant behaviour of Linux */ + if (kern_stat(td, path, UIO_SYSSPACE, &sbp) == 0) + if (S_ISDIR(sbp.st_mode)) + error = EISDIR; LFREEPATH(path); return (error); } From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 10 13:17:21 2006 Return-Path: X-Original-To: emulation@freebsd.org 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 42D0F16A40F for ; Sun, 10 Sep 2006 13:17:21 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AAF843D46 for ; Sun, 10 Sep 2006 13:17:20 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5ED98.dip.t-dialin.net [84.165.237.152]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8ACtrB7081474; Sun, 10 Sep 2006 14:55:53 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8ADHGOd049182; Sun, 10 Sep 2006 15:17:16 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Sun, 10 Sep 2006 15:17:34 +0200 From: Alexander Leidinger To: Marcin Cieslak Message-ID: <20060910151734.0d56eb13@Magellan.Leidinger.net> In-Reply-To: <45040B68.8010302@SYSTEM.PL> References: <20060910123402.000e1358@Magellan.Leidinger.net> <4503F8A2.1030104@SYSTEM.PL> <20060910144812.6933ffd1@Magellan.Leidinger.net> <45040B68.8010302@SYSTEM.PL> X-Mailer: Sylpheed-Claws 2.4.0 (GTK+ 2.8.20; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Cc: emulation@freebsd.org Subject: Re: remove() problem fixed 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: Sun, 10 Sep 2006 13:17:21 -0000 Quoting Marcin Cieslak (Sun, 10 Sep 2006 14:56:08 +0200): > The fix for remove() was ... trivial. We need to introduce non POSIX > compliant behaviour of unlink(2). No idea why it worked, probably > libc checked for directory instead of the EISDIR error value. Yeah! This was fast... I did send the mail, got hit by a spontaneous reboot (panic while being in X, now I have to find out which test is responsible for this and why) and a fix is already there. Nice! > Sorry for versioning crap, I am using my normal buildworld environment > stuff. Is there anyway I can make easily make diffs to p4 repo? No problem, I deal with this. As long as you don't have an p4-account, you can't. > If not, I will have to go head and install whole CVS repository > to finally be able to "cvs diff" Anoncvs? You just have to check out the file you want to change. But a local CVS repository is nice to have (src alone is ~1.5G), so if you re willing to of this way, fine. > Now unlink() gets EISDIR instead of EPERM and remove() is able > to recover. I will give it a try (after the bgfsck finishes). Thanks, Alexander. -- Leela: You buy one pound of underwear and you're on their list forever. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 10 13:29:16 2006 Return-Path: X-Original-To: emulation@freebsd.org 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 B3B6516A403 for ; Sun, 10 Sep 2006 13:29:16 +0000 (UTC) (envelope-from saper@SYSTEM.PL) Received: from mail01.ish.de (pip252.ish.de [80.69.98.252]) by mx1.FreeBSD.org (Postfix) with ESMTP id 29E1D43D45 for ; Sun, 10 Sep 2006 13:29:15 +0000 (GMT) (envelope-from saper@SYSTEM.PL) Received: from [81.210.201.87] (account saper@iesy.net HELO saperski.saper.info) by mail-fe-01.mail01.ish.de (CommuniGate Pro SMTP 5.0.6) with ESMTPSA id 75449103 for emulation@freebsd.org; Sun, 10 Sep 2006 15:29:14 +0200 Received: from [127.0.0.1] (saperski.saper.info [127.0.0.1]) by saperski.saper.info (8.13.8/8.13.8) with ESMTP id k8ADT5WL002581 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Sun, 10 Sep 2006 15:29:07 +0200 (CEST) (envelope-from saper@SYSTEM.PL) Message-ID: <45041321.6030003@SYSTEM.PL> Date: Sun, 10 Sep 2006 15:29:05 +0200 From: Marcin Cieslak User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.4) Gecko/20060721 SeaMonkey/1.0.2 MIME-Version: 1.0 To: emulation@freebsd.org Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: /lib/ld-linux.so.2: cannot execute binary file: fix propsal 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: Sun, 10 Sep 2006 13:29:16 -0000 # in linux chroot: "/usr/bin/ldd: line 165: /lib/ld-linux.so.2: cannot execute binary file" Quickfix: sudo brandelf -t Linux /compat/linux/lib/ld-2.3.6.so Correct fix: Adjust @{FIND} commands in emulator port Makefiles also to include ${PREFIX}/${PREFIX_SUBDIR}lib In general, I guess ELF shared libraries should be Linux branded as well? -- << Marcin Cieslak // saper@system.pl >> From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 10 13:58:38 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org 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 37FBB16A403 for ; Sun, 10 Sep 2006 13:58:38 +0000 (UTC) (envelope-from saper@saper.info) Received: from mail01.ish.de (pip250.ish.de [80.69.98.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id 665FD43D49 for ; Sun, 10 Sep 2006 13:58:36 +0000 (GMT) (envelope-from saper@saper.info) Received: from [81.210.201.87] (account saper@iesy.net HELO saperski.saper.info) by mail-fe-02.mail01.ish.de (CommuniGate Pro SMTP 5.0.6) with ESMTPSA id 66617077; Sun, 10 Sep 2006 15:58:35 +0200 Received: from [127.0.0.1] (saperski.saper.info [127.0.0.1]) by saperski.saper.info (8.13.8/8.13.8) with ESMTP id k8ADwJSO002871 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sun, 10 Sep 2006 15:58:22 +0200 (CEST) (envelope-from saper@saper.info) Message-ID: <450419FA.8040904@saper.info> Date: Sun, 10 Sep 2006 15:58:18 +0200 From: Marcin Cieslak User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.4) Gecko/20060721 SeaMonkey/1.0.2 MIME-Version: 1.0 To: Steven Hartland Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------ms010806030008020600070406" Cc: freebsd-emulation@freebsd.org Subject: Re: Bug locating path for linux_mkdir 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: Sun, 10 Sep 2006 13:58:38 -0000 This is a cryptographically signed message in MIME format. --------------ms010806030008020600070406 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Steve, Unfortunately I can't reproduce your problem using my test case, can you try it or do you have some more hints? saperski% sudo rm -rf /root/.test saperski% cat test.c #include int main() { if (mkdir("/root/.test", 0511) < 0) perror("mkdir 1"); if (mkdir("/root/.test/test2/", 0511) < 0) perror("mkdir 2"); } saperski% /compat/linux/usr/bin/gcc -o test test.c saperski% sudo ./test saperski% sudo env LANG=C find /root/.test -ls 16577 4 dr-x--x--x 3 root wheel 512 Sep 10 15:52 /root/.test 16634 4 dr-x--x--x 2 root wheel 512 Sep 10 15:52 /root/.test/test2 saperski% umask 022 saperski% uname -a FreeBSD saperski.saper.info 6.1-STABLE FreeBSD 6.1-STABLE #1: Sat Sep 9 22:26:02 CEST 2006 saper@saperski.saper.info:/usr/obj/usr/src/sys/VAIO i386 Using linux_base-fc-4_6 -- << Marcin Cieslak // saper@saper.info >> --------------ms010806030008020600070406 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIHsjCC A9UwggM+oAMCAQICDwDeDgABAALbc/3MWdJnBjANBgkqhkiG9w0BAQQFADCBvDELMAkGA1UE BhMCREUxEDAOBgNVBAgTB0hhbWJ1cmcxEDAOBgNVBAcTB0hhbWJ1cmcxOjA4BgNVBAoTMVRD IFRydXN0Q2VudGVyIGZvciBTZWN1cml0eSBpbiBEYXRhIE5ldHdvcmtzIEdtYkgxIjAgBgNV BAsTGVRDIFRydXN0Q2VudGVyIENsYXNzIDEgQ0ExKTAnBgkqhkiG9w0BCQEWGmNlcnRpZmlj YXRlQHRydXN0Y2VudGVyLmRlMB4XDTA2MDUwMTE5MjA0M1oXDTA3MDYyNTE5MjA0M1owRzEL MAkGA1UEBhMCREUxFzAVBgNVBAMTDk1hcmNpbiBDaWVzbGFrMR8wHQYJKoZIhvcNAQkBFhBz YXBlckBzYXBlci5pbmZvMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApsdylN7K GB8xixb7wrJLyyaDn3g3OYBUXvX0cd8XComAQ+49oMHaglWjielHx0ynmygt7yLlnobZJiFl gdmTWnzvkcdK/DTm0b/tA4uZMBz3Abbo9TbPGeTCg+n1DM/4S8jsF23cXWv8fXTCumusXVIf +ADiuuzlLum8r8zKspT063dtw0vUenn583SB44AYXc5TbRmF4sn0phzA52M+4MagE4pWnIf/ 0PbWSBmI0LTC3dh1e989eUoz+/pLbwPkb88EckEbT8suJu1oKw0dQRLX67IdtGXh5zYAV3OH VElLKRJpXLqxpenDOfZM0pJbB+9LqsS+L2rJL40uMbm8cwIDAQABo4HIMIHFMAwGA1UdEwEB /wQCMAAwDgYDVR0PAQH/BAQDAgXgMDMGCWCGSAGG+EIBCAQmFiRodHRwOi8vd3d3LnRydXN0 Y2VudGVyLmRlL2d1aWRlbGluZXMwEQYJYIZIAYb4QgEBBAQDAgWgMF0GCWCGSAGG+EIBAwRQ Fk5odHRwczovL3d3dy50cnVzdGNlbnRlci5kZS9jZ2ktYmluL2NoZWNrLXJldi5jZ2kvREUw RTAwMDEwMDAyREI3M0ZEQ0M1OUQyNjcwNj8wDQYJKoZIhvcNAQEEBQADgYEAl7O1+QFl1f+V 2V/jfW5x0LEpXoYlilX37G6M3zvIcAWSZ4295AgpKAo6cPrUUWgCmG3XmDPxoS4FGkKpN6rR EJijOAhqew3zYxPqsfxtNsBqrWOtK0MnKVpXMW5qOFDWAR30qyh4Stme3xXgSvU9a3HpfEWA vNCgZRXpGyxMohEwggPVMIIDPqADAgECAg8A3g4AAQAC23P9zFnSZwYwDQYJKoZIhvcNAQEE BQAwgbwxCzAJBgNVBAYTAkRFMRAwDgYDVQQIEwdIYW1idXJnMRAwDgYDVQQHEwdIYW1idXJn MTowOAYDVQQKEzFUQyBUcnVzdENlbnRlciBmb3IgU2VjdXJpdHkgaW4gRGF0YSBOZXR3b3Jr cyBHbWJIMSIwIAYDVQQLExlUQyBUcnVzdENlbnRlciBDbGFzcyAxIENBMSkwJwYJKoZIhvcN AQkBFhpjZXJ0aWZpY2F0ZUB0cnVzdGNlbnRlci5kZTAeFw0wNjA1MDExOTIwNDNaFw0wNzA2 MjUxOTIwNDNaMEcxCzAJBgNVBAYTAkRFMRcwFQYDVQQDEw5NYXJjaW4gQ2llc2xhazEfMB0G CSqGSIb3DQEJARYQc2FwZXJAc2FwZXIuaW5mbzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC AQoCggEBAKbHcpTeyhgfMYsW+8KyS8smg594NzmAVF719HHfFwqJgEPuPaDB2oJVo4npR8dM p5soLe8i5Z6G2SYhZYHZk1p875HHSvw05tG/7QOLmTAc9wG26PU2zxnkwoPp9QzP+EvI7Bdt 3F1r/H10wrprrF1SH/gA4rrs5S7pvK/MyrKU9Ot3bcNL1Hp5+fN0geOAGF3OU20ZheLJ9KYc wOdjPuDGoBOKVpyH/9D21kgZiNC0wt3YdXvfPXlKM/v6S28D5G/PBHJBG0/LLibtaCsNHUES 1+uyHbRl4ec2AFdzh1RJSykSaVy6saXpwzn2TNKSWwfvS6rEvi9qyS+NLjG5vHMCAwEAAaOB yDCBxTAMBgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIF4DAzBglghkgBhvhCAQgEJhYkaHR0 cDovL3d3dy50cnVzdGNlbnRlci5kZS9ndWlkZWxpbmVzMBEGCWCGSAGG+EIBAQQEAwIFoDBd BglghkgBhvhCAQMEUBZOaHR0cHM6Ly93d3cudHJ1c3RjZW50ZXIuZGUvY2dpLWJpbi9jaGVj ay1yZXYuY2dpL0RFMEUwMDAxMDAwMkRCNzNGRENDNTlEMjY3MDY/MA0GCSqGSIb3DQEBBAUA A4GBAJeztfkBZdX/ldlf431ucdCxKV6GJYpV9+xujN87yHAFkmeNveQIKSgKOnD61FFoApht 15gz8aEuBRpCqTeq0RCYozgIansN82MT6rH8bTbAaq1jrStDJylaVzFuajhQ1gEd9KsoeErZ nt8V4Er1PWtx6XxFgLzQoGUV6RssTKIRMYIEdzCCBHMCAQEwgdAwgbwxCzAJBgNVBAYTAkRF MRAwDgYDVQQIEwdIYW1idXJnMRAwDgYDVQQHEwdIYW1idXJnMTowOAYDVQQKEzFUQyBUcnVz dENlbnRlciBmb3IgU2VjdXJpdHkgaW4gRGF0YSBOZXR3b3JrcyBHbWJIMSIwIAYDVQQLExlU QyBUcnVzdENlbnRlciBDbGFzcyAxIENBMSkwJwYJKoZIhvcNAQkBFhpjZXJ0aWZpY2F0ZUB0 cnVzdGNlbnRlci5kZQIPAN4OAAEAAttz/cxZ0mcGMAkGBSsOAwIaBQCgggJ7MBgGCSqGSIb3 DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTA2MDkxMDEzNTgxOVowIwYJKoZI hvcNAQkEMRYEFErwxaZ/n2gtz5okNHQ5DpHBwL0lMFIGCSqGSIb3DQEJDzFFMEMwCgYIKoZI hvcNAwcwDgYIKoZIhvcNAwICAgCAMA0GCCqGSIb3DQMCAgFAMAcGBSsOAwIHMA0GCCqGSIb3 DQMCAgEoMIHhBgkrBgEEAYI3EAQxgdMwgdAwgbwxCzAJBgNVBAYTAkRFMRAwDgYDVQQIEwdI YW1idXJnMRAwDgYDVQQHEwdIYW1idXJnMTowOAYDVQQKEzFUQyBUcnVzdENlbnRlciBmb3Ig U2VjdXJpdHkgaW4gRGF0YSBOZXR3b3JrcyBHbWJIMSIwIAYDVQQLExlUQyBUcnVzdENlbnRl ciBDbGFzcyAxIENBMSkwJwYJKoZIhvcNAQkBFhpjZXJ0aWZpY2F0ZUB0cnVzdGNlbnRlci5k ZQIPAN4OAAEAAttz/cxZ0mcGMIHjBgsqhkiG9w0BCRACCzGB06CB0DCBvDELMAkGA1UEBhMC REUxEDAOBgNVBAgTB0hhbWJ1cmcxEDAOBgNVBAcTB0hhbWJ1cmcxOjA4BgNVBAoTMVRDIFRy dXN0Q2VudGVyIGZvciBTZWN1cml0eSBpbiBEYXRhIE5ldHdvcmtzIEdtYkgxIjAgBgNVBAsT GVRDIFRydXN0Q2VudGVyIENsYXNzIDEgQ0ExKTAnBgkqhkiG9w0BCQEWGmNlcnRpZmljYXRl QHRydXN0Y2VudGVyLmRlAg8A3g4AAQAC23P9zFnSZwYwDQYJKoZIhvcNAQEBBQAEggEAXQNf qSwE657JB0OI96v5sGbKMW1DTtvXJBf4Pc+lyV7OKsjEzpa0LnbyfGo16in/epflyip8T2FN 3ZcFRcjbxYgTTQiYhBGW3SMYKsikybnp9IP/l8EoTvB8m2Qq0iT0qJ9pGCNWCrw4qBic6W+9 Wxkp+Bz4V35mgEE+uOIVSOVjvzEA+mseblEWghG9MNtaGun4WLJWr+Voge5ZKcYNQKqPKzWf f0+F+OaaWv8zTE91jFTveDPo2JXUiTz6+zs6zvfrBmyEWrn5MpUYPVx3jONJtLuoU9cI6dO9 S5Kc46s95vquPKID8UUDdwijagl5EsVgOc3wX8yiPJ0LaPAIAgAAAAAAAA== --------------ms010806030008020600070406-- From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 10 14:30:53 2006 Return-Path: X-Original-To: freebsd-emulation@hub.freebsd.org Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 54AAA16A415; Sun, 10 Sep 2006 14:30:53 +0000 (UTC) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E99643D45; Sun, 10 Sep 2006 14:30:53 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k8AEUq90044332; Sun, 10 Sep 2006 14:30:52 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k8AEUqgZ044328; Sun, 10 Sep 2006 14:30:52 GMT (envelope-from netchild) Date: Sun, 10 Sep 2006 14:30:52 GMT From: Alexander Leidinger Message-Id: <200609101430.k8AEUqgZ044328@freefall.freebsd.org> To: kahatlen@gmail.com, netchild@FreeBSD.org, freebsd-emulation@FreeBSD.org Cc: Subject: Re: ports/102897: linux_base-fc-4 - remove() function does not delete empty directories 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: Sun, 10 Sep 2006 14:30:53 -0000 Synopsis: linux_base-fc-4 - remove() function does not delete empty directories State-Changed-From-To: open->patched State-Changed-By: netchild State-Changed-When: Sun Sep 10 14:30:36 UTC 2006 State-Changed-Why: Patched in -current. http://www.freebsd.org/cgi/query-pr.cgi?pr=102897 From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 10 16:19:15 2006 Return-Path: X-Original-To: emulation@freebsd.org 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 2A2D716A407 for ; Sun, 10 Sep 2006 16:19:15 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D0B943D45 for ; Sun, 10 Sep 2006 16:19:13 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5ED98.dip.t-dialin.net [84.165.237.152]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8AFvjI3082042; Sun, 10 Sep 2006 17:57:45 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8AGJ93L074723; Sun, 10 Sep 2006 18:19:10 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Sun, 10 Sep 2006 18:19:28 +0200 From: Alexander Leidinger To: Marcin Cieslak Message-ID: <20060910181928.342eefaf@Magellan.Leidinger.net> In-Reply-To: <45041321.6030003@SYSTEM.PL> References: <45041321.6030003@SYSTEM.PL> X-Mailer: Sylpheed-Claws 2.4.0 (GTK+ 2.8.20; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Cc: emulation@freebsd.org Subject: Re: /lib/ld-linux.so.2: cannot execute binary file: fix propsal 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: Sun, 10 Sep 2006 16:19:15 -0000 Quoting Marcin Cieslak (Sun, 10 Sep 2006 15:29:05 +0200): > # in linux chroot: "/usr/bin/ldd: line 165: /lib/ld-linux.so.2: cannot > execute binary file" > > Quickfix: > > sudo brandelf -t Linux /compat/linux/lib/ld-2.3.6.so > > Correct fix: > > Adjust @{FIND} commands in emulator port Makefiles also to include > ${PREFIX}/${PREFIX_SUBDIR}lib > > In general, I guess ELF shared libraries should be Linux branded as well? No, this will not work. You can't start apps which are linked to shared libs anymore after this. The linux linker expects the to be branded differently than what you propose here (been there done that months or years ago). Bye, Alexander. -- Scully: Mulder...toads just fell from the sky! Mulder: I guess their parachutes didn't open. "The X-Files: Die Hand Die Verletzt" http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 10 16:22:31 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org 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 9105916A40F for ; Sun, 10 Sep 2006 16:22:31 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id D85BA43D46 for ; Sun, 10 Sep 2006 16:22:30 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5ED98.dip.t-dialin.net [84.165.237.152]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8AG12SZ082072; Sun, 10 Sep 2006 18:01:03 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8AGMQGR075149; Sun, 10 Sep 2006 18:22:26 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Sun, 10 Sep 2006 18:22:45 +0200 From: Alexander Leidinger To: Marcin Cieslak Message-ID: <20060910182245.15a47e35@Magellan.Leidinger.net> In-Reply-To: <450419FA.8040904@saper.info> References: <450419FA.8040904@saper.info> X-Mailer: Sylpheed-Claws 2.4.0 (GTK+ 2.8.20; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Cc: freebsd-emulation@freebsd.org Subject: Re: Bug locating path for linux_mkdir 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: Sun, 10 Sep 2006 16:22:31 -0000 Quoting Marcin Cieslak (Sun, 10 Sep 2006 15:58:18 +0200): > Using linux_base-fc-4_6 Where do you get /compat/linux/usr/bin/gcc from when having FC4 installed? For the LTP tests I use a chroot into linux_dist-gentoo-stage3 because it is a full distribution with all bells and whistles instead only a minimal set of stuff to run the linux programs in the ports collection. Bye, Alexander. -- [After hitting Jenny's boyfriend] Forrest Gump: "Sorry I had a fight in the middle of your Black Panther party" http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 10 16:23:43 2006 Return-Path: X-Original-To: emulation@freebsd.org 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 D75FF16A407 for ; Sun, 10 Sep 2006 16:23:43 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8096343D4C for ; Sun, 10 Sep 2006 16:23:42 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5ED98.dip.t-dialin.net [84.165.237.152]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8AG2Ebu082082; Sun, 10 Sep 2006 18:02:14 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8AGNcOa075362; Sun, 10 Sep 2006 18:23:39 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Sun, 10 Sep 2006 18:23:57 +0200 From: Alexander Leidinger To: Marcin Cieslak Message-ID: <20060910182357.77999aa5@Magellan.Leidinger.net> In-Reply-To: <20060910151734.0d56eb13@Magellan.Leidinger.net> References: <20060910123402.000e1358@Magellan.Leidinger.net> <4503F8A2.1030104@SYSTEM.PL> <20060910144812.6933ffd1@Magellan.Leidinger.net> <45040B68.8010302@SYSTEM.PL> <20060910151734.0d56eb13@Magellan.Leidinger.net> X-Mailer: Sylpheed-Claws 2.4.0 (GTK+ 2.8.20; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Cc: emulation@freebsd.org Subject: Re: remove() problem fixed 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: Sun, 10 Sep 2006 16:23:43 -0000 Quoting Alexander Leidinger (Sun, 10 Sep 2006 15:17:34 +0200): > > Now unlink() gets EISDIR instead of EPERM and remove() is able > > to recover. > > I will give it a try (after the bgfsck finishes). Committed to -current... I try to remember to request MFC approval after 3 days, I forgot to add a MFC line in the commit log. Feel free to remind me. Bye, Alexander. -- Zapp: You win again, gravity! http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 10 17:01:47 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org 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 8165016A40F for ; Sun, 10 Sep 2006 17:01:47 +0000 (UTC) (envelope-from saper@SYSTEM.PL) Received: from mail01.ish.de (pip250.ish.de [80.69.98.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB4D443D4C for ; Sun, 10 Sep 2006 17:01:46 +0000 (GMT) (envelope-from saper@SYSTEM.PL) Received: from [81.210.201.87] (account saper@iesy.net HELO saperski.saper.info) by mail-fe-02.mail01.ish.de (CommuniGate Pro SMTP 5.0.6) with ESMTPSA id 66626879; Sun, 10 Sep 2006 19:01:44 +0200 Received: from [127.0.0.1] (saperski.saper.info [127.0.0.1]) by saperski.saper.info (8.13.8/8.13.8) with ESMTP id k8AH1YFD072663 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sun, 10 Sep 2006 19:01:37 +0200 (CEST) (envelope-from saper@SYSTEM.PL) Message-ID: <450444EE.1070708@SYSTEM.PL> Date: Sun, 10 Sep 2006 19:01:34 +0200 From: Marcin Cieslak User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.4) Gecko/20060721 SeaMonkey/1.0.2 MIME-Version: 1.0 To: Alexander Leidinger References: <450419FA.8040904@saper.info> <20060910182245.15a47e35@Magellan.Leidinger.net> In-Reply-To: <20060910182245.15a47e35@Magellan.Leidinger.net> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@freebsd.org Subject: Re: Bug locating path for linux_mkdir 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: Sun, 10 Sep 2006 17:01:47 -0000 It is linux_devtools-8.0_5. I just noticed is should really go away... However going to use linux_dist-gentoo-stage3 means giving up fc4, that's a bit inconvinient (I finally made everything working properly by installing fc4). -- << Marcin Cieslak // saper@system.pl >> From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 10 17:47:03 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org 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 D759516A412 for ; Sun, 10 Sep 2006 17:47:03 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F81F43D5E for ; Sun, 10 Sep 2006 17:47:02 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5ED98.dip.t-dialin.net [84.165.237.152]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8AHPYRs082351; Sun, 10 Sep 2006 19:25:34 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8AHkxdr087038; Sun, 10 Sep 2006 19:46:59 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Sun, 10 Sep 2006 19:47:18 +0200 From: Alexander Leidinger To: Marcin Cieslak Message-ID: <20060910194718.52e5f911@Magellan.Leidinger.net> In-Reply-To: <450444EE.1070708@SYSTEM.PL> References: <450419FA.8040904@saper.info> <20060910182245.15a47e35@Magellan.Leidinger.net> <450444EE.1070708@SYSTEM.PL> X-Mailer: Sylpheed-Claws 2.4.0 (GTK+ 2.8.20; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Cc: freebsd-emulation@freebsd.org Subject: Re: Bug locating path for linux_mkdir 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: Sun, 10 Sep 2006 17:47:03 -0000 Quoting Marcin Cieslak (Sun, 10 Sep 2006 19:01:34 +0200): > It is linux_devtools-8.0_5. I just noticed is should really go away... > > However going to use linux_dist-gentoo-stage3 means giving up fc4, > that's a bit inconvinient (I finally made everything working properly > by installing fc4). I have FC4 in /compat/linux (default install) and gentoo-stage 3 in /usr/local/gentoo-stage3 (default install). As long as you use linux_dist-XXX instead of linux_base-XXX, you don't get into trouble. To test things, I copy stuff into /usr/local/gentoo-stage3/... and do a "chroot /usr/local/gentoo-stage3 bash". Bye, Alexander. -- On nights such as this, evil deeds are done. And good deeds, of course. But mostly evil deeds. (Wyrd Sisters) http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 10 18:21:00 2006 Return-Path: X-Original-To: emulation@freebsd.org 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 DE69D16A403 for ; Sun, 10 Sep 2006 18:21:00 +0000 (UTC) (envelope-from saper@SYSTEM.PL) Received: from mail01.ish.de (pip252.ish.de [80.69.98.252]) by mx1.FreeBSD.org (Postfix) with ESMTP id F05E843DA6 for ; Sun, 10 Sep 2006 18:15:11 +0000 (GMT) (envelope-from saper@SYSTEM.PL) Received: from [81.210.201.87] (account saper@iesy.net HELO saperski.saper.info) by mail-fe-01.mail01.ish.de (CommuniGate Pro SMTP 5.0.6) with ESMTPSA id 75468517; Sun, 10 Sep 2006 20:15:09 +0200 Received: from [127.0.0.1] (saperski.saper.info [127.0.0.1]) by saperski.saper.info (8.13.8/8.13.8) with ESMTP id k8AIEp6K002645 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sun, 10 Sep 2006 20:14:54 +0200 (CEST) (envelope-from saper@SYSTEM.PL) Message-ID: <45045617.9010508@SYSTEM.PL> Date: Sun, 10 Sep 2006 20:14:47 +0200 From: Marcin Cieslak User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.4) Gecko/20060721 SeaMonkey/1.0.2 MIME-Version: 1.0 To: Alexander Leidinger References: <45041321.6030003@SYSTEM.PL> <20060910181928.342eefaf@Magellan.Leidinger.net> In-Reply-To: <20060910181928.342eefaf@Magellan.Leidinger.net> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Cc: emulation@freebsd.org Subject: Re: /lib/ld-linux.so.2: cannot execute binary file: fix propsal 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: Sun, 10 Sep 2006 18:21:01 -0000 Alexander Leidinger wrote: >> >> In general, I guess ELF shared libraries should be Linux branded as well? > > No, this will not work. You can't start apps which are linked to shared > libs anymore after this. The linux linker expects the to be branded > differently than what you propose here (been there done that months or > years ago). This probably leads to commit/revert wars like http://42.pl/u/lAF :) I have branded /compat/linux/lib/ld-2.3.6.so and it seems to work for me(tm). It would be anyway interesting to know more about branding and its quirks. -- << Marcin Cieslak // saper@system.pl >> From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 10 20:19:26 2006 Return-Path: X-Original-To: emulation@freebsd.org 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 849E916A4DE; Sun, 10 Sep 2006 20:19:26 +0000 (UTC) (envelope-from saper@SYSTEM.PL) Received: from mail01.ish.de (pip251.ish.de [80.69.98.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C0B543D7D; Sun, 10 Sep 2006 20:19:00 +0000 (GMT) (envelope-from saper@SYSTEM.PL) Received: from [81.210.201.87] (account saper@iesy.net HELO saperski.saper.info) by mail-fe-01.mail01.ish.de (CommuniGate Pro SMTP 5.0.6) with ESMTPSA id 75476349; Sun, 10 Sep 2006 22:18:34 +0200 Received: from [127.0.0.1] (saperski.saper.info [127.0.0.1]) by saperski.saper.info (8.13.8/8.13.8) with ESMTP id k8AKIDU2002408 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sun, 10 Sep 2006 22:18:26 +0200 (CEST) (envelope-from saper@SYSTEM.PL) Message-ID: <45047305.7090301@SYSTEM.PL> Date: Sun, 10 Sep 2006 22:18:13 +0200 From: Marcin Cieslak User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.4) Gecko/20060721 SeaMonkey/1.0.2 MIME-Version: 1.0 To: bug-followup@FreeBSD.org, esepecesito@gmail.com Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Cc: emulation@FreeBSD.org Subject: Re: kern/99068: [linux] Linux emulator crashed by java, when calling ioctl(fd,SIOCGIFINDEX,...) 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: Sun, 10 Sep 2006 20:19:26 -0000 A quick patch for this as below (linux.h needs to patched for all architectures). --- linux.h Sun Sep 10 22:03:28 2006 +++ linux.h_new Sun Sep 10 22:02:53 2006 @@ -657,6 +657,7 @@ struct l_sockaddr ifru_hwaddr; l_short ifru_flags[1]; l_int ifru_metric; + l_int ifru_ivalue; l_int ifru_mtu; struct l_ifmap ifru_map; char ifru_slave[LINUX_IFNAMSIZ]; @@ -666,6 +667,7 @@ #define ifr_name ifr_ifrn.ifrn_name /* interface name */ #define ifr_hwaddr ifr_ifru.ifru_hwaddr /* MAC address */ +#define ifr_ifindex ifr_ifru.ifru_ivalue /* Interface index */ /* * poll() --- linux_ioctl.h Sun Sep 10 22:05:48 2006 +++ linux_ioctl.h_new Sun Sep 10 22:05:32 2006 @@ -196,9 +196,10 @@ #define LINUX_SIOCGIFHWADDR 0x8927 #define LINUX_SIOCADDMULTI 0x8931 #define LINUX_SIOCDELMULTI 0x8932 +#define LINUX_SIOCGIFINDEX 0x8933 #define LINUX_IOCTL_SOCKET_MIN LINUX_FIOSETOWN -#define LINUX_IOCTL_SOCKET_MAX LINUX_SIOCDELMULTI +#define LINUX_IOCTL_SOCKET_MAX LINUX_SIOCGIFINDEX /* * Device private ioctl calls --- linux_ioctl.c Sun Sep 10 22:05:48 2006 +++ linux_ioctl.c_new Sun Sep 10 22:08:24 2006 @@ -2239,6 +2239,17 @@ return (copyout(&flags, &ifr->ifr_flags, sizeof(flags))); } +static int +linux_ifindex(struct thread *td, struct ifnet *ifp, struct l_ifreq *ifr) +{ +#if DEBUG + printf("Interface index: %d\n", ifp->if_index); +#endif + l_int index; + index = ifp->if_index; + return (copyout(&index, &ifr->ifr_ifindex, sizeof(index))); +} + #define ARPHRD_ETHER 1 #define ARPHRD_LOOPBACK 772 @@ -2325,6 +2336,7 @@ case LINUX_SIOCSIFADDR: case LINUX_SIOCGIFDSTADDR: case LINUX_SIOCGIFBRDADDR: + case LINUX_SIOCGIFINDEX: case LINUX_SIOCGIFNETMASK: case LINUX_SIOCSIFNETMASK: case LINUX_SIOCGIFMTU: @@ -2421,6 +2433,11 @@ case LINUX_SIOCGIFBRDADDR: args->cmd = OSIOCGIFBRDADDR; error = ioctl(td, (struct ioctl_args *)args); + break; + + case LINUX_SIOCGIFINDEX: + args->cmd = SIOCGIFINDEX; + error = linux_ifindex(td, ifp, (struct l_ifreq *)args->arg); break; case LINUX_SIOCGIFNETMASK: -- << Marcin Cieslak // saper@system.pl >> From owner-freebsd-emulation@FreeBSD.ORG Mon Sep 11 06:20:31 2006 Return-Path: X-Original-To: freebsd-emulation@hub.freebsd.org Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 11FB816A403 for ; Mon, 11 Sep 2006 06:20:31 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B9E9C43D46 for ; Mon, 11 Sep 2006 06:20:30 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k8B6KU6d033638 for ; Mon, 11 Sep 2006 06:20:30 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k8B6KUXm033637; Mon, 11 Sep 2006 06:20:30 GMT (envelope-from gnats) Date: Mon, 11 Sep 2006 06:20:30 GMT Message-Id: <200609110620.k8B6KUXm033637@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: Knut Anders Hatlen Cc: Subject: Re: ports/102897: linux_base-fc-4 - remove() function does not delete empty directories X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Knut Anders Hatlen List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Sep 2006 06:20:31 -0000 The following reply was made to PR ports/102897; it has been noted by GNATS. From: Knut Anders Hatlen To: bug-followup@freebsd.org Cc: saper@system.pl Subject: Re: ports/102897: linux_base-fc-4 - remove() function does not delete empty directories Date: Mon, 11 Sep 2006 08:09:49 +0200 I have applied Marcin's patch to my source tree (RELENG_6_1) and verified that the problem is solved. Thank you very much for fixing it so quickly! -- Knut Anders From owner-freebsd-emulation@FreeBSD.ORG Mon Sep 11 06:39:39 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org 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 134D116A416 for ; Mon, 11 Sep 2006 06:39:39 +0000 (UTC) (envelope-from admin@intron.ac) Received: from intron.ac (unknown [210.51.165.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 364F443D46 for ; Mon, 11 Sep 2006 06:39:37 +0000 (GMT) (envelope-from admin@intron.ac) Received: from localhost (localhost [127.0.0.1]) (uid 1003) by intron.ac with local; Mon, 11 Sep 2006 14:39:32 +0800 id 0010E401.450504A4.00010E53 References: <45041321.6030003@SYSTEM.PL> <20060910181928.342eefaf@Magellan.Leidinger.net> <45045617.9010508@SYSTEM.PL> In-Reply-To: <45045617.9010508@SYSTEM.PL> From: "Intron is my alias on the Internet" To: Marcin Cieslak Date: Mon, 11 Sep 2006 14:39:32 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312"; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Cc: freebsd-emulation@freebsd.org Subject: Re: /lib/ld-linux.so.2: cannot execute binary file: fix propsal 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: Mon, 11 Sep 2006 06:39:39 -0000 Marcin Cieslak wrote: > Alexander Leidinger wrote: > >>> >>> In general, I guess ELF shared libraries should be Linux branded as >>> well? >> >> No, this will not work. You can't start apps which are linked to shared >> libs anymore after this. The linux linker expects the to be branded >> differently than what you propose here (been there done that months or >> years ago). > > This probably leads to commit/revert wars like http://42.pl/u/lAF :) > > I have branded /compat/linux/lib/ld-2.3.6.so and it seems > to work for me(tm). > > It would be anyway interesting to know more about branding and its quirks. > > -- > << Marcin Cieslak // saper@system.pl >> Please note that ld-2.3.3.so and ld-linux.so.2 point to a unique file: -rwxr-xr-x 1 root wheel 98176 4 1 00:52 ld-2.3.3.so lrwxrwxrwx 1 root wheel 11 4 1 00:53 ld-linux.so.2 -> ld-2.3.3.so ld-linux.so.2 is loaded by FreeBSD kernel when a Linux ABI is executed. At the same time, FreeBSD kernel can recognize various brand numbers: #brandelf -l known ELF types are: FreeBSD(9) Linux(3) Solaris(6) SVR4(0) But this doesn't mean ld-linux.so.2 can recogize various brand numeric indications of shared libraries other than ld-linux.so.2. If you mark libc.so.6 with brand "3", you will get: #/compat/linux/bin/ls /compat/linux/bin/ls: error while loading shared libraries: /lib/libc.so.6: ELF file OS ABI invalid When you re-mark libc.so.6 with brand "0", it will work again: #brandelf -f 0 libc.so.6 #/compat/linux/bin/ls ... ... This problem should be owed to ld-linux.so.2, the Linux dynamical linker, not to FreeBSD kernel. ------------------------------------------------------------------------ From Beijing, China From owner-freebsd-emulation@FreeBSD.ORG Mon Sep 11 07:29:34 2006 Return-Path: X-Original-To: emulation@FreeBSD.org 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 73D8C16A51A; Mon, 11 Sep 2006 07:29:34 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7532743D45; Mon, 11 Sep 2006 07:29:33 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5E294.dip.t-dialin.net [84.165.226.148]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8B77tde085733; Mon, 11 Sep 2006 09:07:56 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (webmail.Leidinger.net [192.168.1.102]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8B7TRTh002975; Mon, 11 Sep 2006 09:29:27 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from psbru.cec.eu.int (psbru.cec.eu.int [158.169.131.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Mon, 11 Sep 2006 09:29:16 +0200 Message-ID: <20060911092916.24p6eny5ko04ckwo@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Mon, 11 Sep 2006 09:29:16 +0200 From: Alexander Leidinger To: Marcin Cieslak References: <45047305.7090301@SYSTEM.PL> In-Reply-To: <45047305.7090301@SYSTEM.PL> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-Virus-Scanned: by amavisd-new Cc: emulation@FreeBSD.org, esepecesito@gmail.com, bug-followup@FreeBSD.org Subject: Re: kern/99068: [linux] Linux emulator crashed by java, when calling ioctl(fd,SIOCGIFINDEX,...) 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: Mon, 11 Sep 2006 07:29:34 -0000 Quoting Marcin Cieslak (from Sun, 10 Sep 2006 22:18:13 +0200): > --- linux_ioctl.c Sun Sep 10 22:05:48 2006 > +++ linux_ioctl.c_new Sun Sep 10 22:08:24 2006 > @@ -2239,6 +2239,17 @@ > return (copyout(&flags, &ifr->ifr_flags, sizeof(flags))); > } > > +static int > +linux_ifindex(struct thread *td, struct ifnet *ifp, struct l_ifreq *ifr) > +{ > +#if DEBUG > + printf("Interface index: %d\n", ifp->if_index); Minor issues: we have a linux-debug-printf-something for such purposes. Please have a look at other places in the linux emulation code where DEBUG is used. And it would be nice if it also tells where this message comes from (function name). Bye, Alexander. -- Max told his friend that he'd just as soon not go hiking in the hills. Said he, "I'm an anti-climb Max." http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Mon Sep 11 07:36:37 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org 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 76B9516A415; Mon, 11 Sep 2006 07:36:37 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id A78BA43D45; Mon, 11 Sep 2006 07:36:36 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5E294.dip.t-dialin.net [84.165.226.148]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8B7EtEA085761; Mon, 11 Sep 2006 09:14:56 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (webmail.Leidinger.net [192.168.1.102]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8B7aRsG003973; Mon, 11 Sep 2006 09:36:27 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from psbru.cec.eu.int (psbru.cec.eu.int [158.169.131.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Mon, 11 Sep 2006 09:36:16 +0200 Message-ID: <20060911093616.wnfgseoyogocgksw@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Mon, 11 Sep 2006 09:36:16 +0200 From: Alexander Leidinger To: Intron is my alias on the Internet References: <45041321.6030003@SYSTEM.PL> <20060910181928.342eefaf@Magellan.Leidinger.net> <45045617.9010508@SYSTEM.PL> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-Virus-Scanned: by amavisd-new Cc: Marcin Cieslak , freebsd-emulation@freebsd.org, bsam@freebsd.org Subject: Re: /lib/ld-linux.so.2: cannot execute binary file: fix propsal 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: Mon, 11 Sep 2006 07:36:37 -0000 Quoting Intron is my alias on the Internet (from Mon, =20 11 Sep 2006 14:39:32 +0800): > Marcin Cieslak wrote: > >> Alexander Leidinger wrote: >> >>>> >>>> In general, I guess ELF shared libraries should be Linux branded as wel= l? >>> >>> No, this will not work. You can't start apps which are linked to shared >>> libs anymore after this. The linux linker expects the to be branded >>> differently than what you propose here (been there done that months or >>> years ago). >> >> This probably leads to commit/revert wars like http://42.pl/u/lAF :) This was not a war. I did brand libs myself and had to revert it too. =20 It's a pitfall. >> I have branded /compat/linux/lib/ld-2.3.6.so and it seems >> to work for me(tm). >> >> It would be anyway interesting to know more about branding and its quirks= . >> >> --=20 >> << Marcin Cieslak // saper@system.pl >> > > Please note that ld-2.3.3.so and ld-linux.so.2 point to a unique file: > > -rwxr-xr-x 1 root wheel 98176 4 1 00:52 ld-2.3.3.so > lrwxrwxrwx 1 root wheel 11 4 1 00:53 ld-linux.so.2 -> ld-2.3.3.s= o > > ld-linux.so.2 is loaded by FreeBSD kernel when a Linux ABI is executed. > At the same time, FreeBSD kernel can recognize various brand numbers: > > #brandelf -l > known ELF types are: FreeBSD(9) Linux(3) Solaris(6) SVR4(0) > > But this doesn't mean ld-linux.so.2 can recogize various brand numeric > indications of shared libraries other than ld-linux.so.2. If you mark > libc.so.6 with brand "3", you will get: > > #/compat/linux/bin/ls /compat/linux/bin/ls: error while loading shared > libraries: /lib/libc.so.6: ELF file OS ABI invalid > > When you re-mark libc.so.6 with brand "0", it will work again: > > #brandelf -f 0 libc.so.6 #/compat/linux/bin/ls > ... ... > > This problem should be owed to ld-linux.so.2, the Linux dynamical linker, > not to FreeBSD kernel. Maybe we should only brand ld-linux.so.2 but no other libs. Maybe this =20 will work. Boris, we should play around with this and see if something =20 breaks. If not, we should commit this and close the corresponding PR =20 (linux ldd doesn't work). I don't know if I get time for this before =20 the WE. Bye, Alexander. --=20 HOLY MACRO! http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-emulation@FreeBSD.ORG Mon Sep 11 11:08:00 2006 Return-Path: X-Original-To: freebsd-emulation@FreeBSD.org 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 AAD7516A47B for ; Mon, 11 Sep 2006 11:08:00 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 73FAB43D49 for ; Mon, 11 Sep 2006 11:08:00 +0000 (GMT) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k8BB8040063141 for ; Mon, 11 Sep 2006 11:08:00 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k8BB7xp6063137 for freebsd-emulation@FreeBSD.org; Mon, 11 Sep 2006 11:07:59 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 11 Sep 2006 11:07:59 GMT Message-Id: <200609111107.k8BB7xp6063137@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-emulation@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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: Mon, 11 Sep 2006 11:08:00 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/21463 emulation [linux] Linux compatability mode should not allow setu o kern/77710 emulation [linux] Linux page fault sigcontext information is wro f ports/102474 emulation linux_base-fc-4_8 appears broken, does not allow to ru o kern/102956 emulation [linux] [patch] Add partial support for SO_PEERCRED in 4 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/11165 emulation [ibcs2] IBCS2 doesn't work correctly with PID_MAX 9999 o kern/29698 emulation [linux] [patch] linux ipcs doesn'work o kern/39201 emulation [linux] [patch] ptrace(2) and rfork(RFLINUXTHPN) confu o kern/41543 emulation [patch] feature request: easier wine/w23 support o kern/55835 emulation [linux] [patch] Linux IPC emulation missing SETALL sys a kern/72920 emulation [linux]: path "prefixing" is not done on unix domain s o kern/73777 emulation [linux] [patch] linux emulation: root dir special hand o kern/91293 emulation [svr4] [patch] *Experimental* Update to the SVR4 emula p ports/102897 emulation linux_base-fc-4 - remove() function does not delete em 9 problems total. From owner-freebsd-emulation@FreeBSD.ORG Mon Sep 11 11:57:26 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org 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 AE99616A403 for ; Mon, 11 Sep 2006 11:57:26 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from gw.ipt.ru (gw.ipt.ru [80.253.10.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1593843D4C for ; Mon, 11 Sep 2006 11:57:21 +0000 (GMT) (envelope-from bsam@ipt.ru) Received: from srv.sem.ipt.ru (localhost [127.0.0.1]) by srv.sem.ipt.ru (8.13.8/8.13.8) with ESMTP id k8B8wShN044345; Mon, 11 Sep 2006 12:58:28 +0400 (MSD) (envelope-from bsam@ipt.ru) Received: (from bsam@localhost) by srv.sem.ipt.ru (8.13.8/8.13.8/Submit) id k8B8wJhU044344; Mon, 11 Sep 2006 12:58:19 +0400 (MSD) (envelope-from bsam@ipt.ru) X-Authentication-Warning: srv.sem.ipt.ru: bsam set sender to bsam@ipt.ru using -f To: Alexander Leidinger References: <45041321.6030003@SYSTEM.PL> <20060910181928.342eefaf@Magellan.Leidinger.net> <45045617.9010508@SYSTEM.PL> <20060911093616.wnfgseoyogocgksw@webmail.leidinger.net> From: Boris Samorodov Date: Mon, 11 Sep 2006 12:58:19 +0400 In-Reply-To: <20060911093616.wnfgseoyogocgksw@webmail.leidinger.net> (Alexander Leidinger's message of "Mon, 11 Sep 2006 09:36:16 +0200") Message-ID: <94662804@srv.sem.ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Marcin Cieslak , freebsd-emulation@freebsd.org Subject: Re: /lib/ld-linux.so.2: cannot execute binary file: fix propsal 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: Mon, 11 Sep 2006 11:57:26 -0000 On Mon, 11 Sep 2006 09:36:16 +0200 Alexander Leidinger wrote: > Maybe we should only brand ld-linux.so.2 but no other libs. Maybe this > will work. Boris, we should play around with this and see if something > breaks. If not, we should commit this and close the corresponding PR > (linux ldd doesn't work). I don't know if I get time for this before > the WE. OK. Here is the patch (for tests only, w/o PORTREVISON bump): ----- Index: Makefile =================================================================== RCS file: /home/pcvs/ports/emulators/linux_base-fc4/Makefile,v retrieving revision 1.19 diff -u -r1.19 Makefile --- Makefile 18 Aug 2006 17:02:37 -0000 1.19 +++ Makefile 11 Sep 2006 08:51:17 -0000 @@ -184,6 +184,7 @@ ${WRKSRC}/usr/sbin -type f -print0 | ${XARGS} -0 ${FILE} \ | ${GREP} ELF | ${CUT} -d : -f 1 \ | ${XARGS} ${BRANDELF} -t Linux + @${BRANDELF} -t Linux ${WRKSRC}/lib/ld-linux.so.2 # Restore the status quo for usr/bin/*db4* files @${CHMOD} u-w ${WRKSRC}/usr/bin/*db4* ----- Those who wish to test it, please do. Any feedback is appreciated. Thanks. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve From owner-freebsd-emulation@FreeBSD.ORG Tue Sep 12 11:25:54 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org 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 F0C3216A403; Tue, 12 Sep 2006 11:25:54 +0000 (UTC) (envelope-from admin@intron.ac) Received: from intron.ac (unknown [210.51.165.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3433D43D4C; Tue, 12 Sep 2006 11:25:53 +0000 (GMT) (envelope-from admin@intron.ac) Received: from localhost (localhost [127.0.0.1]) (uid 1003) by intron.ac with local; Tue, 12 Sep 2006 19:25:52 +0800 id 0010E407.45069940.000145AF References: <200609100956.k8A9uD0P094639@repoman.freebsd.org> <20060911193600.7ab43fb6@Magellan.Leidinger.net> <200609111528.49054.jhb@freebsd.org> <20060912073021.pvw7p0mit4w4cs8s@webmail.leidinger.net> <3bbf2fe10609120130l55c4590eha3628e7f1c21d8a7@mail.gmail.com> <3bbf2fe10609120147p343f48a4yeef4ad42a8bbb337@mail.gmail.com> In-Reply-To: <3bbf2fe10609120147p343f48a4yeef4ad42a8bbb337@mail.gmail.com> From: "Intron is my alias on the Internet" To: freebsd-emulation@freebsd.org, freebsd-current@freebsd.org Date: Tue, 12 Sep 2006 19:25:52 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312"; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Cc: Attilio Rao , Alexander Leidinger , John Baldwin Subject: [Updated on 2006-9-12] Linux AIO module, Re: PERFORCE change 105930 for review 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: Tue, 12 Sep 2006 11:25:55 -0000 Download: http://ftp.intron.ac/tmp/linux_aio-20060912.tar.bz2 This update includes: 1. Some minor modifications in comments and debugging messages. 2. Calling uma_zcreate() without the flag UMA_ZONE_NOFREE. Alexander, please commit the only modified file "linux_aio.c" to the Perforce repository. When you commit my module to the CVS repository, please remove the two problems listed in my previous "readme.txt". ------------------------------------------------------------------------ From Beijing, China Attilio Rao wrote: > 2006/9/12, Attilio Rao : >> 2006/9/12, Alexander Leidinger : >> > Quoting John Baldwin (from Mon, 11 Sep 2006 15:28:48 >> -0400): >> > >> > > I've only gotten this message when I've leaked memory in a zone. Do >> you have >> > > an example self-contained kernel module that produces this? >> > >> > Download >> > http://www.Leidinger.net/FreeBSD/linuxolator/linuxolator-p4.diff (or >> > check out the p4-branch) and recompile the aio and linux modules. >> >> You might put the code under "Initialize the new context" >> (linux_io_setup) into the init function for your UMA object, and so >> the destructive pair. >> >> It might not solve your problem, but it is more elegant. > > BTW, the error that you receive effectively happens only on memory leak. > This is called from the keg destructor (uma_core.c). > > Attilio > > > -- > Peace can only be achieved by understanding - A. Einstein From owner-freebsd-emulation@FreeBSD.ORG Tue Sep 12 12:54:29 2006 Return-Path: X-Original-To: emulation@freebsd.org 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 B76EF16A407 for ; Tue, 12 Sep 2006 12:54:29 +0000 (UTC) (envelope-from saper@SYSTEM.PL) Received: from mail01.ish.de (pip252.ish.de [80.69.98.252]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E61E43D6A for ; Tue, 12 Sep 2006 12:54:22 +0000 (GMT) (envelope-from saper@SYSTEM.PL) Received: from [80.69.97.9] (HELO saperski.saper.info) by mail-fe-01.mail01.ish.de (CommuniGate Pro SMTP 5.0.6) with ESMTPS id 75614906 for emulation@freebsd.org; Tue, 12 Sep 2006 14:54:21 +0200 Received: from [127.0.0.1] (saperski.saper.info [127.0.0.1]) by saperski.saper.info (8.13.8/8.13.8) with ESMTP id k8CCjbDt053323 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Tue, 12 Sep 2006 14:45:45 +0200 (CEST) (envelope-from saper@SYSTEM.PL) Message-ID: <4506ABF1.6010407@SYSTEM.PL> Date: Tue, 12 Sep 2006 14:45:37 +0200 From: Marcin Cieslak User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.6) Gecko/20060912 SeaMonkey/1.0.4 MIME-Version: 1.0 To: emulation@freebsd.org Content-Type: multipart/mixed; boundary="------------010009050207000304010904" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: report by LTP: "2.4+ kernel w/o ELF notes? [long] 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: Tue, 12 Sep 2006 12:54:29 -0000 This is a multi-part message in MIME format. --------------010009050207000304010904 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Having finally installed and run ltp I've had a look at this issue. The message comes from tools/top-LTP/proc/sysinfo.c where function init_libproc() tries to find out the number of clock ticks per second (see some discussion at http://comments.gmane.org/gmane.linux.kernel/190241). The message is a bit misleading, I think that PT_NOTE is actually something different - it's a special ELF section that provides Linux-way of doing brandelf(1). Feel free to run "elfdump -n" on any FreeBSD and Linux binary to find out the difference. Nice introduction to PT_NOTE: http://netbsd.org/Documentation/kernel/elf-notes.html On a side note I think that understanding ELF interpreter entry (elfdump -i) and notes is a key to understand ld-linux.2 vs. brandelf issue we discussed previously. Coming back to the problem with clock ticks: Number of clock ticks per second is provided in Linux via auxiliary arguments provided to the application right after its environment. The POSIX way to fetch this information in the application is sysconf(_SC_CLK_TCK). This value is currently fixed on the FreeBSD to 128. I wrote a small program to read auxiliary arguments (attached). Linux binary run under FreeBSD returns: % ./linux_t program headers for program [0x00000003], 0x08048034 size of program header entry [0x00000004], 0x00000020 number of program headers [0x00000005], 0x00000008 system page size [0x00000006], 0x00001000 flags [0x00000008], 0x00000000 entry point of program [0x00000009], 0x08048320 base address of interpreter [0x00000007], 0x48049000 real uid [0x0000000b], 0x000000a9 effective uid [0x0000000c], 0x000000a9 real gid [0x0000000d], 0x0000000a effective gid [0x0000000e], 0x0000000a Linux binary run under FC3 on sparc64 gives: arch dependent hints at CPU capabilities [0x00000010], 0x0000001f system page size [0x00000006], 0x00002000 frequency at which times() increments [0x00000011], 0x00000064 program headers for program [0x00000003], 0x00010034 size of program header entry [0x00000004], 0x00000020 number of program headers [0x00000005], 0x00000007 base address of interpreter [0x00000007], 0x70000000 flags [0x00000008], 0x00000000 entry point of program [0x00000009], 0x00010310 real uid [0x0000000b], 0x000012ad effective uid [0x0000000c], 0x000012ad real gid [0x0000000d], 0x000012ad effective gid [0x0000000e], 0x000012ad unknown [0x00000017], 0x00000000 Linux binary on 32-bit i386 on OpenSuSE 10.0: arch dependent hints at CPU capabilities [0x00000010], 0x0383fbff system page size [0x00000006], 0x00001000 frequency at which times() increments [0x00000011], 0x00000064 program headers for program [0x00000003], 0x08048034 size of program header entry [0x00000004], 0x00000020 number of program headers [0x00000005], 0x00000008 base address of interpreter [0x00000007], 0x40000000 flags [0x00000008], 0x00000000 entry point of program [0x00000009], 0x08048320 real uid [0x0000000b], 0x000003e8 effective uid [0x0000000c], 0x000003e8 real gid [0x0000000d], 0x00000064 effective gid [0x0000000e], 0x00000064 unknown [0x00000017], 0x00000000 string identifying CPU for optimizations [0x0000000f], 0xbfd4356b I guess that some CPU-optimizing programs could benefit from adding AT_PLATFORM, AT_HWCAP and AT_CLKTCK. I guess that adding AT_CLKTCK should be just something like adding one line in elf_linux_fixup() of ${arch}/linux/linux_sysvec.c. Adding "AUXARGS_ENTRY(pos, 17, 100)" before AUXARGS_ENTRY(pos, AT_NULL...) at least silences the ltp test program. Therefore we should put implementing of AT_PLATFORM, AT_HWCAP, AT_CLKTCK and possibly AT_SECURE on our TO-DO list. It may help us to deal with glibc incompatibilities. -- << Marcin Cieslak // saper@system.pl >> --------------010009050207000304010904 Content-Type: text/plain; name="t.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="t.c" #include #include "linux_elf.h" #define AT_EOF ((unsigned long)0xFFFFFFFF) struct nmap { unsigned long nm_id; const char *nm_name; } note_map[] = { {AT_NULL, "end of vector"}, {AT_IGNORE, "entry should be ignored"}, {AT_EXECFD, "file descriptor of program"}, {AT_PHDR, "program headers for program"}, {AT_PHENT, "size of program header entry"}, {AT_PHNUM, "number of program headers"}, {AT_PAGESZ, "system page size"}, {AT_BASE, "base address of interpreter"}, {AT_FLAGS, "flags"}, {AT_ENTRY, "entry point of program"}, {AT_NOTELF, "program is not ELF"}, {AT_UID, "real uid"}, {AT_EUID, "effective uid"}, {AT_GID, "real gid"}, {AT_EGID, "effective gid"}, {AT_PLATFORM, "string identifying CPU for optimizations"}, {AT_HWCAP, "arch dependent hints at CPU capabilities"}, {AT_CLKTCK, "frequency at which times() increments"}, {AT_EOF, "unknown"}, }; int main(int argc, char *argv[], char *environ[]) { unsigned long *ep = (unsigned long *) environ; struct nmap *search; int i; while(*ep++); while (*ep) { for (search = note_map; search->nm_id != AT_EOF; search ++) if (search->nm_id == ep[0]) break; printf("%s [0x%08lx], 0x%08lx\n", search->nm_name, ep[0], ep[1]); ep+=2 ; } } --------------010009050207000304010904-- From owner-freebsd-emulation@FreeBSD.ORG Wed Sep 13 12:35:46 2006 Return-Path: X-Original-To: emulation@freebsd.org 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 987A516A631 for ; Wed, 13 Sep 2006 12:35:46 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id B3F3843D72 for ; Wed, 13 Sep 2006 12:35:38 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5D763.dip.t-dialin.net [84.165.215.99]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8DCDY4X001830; Wed, 13 Sep 2006 14:13:34 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (webmail.Leidinger.net [192.168.1.102]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8DCZW0J050980; Wed, 13 Sep 2006 14:35:32 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from psbru.cec.eu.int (psbru.cec.eu.int [158.169.131.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Wed, 13 Sep 2006 14:35:21 +0200 Message-ID: <20060913143521.9jf3a85qkocww4c4@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Wed, 13 Sep 2006 14:35:21 +0200 From: Alexander Leidinger To: Marcin Cieslak References: <4506ABF1.6010407@SYSTEM.PL> In-Reply-To: <4506ABF1.6010407@SYSTEM.PL> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-Virus-Scanned: by amavisd-new Cc: emulation@freebsd.org Subject: Re: report by LTP: "2.4+ kernel w/o ELF notes? [long] 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: Wed, 13 Sep 2006 12:35:46 -0000 Quoting Marcin Cieslak (from Tue, 12 Sep 2006 14:45:37 +0200): > Having finally installed and run ltp I've had a look at this issue. I added a link to your mail to the wiki. I also added the results of the 2.6.16 testrun (as far as it runs). Bye, Alexander. -- We have lingered long enough on the shores of the Cosmic Ocean. -- Carl Sagan http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Wed Sep 13 14:37:59 2006 Return-Path: X-Original-To: emulation@freebsd.org 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 4138016A407 for ; Wed, 13 Sep 2006 14:37:59 +0000 (UTC) (envelope-from saper@SYSTEM.PL) Received: from mail01.ish.de (pip251.ish.de [80.69.98.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id A2EBE43D45 for ; Wed, 13 Sep 2006 14:37:58 +0000 (GMT) (envelope-from saper@SYSTEM.PL) Received: from [80.69.97.9] (HELO saperski.saper.info) by mail-fe-01.mail01.ish.de (CommuniGate Pro SMTP 5.0.6) with ESMTPS id 75710774 for emulation@freebsd.org; Wed, 13 Sep 2006 16:37:56 +0200 Received: from [127.0.0.1] (saperski.saper.info [127.0.0.1]) by saperski.saper.info (8.13.8/8.13.8) with ESMTP id k8DEbpGL002342 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Wed, 13 Sep 2006 16:37:54 +0200 (CEST) (envelope-from saper@SYSTEM.PL) Message-ID: <450817BF.8010402@SYSTEM.PL> Date: Wed, 13 Sep 2006 16:37:51 +0200 From: Marcin Cieslak User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.6) Gecko/20060912 SeaMonkey/1.0.4 MIME-Version: 1.0 To: emulation@freebsd.org References: <4506ABF1.6010407@SYSTEM.PL> <20060913143521.9jf3a85qkocww4c4@webmail.leidinger.net> In-Reply-To: <20060913143521.9jf3a85qkocww4c4@webmail.leidinger.net> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: LTP: reboot02 patch 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: Wed, 13 Sep 2006 14:37:59 -0000 Thanks! Can you also fix a link to your patch? I think one directory is missing.... Attached please also find a patch for linux_reboot(), fixes reboot02. -- << Marcin Cieslak // saper@system.pl >> --- linux_misc.c Wed Sep 13 16:16:56 2006 +++ linux_misc.c_new Wed Sep 13 16:14:10 2006 @@ -1321,6 +1321,9 @@ #define REBOOT_CAD_ON 0x89abcdef #define REBOOT_CAD_OFF 0 #define REBOOT_HALT 0xcdef0123 +#define REBOOT_RESTART 0x01234567 +#define REBOOT_RESTART2 0xA1B2C3D4 +#define REBOOT_POWEROFF 0x4321FEDC int linux_reboot(struct thread *td, struct linux_reboot_args *args) @@ -1331,10 +1334,24 @@ if (ldebug(reboot)) printf(ARGS(reboot, "0x%x"), args->cmd); #endif - if (args->cmd == REBOOT_CAD_ON || args->cmd == REBOOT_CAD_OFF) - return (0); - bsd_args.opt = (args->cmd == REBOOT_HALT) ? RB_HALT : 0; - return (reboot(td, &bsd_args)); + switch(args->cmd) { + case REBOOT_CAD_ON: + case REBOOT_CAD_OFF: + return suser(td); + case REBOOT_HALT: + bsd_args.opt = RB_HALT; + break; + case REBOOT_RESTART: + case REBOOT_RESTART2: + bsd_args.opt = 0; + break; + case REBOOT_POWEROFF: + bsd_args.opt = RB_POWEROFF; + break; + default: + return EINVAL; + } + return reboot(td, &bsd_args); } #ifndef __alpha__ From owner-freebsd-emulation@FreeBSD.ORG Wed Sep 13 14:53:05 2006 Return-Path: X-Original-To: emulation@freebsd.org 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 EBA4316A407 for ; Wed, 13 Sep 2006 14:53:05 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id C2AB143D79 for ; Wed, 13 Sep 2006 14:53:00 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5D763.dip.t-dialin.net [84.165.215.99]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8DEUpLo002298; Wed, 13 Sep 2006 16:30:52 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (webmail.Leidinger.net [192.168.1.102]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8DEqftk070304; Wed, 13 Sep 2006 16:52:41 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from psbru.cec.eu.int (psbru.cec.eu.int [158.169.131.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Wed, 13 Sep 2006 16:52:30 +0200 Message-ID: <20060913165230.a3hprej728s80044@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Wed, 13 Sep 2006 16:52:30 +0200 From: Alexander Leidinger To: Marcin Cieslak References: <4506ABF1.6010407@SYSTEM.PL> <20060913143521.9jf3a85qkocww4c4@webmail.leidinger.net> <450817BF.8010402@SYSTEM.PL> In-Reply-To: <450817BF.8010402@SYSTEM.PL> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-Virus-Scanned: by amavisd-new Cc: emulation@freebsd.org Subject: Re: LTP: reboot02 patch 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: Wed, 13 Sep 2006 14:53:06 -0000 Quoting Marcin Cieslak (from Wed, 13 Sep 2006 16:37:51 +0200): > Thanks! Can you also fix a link to your patch? I think one directory is > missing.... Done. 8-/ > Attached please also find a patch for linux_reboot(), fixes reboot02. Nice. Will be put into the list of things to test... Bye, Alexander. -- Animals can be driven crazy by putting too many in too small a pen. Homo sapiens is the only animal that voluntarily does this to himself. -- Lazarus Long http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Wed Sep 13 16:42:06 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org 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 E22F916A494 for ; Wed, 13 Sep 2006 16:42:05 +0000 (UTC) (envelope-from daniel.perlman@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.235]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C13543D66 for ; Wed, 13 Sep 2006 16:41:58 +0000 (GMT) (envelope-from daniel.perlman@gmail.com) Received: by wx-out-0506.google.com with SMTP id i27so2448978wxd for ; Wed, 13 Sep 2006 09:41:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:x-google-sender-auth; b=MjdDRDw2IcRhzJ4WP0BO1JSeZc7m7kErMduEUobQLmQ865ky+4BU7sR9v2zt6QB75LegJtLl3kGZxU75Re4/Kr5EHQO+xUcf9SEjzL3j8tSY1hhxDbg+Rc1N6k97+CBw8PHEE69mlnH2JxI60PmuL/iJ1ILHe0zE2Vmu/YVzoGU= Received: by 10.90.106.18 with SMTP id e18mr2825467agc; Wed, 13 Sep 2006 09:41:58 -0700 (PDT) Received: by 10.90.106.11 with HTTP; Wed, 13 Sep 2006 09:41:58 -0700 (PDT) Message-ID: Date: Wed, 13 Sep 2006 09:41:58 -0700 From: "Dan Perlman" Sender: daniel.perlman@gmail.com To: freebsd-emulation@freebsd.org MIME-Version: 1.0 X-Google-Sender-Auth: a7e9c62406264857 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Announcing Open Beta Win4BSD 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: Wed, 13 Sep 2006 16:42:06 -0000 Dear Member of FreeBSD Community, We are happy to announce the launch of an open beta for our new product, Win4BSD Pro Desktop. Win4BSD Pro Desktop will allow FreeBSD/PCBSD users to run Windows applications and desktops from their FreeBSD/PCBSD desktop in true Windows. Win4BSD Pro Desktop joins a product family that includes Win4Lin Pro Desktop and Win4Lin Virtual Desktop Server. Our products are designed to make virtualization solve real-world problems for our users. Win4BSD Pro Desktop is a product of Virtual Bridges, Inc., a multi-platform solutions company. To download the beta of Win4BSD Pro Desktop, please visit ftp://ftp.win4bsd.com/pub/testing/pro/ Please read the Users Guide and Release Notes carefully before installing the product. The beta evaluation will be valid for 14 days. NOTE: Win4BSD Pro only supports i386 host architectures at the moment; amd64 host architectures are not yet supported. You can check your host architecture type by running the command uname -m Community forums for supporting, reporting issues and discussing functionality for Win4BSD have been established at http://win4bsd.com/forums/. Please use these forums. We're looking forward to your feedback and being part of this community. Thanks, Win4BSD Team From owner-freebsd-emulation@FreeBSD.ORG Wed Sep 13 20:46:24 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org 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 9FB6116A415 for ; Wed, 13 Sep 2006 20:46:24 +0000 (UTC) (envelope-from saper@SYSTEM.PL) Received: from mail01.ish.de (pip249.ish.de [80.69.98.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC99B43D4C for ; Wed, 13 Sep 2006 20:46:23 +0000 (GMT) (envelope-from saper@SYSTEM.PL) Received: from [81.210.201.87] (account saper@iesy.net HELO saperski.saper.info) by mail-fe-02.mail01.ish.de (CommuniGate Pro SMTP 5.0.6) with ESMTPSA id 66872964; Wed, 13 Sep 2006 22:46:21 +0200 Received: from [127.0.0.1] (saperski.saper.info [127.0.0.1]) by saperski.saper.info (8.13.8/8.13.8) with ESMTP id k8DKjubK039228 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Wed, 13 Sep 2006 22:46:14 +0200 (CEST) (envelope-from saper@SYSTEM.PL) Message-ID: <45086E03.1080805@SYSTEM.PL> Date: Wed, 13 Sep 2006 22:45:55 +0200 From: Marcin Cieslak User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.6) Gecko/20060912 SeaMonkey/1.0.4 MIME-Version: 1.0 To: Dan Perlman References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@freebsd.org Subject: Re: Announcing Open Beta Win4BSD 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: Wed, 13 Sep 2006 20:46:24 -0000 Dan Perlman wrote: > To download the beta of Win4BSD Pro Desktop, please visit > ftp://ftp.win4bsd.com/pub/testing/pro/ > We're looking forward to your feedback and being part of this community. Cmd: RETR Win4BSD-1.0_63907_i386-freebsd.tbz 550: The load was 4.20 when you connected. We do not allow downloads by anonymous users when the load is that high. Uploads are always allowed. I think that what community needs is BitTorrent :) -- << Marcin Cieslak // saper@system.pl >> From owner-freebsd-emulation@FreeBSD.ORG Wed Sep 13 21:53:57 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org 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 6C7B116A417 for ; Wed, 13 Sep 2006 21:53:57 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from sccmmhc91.asp.att.net (sccmmhc91.asp.att.net [204.127.203.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id AFC2843D70 for ; Wed, 13 Sep 2006 21:53:54 +0000 (GMT) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net ([12.207.12.9]) by sccmmhc91.asp.att.net (sccmmhc91) with ESMTP id <20060913215352m9100sn2hve>; Wed, 13 Sep 2006 21:53:53 +0000 Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.13.6/8.13.6) with ESMTP id k8DLrlg6078601; Wed, 13 Sep 2006 16:53:48 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.13.6/8.13.6/Submit) id k8DLrhFG078600; Wed, 13 Sep 2006 16:53:43 -0500 (CDT) (envelope-from brooks) Date: Wed, 13 Sep 2006 16:53:43 -0500 From: Brooks Davis To: Marcin Cieslak Message-ID: <20060913215343.GA78480@lor.one-eyed-alien.net> References: <45086E03.1080805@SYSTEM.PL> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wRRV7LY7NUeQGEoC" Content-Disposition: inline In-Reply-To: <45086E03.1080805@SYSTEM.PL> User-Agent: Mutt/1.5.11 Cc: Dan Perlman , freebsd-emulation@freebsd.org Subject: Re: Announcing Open Beta Win4BSD 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: Wed, 13 Sep 2006 21:53:57 -0000 --wRRV7LY7NUeQGEoC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 13, 2006 at 10:45:55PM +0200, Marcin Cieslak wrote: > Dan Perlman wrote: > >To download the beta of Win4BSD Pro Desktop, please visit > >ftp://ftp.win4bsd.com/pub/testing/pro/ >=20 > >We're looking forward to your feedback and being part of this community. >=20 > Cmd: RETR Win4BSD-1.0_63907_i386-freebsd.tbz > 550: The load was 4.20 when you connected. We do not allow downloads > by anonymous users when the load is that high. Uploads are always > allowed. >=20 > I think that what community needs is BitTorrent :) Or if they used a web server, they could use CoBlitz: http://codeen.cs.princeton.edu/coblitz/ -- Brooks --wRRV7LY7NUeQGEoC Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFCH3mXY6L6fI4GtQRAgaWAKCAOxi6XcUzRY4nH7LEaK3qkvlgEACeKshB qdE0bRHuApaVdrQ8hdv5m9A= =MEIP -----END PGP SIGNATURE----- --wRRV7LY7NUeQGEoC-- From owner-freebsd-emulation@FreeBSD.ORG Wed Sep 13 23:32:18 2006 Return-Path: X-Original-To: emulation@freebsd.org 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 1221716A5F4 for ; Wed, 13 Sep 2006 23:32:18 +0000 (UTC) (envelope-from saper@SYSTEM.PL) Received: from mail01.ish.de (pip252.ish.de [80.69.98.252]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B89A43D45 for ; Wed, 13 Sep 2006 23:32:17 +0000 (GMT) (envelope-from saper@SYSTEM.PL) Received: from [81.210.201.87] (account saper@iesy.net HELO saperski.saper.info) by mail-fe-01.mail01.ish.de (CommuniGate Pro SMTP 5.0.6) with ESMTPSA id 75750021 for emulation@freebsd.org; Thu, 14 Sep 2006 01:32:15 +0200 Received: from [127.0.0.1] (saperski.saper.info [127.0.0.1]) by saperski.saper.info (8.13.8/8.13.8) with ESMTP id k8DNVxRR041467 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Thu, 14 Sep 2006 01:32:08 +0200 (CEST) (envelope-from saper@SYSTEM.PL) Message-ID: <450894EF.1020101@SYSTEM.PL> Date: Thu, 14 Sep 2006 01:31:59 +0200 From: Marcin Cieslak User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.6) Gecko/20060912 SeaMonkey/1.0.4 MIME-Version: 1.0 To: emulation@freebsd.org Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: linux_waitpid() hangs: sqlplus on exit of external editor 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: Wed, 13 Sep 2006 23:32:18 -0000 Oracle sqlplus utility may invoke external $EDITOR to edit last query. Under linux emulation sqlplus hangs however after it returns from the editor. It does not matter if binary is FreeBSD (tried /usr/bin/vi, /usr/bin/ed or Linux - tried /compat/linux/bin/ls). Tried Oracle XE sqlplus as well as Oracle Instant Client sqlplus. Sample session (/usr/bin/ed as the editor): % ktrace sqlplus / as sysdba SQL*Plus: Release 10.2.0.1.0 - Production on Thu Sep 14 01:13:09 2006 Copyright (c) 1982, 2005, Oracle. All rights reserved. Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production SQL> set hea off SQL> select * from dual; X SQL> edit Wrote file afiedt.buf 21 ,p select * from dual / w 21 q ps: UID PID PPID CPU PRI NI VSZ RSS MWCHAN STAT TT TIME COMMAND 99 41365 41350 0 8 0 20528 6996 wait I+ p1 0:00.09 sqlplus / as sysdba Child process is gone (child process trace shows normal exit(0)). End of linux_kdump (invoking process only). 41365 sqlplus CALL write(0x1,0x490d0000,0x16) 41365 sqlplus GIO fd 1 wrote 22 bytes "Wrote file afiedt.buf " 41365 sqlplus RET write 22/0x16 41365 sqlplus CALL linux_brk(0x80fc000) 41365 sqlplus RET linux_brk 135249920/0x80fc000 41365 sqlplus CALL linux_fork 41365 sqlplus RET linux_fork 41367/0xa197 41365 sqlplus CALL linux_rt_sigaction(0x2,0xbfbfb294,0xbfbfb208,0x8) 41365 sqlplus RET linux_rt_sigaction 0 41365 sqlplus CALL linux_rt_sigaction(0x3,0xbfbfb294,0xbfbfb208,0x8) 41365 sqlplus RET linux_rt_sigaction 0 41365 sqlplus CALL linux_rt_sigaction(0x11,0xbfbfb294,0xbfbfb208,0x8) 41365 sqlplus RET linux_rt_sigaction 0 41365 sqlplus CALL linux_waitpid(0xa197,0xbfbfb648,0) I have attempted to reproduce the problem using system() or fork() and execve() to reproduce this behaviour behaves correctly, i.e. Linux binary invoking FreeBSD binary works fine. Any ideas where the problem might be? -- << Marcin Cieslak // saper@system.pl >> From owner-freebsd-emulation@FreeBSD.ORG Sat Sep 16 14:15:04 2006 Return-Path: X-Original-To: emulation@freebsd.org 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 5612616A412 for ; Sat, 16 Sep 2006 14:15:04 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9988143D45 for ; Sat, 16 Sep 2006 14:15:02 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5ECD7.dip.t-dialin.net [84.165.236.215]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8GDqL10027562; Sat, 16 Sep 2006 15:52:21 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8GEEtwm073293; Sat, 16 Sep 2006 16:14:56 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Sat, 16 Sep 2006 16:15:24 +0200 From: Alexander Leidinger To: Marcin Cieslak Message-ID: <20060916161524.17b6966f@Magellan.Leidinger.net> In-Reply-To: <450817BF.8010402@SYSTEM.PL> References: <4506ABF1.6010407@SYSTEM.PL> <20060913143521.9jf3a85qkocww4c4@webmail.leidinger.net> <450817BF.8010402@SYSTEM.PL> X-Mailer: Sylpheed-Claws 2.4.0 (GTK+ 2.8.20; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Cc: emulation@freebsd.org Subject: Re: LTP: reboot02 patch 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, 16 Sep 2006 14:15:04 -0000 Quoting Marcin Cieslak (Wed, 13 Sep 2006 16:37:51 +0200): > Attached please also find a patch for linux_reboot(), fixes reboot02. Committed to -current with some changes (added checks for the linux magic values). Bye, Alexander. -- WHERE CAN THE MATTER BE Oh, dear, where can the matter be When it's converted to energy? There is a slight loss of parity. Johnny's so long at the fair. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Sat Sep 16 14:37:24 2006 Return-Path: X-Original-To: emulation@freebsd.org 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 B8B3716A407 for ; Sat, 16 Sep 2006 14:37:24 +0000 (UTC) (envelope-from saper@SYSTEM.PL) Received: from mail01.ish.de (pip251.ish.de [80.69.98.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A74943D5C for ; Sat, 16 Sep 2006 14:37:23 +0000 (GMT) (envelope-from saper@SYSTEM.PL) Received: from [81.210.201.87] (account saper@iesy.net HELO saperski.saper.info) by mail-fe-01.mail01.ish.de (CommuniGate Pro SMTP 5.0.6) with ESMTPSA id 75975032 for emulation@freebsd.org; Sat, 16 Sep 2006 16:37:19 +0200 Received: from [127.0.0.1] (saperski.saper.info [127.0.0.1]) by saperski.saper.info (8.13.8/8.13.8) with ESMTP id k8GEb3US007094 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Sat, 16 Sep 2006 16:37:14 +0200 (CEST) (envelope-from saper@SYSTEM.PL) Message-ID: <450C0C0E.8060402@SYSTEM.PL> Date: Sat, 16 Sep 2006 16:37:02 +0200 From: Marcin Cieslak User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.6) Gecko/20060912 SeaMonkey/1.0.4 MIME-Version: 1.0 To: emulation@freebsd.org Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Fix for errno 2 - expected 14 (EFAULT) problems 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, 16 Sep 2006 14:37:24 -0000 LTP tests illegal memory by mmaping one-byte area region with PROT_NONE. Old FreeBSD (before 1.333 version of /sys/vm/vm_map.c) always silently allowed reada access - see http://www.freebsd.org/cgi/query-pr.cgi?pr=64573. Linux emulation (initial version of linux_machdep.c) always added PROT_READ to match FreeBSD behaviour, I think this is no longer necessary. The fix for i386 is easy: --- /usr/home/saper/b/src/sys/i386/linux/linux_machdep.c Fri Aug 5 01:25:32 2005 +++ /sys/i386/linux/linux_machdep.c Sat Sep 16 15:13:47 2006 @@ -549,7 +549,7 @@ bsd_args.len = linux_args->len; } - bsd_args.prot = linux_args->prot | PROT_READ; /* always required */ + bsd_args.prot = linux_args->prot; if (linux_args->flags & LINUX_MAP_ANON) bsd_args.fd = -1; else However comment in the amd64 file indicates that for some Java applications PROT_EXEC should be added as well. I think we can remove PROT_READ also from amd64 part anyway. This fixes access03, chdir04, chmod06, chown04, chroot03 and many others. -- << Marcin Cieslak // saper@system.pl >> From owner-freebsd-emulation@FreeBSD.ORG Sat Sep 16 14:51:16 2006 Return-Path: X-Original-To: emulation@freebsd.org 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 7A69C16A417 for ; Sat, 16 Sep 2006 14:51:16 +0000 (UTC) (envelope-from saper@SYSTEM.PL) Received: from mail01.ish.de (pip250.ish.de [80.69.98.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id D7A0143D53 for ; Sat, 16 Sep 2006 14:51:15 +0000 (GMT) (envelope-from saper@SYSTEM.PL) Received: from [81.210.201.87] (account saper@iesy.net HELO saperski.saper.info) by mail-fe-02.mail01.ish.de (CommuniGate Pro SMTP 5.0.6) with ESMTPSA id 67084108 for emulation@freebsd.org; Sat, 16 Sep 2006 16:51:14 +0200 Received: from [127.0.0.1] (saperski.saper.info [127.0.0.1]) by saperski.saper.info (8.13.8/8.13.8) with ESMTP id k8GEp6ZP007266 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Sat, 16 Sep 2006 16:51:09 +0200 (CEST) (envelope-from saper@SYSTEM.PL) Message-ID: <450C0F5A.30804@SYSTEM.PL> Date: Sat, 16 Sep 2006 16:51:06 +0200 From: Marcin Cieslak User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.6) Gecko/20060912 SeaMonkey/1.0.4 MIME-Version: 1.0 To: emulation@freebsd.org References: <450C0C0E.8060402@SYSTEM.PL> In-Reply-To: <450C0C0E.8060402@SYSTEM.PL> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: Fix for errno 2 - expected 14 (EFAULT) problems 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, 16 Sep 2006 14:51:16 -0000 ... however it breaks mmap07 (BSD mmap succeeds), writev03 and writev04 - BSD mmap with PROT_NONE and MAP_PRIVATE fails. -- << Marcin Cieslak // saper@system.pl >> From owner-freebsd-emulation@FreeBSD.ORG Sat Sep 16 15:18:25 2006 Return-Path: X-Original-To: emulation@freebsd.org 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 4F0A516A407; Sat, 16 Sep 2006 15:18:25 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id A7BE043D53; Sat, 16 Sep 2006 15:18:16 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5ECD7.dip.t-dialin.net [84.165.236.215]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8GEtaJH027794; Sat, 16 Sep 2006 16:55:36 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8GFIBRj082146; Sat, 16 Sep 2006 17:18:12 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Sat, 16 Sep 2006 17:18:40 +0200 From: Alexander Leidinger To: Marcin Cieslak Message-ID: <20060916171840.5dd744b7@Magellan.Leidinger.net> In-Reply-To: <450C0C0E.8060402@SYSTEM.PL> References: <450C0C0E.8060402@SYSTEM.PL> X-Mailer: Sylpheed-Claws 2.4.0 (GTK+ 2.8.20; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Cc: emulation@freebsd.org, sobomax@freebsd.org Subject: Re: Fix for errno 2 - expected 14 (EFAULT) problems 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, 16 Sep 2006 15:18:25 -0000 Quoting Marcin Cieslak (Sat, 16 Sep 2006 16:37:02 +0200): I CCed sobomax@, he committed the code in question. Maxim, do you remember why it is always required as the comment suggests? > > LTP tests illegal memory by mmaping one-byte area region with PROT_NONE. > Old FreeBSD (before 1.333 version of /sys/vm/vm_map.c) always silently allowed > reada access - see http://www.freebsd.org/cgi/query-pr.cgi?pr=64573. > Linux emulation (initial version of linux_machdep.c) always added PROT_READ > to match FreeBSD behaviour, I think this is no longer necessary. > > The fix for i386 is easy: Maxim, Marcin noticed it isn't... some other ones (mmap and writev related) fail now. But at least we have an idea now where to look for the error. > --- /usr/home/saper/b/src/sys/i386/linux/linux_machdep.c Fri Aug 5 > 01:25:32 2005 > +++ /sys/i386/linux/linux_machdep.c Sat Sep 16 15:13:47 2006 > @@ -549,7 +549,7 @@ > bsd_args.len = linux_args->len; > } > > - bsd_args.prot = linux_args->prot | PROT_READ; /* always required */ > + bsd_args.prot = linux_args->prot; > if (linux_args->flags & LINUX_MAP_ANON) > bsd_args.fd = -1; > else > > However comment in the amd64 file indicates that for some Java applications > PROT_EXEC should be added as well. I think we can remove PROT_READ also from > amd64 part anyway. Anyone with an amd64 system out there and willing to test this (with the LTP testsuite as described on http://wiki.freebsd.org/linux-kernel)? Because this doesn't seems to be the final fix, it isn't necessary to test this particular patch, but it would be nice to know if there are some differences between the results on i386 (as can be seen in the wiki) and amd64. > This fixes access03, chdir04, chmod06, chown04, chroot03 and many others. Bye, Alexander. -- Over quota? "du -s * | sort -n " will give you a sorted list of your directory sizes. -- David Scheidt http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Sat Sep 16 16:46:32 2006 Return-Path: X-Original-To: emulation@FreeBSD.org 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 D617B16A4C8; Sat, 16 Sep 2006 16:46:32 +0000 (UTC) (envelope-from sobomax@FreeBSD.org) Received: from sippysoft.com (gk.360sip.com [72.236.70.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 576EA43D7B; Sat, 16 Sep 2006 16:46:07 +0000 (GMT) (envelope-from sobomax@FreeBSD.org) Received: from [192.168.1.47] ([204.244.149.125]) (authenticated bits=0) by sippysoft.com (8.13.6/8.13.6) with ESMTP id k8GGk14S057847 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 16 Sep 2006 09:46:03 -0700 (PDT) (envelope-from sobomax@FreeBSD.org) Message-ID: <450C2A46.9010609@FreeBSD.org> Date: Sat, 16 Sep 2006 09:45:58 -0700 From: Maxim Sobolev Organization: Sippy Software, Inc. User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Alexander Leidinger References: <450C0C0E.8060402@SYSTEM.PL> <20060916171840.5dd744b7@Magellan.Leidinger.net> In-Reply-To: <20060916171840.5dd744b7@Magellan.Leidinger.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: emulation@FreeBSD.org, Marcin Cieslak , Marcel Moolenaar Subject: Re: Fix for errno 2 - expected 14 (EFAULT) problems 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, 16 Sep 2006 16:46:32 -0000 Alexander, Actually it's confusion on your part. This code was there since version 1.1 and long before 1.31 (my change that touched this line): $ cvs ann -r1.30 linux_machdep.c [...] 1.1 (marcel 22-Aug-00): bsd_args.prot = linux_args.prot | PROT_READ; /* always required */ So that you are better to ask marcel about why it is "always required" (if he remembers of course). -Maxim Alexander Leidinger wrote: > Quoting Marcin Cieslak (Sat, 16 Sep 2006 16:37:02 +0200): > > I CCed sobomax@, he committed the code in question. > > Maxim, do you remember why it is always required as the comment suggests? > >> LTP tests illegal memory by mmaping one-byte area region with PROT_NONE. >> Old FreeBSD (before 1.333 version of /sys/vm/vm_map.c) always silently allowed >> reada access - see http://www.freebsd.org/cgi/query-pr.cgi?pr=64573. >> Linux emulation (initial version of linux_machdep.c) always added PROT_READ >> to match FreeBSD behaviour, I think this is no longer necessary. >> >> The fix for i386 is easy: > > Maxim, Marcin noticed it isn't... some other ones (mmap and writev related) > fail now. But at least we have an idea now where to look for the error. > >> --- /usr/home/saper/b/src/sys/i386/linux/linux_machdep.c Fri Aug 5 >> 01:25:32 2005 >> +++ /sys/i386/linux/linux_machdep.c Sat Sep 16 15:13:47 2006 >> @@ -549,7 +549,7 @@ >> bsd_args.len = linux_args->len; >> } >> >> - bsd_args.prot = linux_args->prot | PROT_READ; /* always required */ >> + bsd_args.prot = linux_args->prot; >> if (linux_args->flags & LINUX_MAP_ANON) >> bsd_args.fd = -1; >> else >> >> However comment in the amd64 file indicates that for some Java applications >> PROT_EXEC should be added as well. I think we can remove PROT_READ also from >> amd64 part anyway. > > Anyone with an amd64 system out there and willing to test this (with > the LTP testsuite as described on > http://wiki.freebsd.org/linux-kernel)? Because this doesn't seems to be > the final fix, it isn't necessary to test this particular patch, but it > would be nice to know if there are some differences between the results > on i386 (as can be seen in the wiki) and amd64. > >> This fixes access03, chdir04, chmod06, chown04, chroot03 and many others. > > Bye, > Alexander. > From owner-freebsd-emulation@FreeBSD.ORG Sat Sep 16 17:10:32 2006 Return-Path: X-Original-To: emulation@freebsd.org 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 B944816A407; Sat, 16 Sep 2006 17:10:32 +0000 (UTC) (envelope-from saper@SYSTEM.PL) Received: from mail01.ish.de (pip250.ish.de [80.69.98.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id 993F143D55; Sat, 16 Sep 2006 17:10:31 +0000 (GMT) (envelope-from saper@SYSTEM.PL) Received: from [81.210.201.87] (account saper@iesy.net HELO saperski.saper.info) by mail-fe-02.mail01.ish.de (CommuniGate Pro SMTP 5.0.6) with ESMTPSA id 67091435; Sat, 16 Sep 2006 19:10:30 +0200 Received: from [127.0.0.1] (saperski.saper.info [127.0.0.1]) by saperski.saper.info (8.13.8/8.13.8) with ESMTP id k8GHAJb3007986 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 16 Sep 2006 19:10:21 +0200 (CEST) (envelope-from saper@SYSTEM.PL) Message-ID: <450C2FFB.3050209@SYSTEM.PL> Date: Sat, 16 Sep 2006 19:10:19 +0200 From: Marcin Cieslak User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.6) Gecko/20060912 SeaMonkey/1.0.4 MIME-Version: 1.0 To: Maxim Sobolev , Marcel Moolenaar References: <450C0C0E.8060402@SYSTEM.PL> <20060916171840.5dd744b7@Magellan.Leidinger.net> <450C2A46.9010609@FreeBSD.org> In-Reply-To: <450C2A46.9010609@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Cc: emulation@FreeBSD.org, Alexander Leidinger , Tim Robins Subject: Re: fixing linux mmap() 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, 16 Sep 2006 17:10:32 -0000 Maxim Sobolev wrote: > Actually it's confusion on your part. This code was there since version > 1.1 and long before 1.31 (my change that touched this line): Yes, the code is very old. However things has changed in the FreeBSD mmap() in the meantime, but Linux emulator code was left as it was. I just wondered if we need this PROT_READ thing at all. amd64 code illustrates this confusion even better: /sys/amd64/linux32/linux32_machdep.c 1.1 (tjr 16-Aug-04): /* 1.1 (tjr 16-Aug-04): * XXX i386 Linux always emulator forces PROT_READ on (why?) 1.1 (tjr 16-Aug-04): * so we do the same. We add PROT_EXEC to work around buggy 1.1 (tjr 16-Aug-04): * applications (e.g. Java) that take advantage of the fact 1.1 (tjr 16-Aug-04): * that execute permissions are not enforced by x86 CPUs. 1.1 (tjr 16-Aug-04): */ 1.1 (tjr 16-Aug-04): bsd_args.prot = linux_args->prot | PROT_EXEC | PROT_READ; I *guess* adding PROT_READ is no longer necessary (at least since 1.333 version of /sys/vm/vm_map.c). PROT_EXEC also wonders me, but I lack amd64 hardware and mmap() clue to check this... -- << Marcin Cieslak // saper@system.pl >> From owner-freebsd-emulation@FreeBSD.ORG Sat Sep 16 17:36:47 2006 Return-Path: X-Original-To: emulation@freebsd.org 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 7453016A415 for ; Sat, 16 Sep 2006 17:36:47 +0000 (UTC) (envelope-from saper@SYSTEM.PL) Received: from mail01.ish.de (pip249.ish.de [80.69.98.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D32D43D53 for ; Sat, 16 Sep 2006 17:36:46 +0000 (GMT) (envelope-from saper@SYSTEM.PL) Received: from [81.210.201.87] (account saper@iesy.net HELO saperski.saper.info) by mail-fe-02.mail01.ish.de (CommuniGate Pro SMTP 5.0.6) with ESMTPSA id 67092899 for emulation@freebsd.org; Sat, 16 Sep 2006 19:36:44 +0200 Received: from [127.0.0.1] (saperski.saper.info [127.0.0.1]) by saperski.saper.info (8.13.8/8.13.8) with ESMTP id k8GHabkm008171 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Sat, 16 Sep 2006 19:36:40 +0200 (CEST) (envelope-from saper@SYSTEM.PL) Message-ID: <450C3625.30406@SYSTEM.PL> Date: Sat, 16 Sep 2006 19:36:37 +0200 From: Marcin Cieslak User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.6) Gecko/20060912 SeaMonkey/1.0.4 MIME-Version: 1.0 To: emulation@freebsd.org Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Tests blocking on "fifoor" 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, 16 Sep 2006 17:36:47 -0000 I had a quick look at this. Some tests (dup05, fcntl07B) wait on close() of the O_RDWR fifo. It is usually enough to supply some data to the fifo (located in /tmp/ somewhere) and the test exits cleanly (and usually passes). I don't understand enough of FIFO blocking/non-blocking behaviour, but generally it's normal that process blocks when no other process is ready to read or write from the other side of the pipe. I will have look at this as soon as I get some fifo clue. -- << Marcin Cieslak // saper@system.pl >> From owner-freebsd-emulation@FreeBSD.ORG Sat Sep 16 23:24:47 2006 Return-Path: X-Original-To: emulation@freebsd.org 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 8A8F016A403 for ; Sat, 16 Sep 2006 23:24:47 +0000 (UTC) (envelope-from bsam@bsam.ru) Received: from mail.kuban.ru (mail.kuban.ru [62.183.66.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4606C43D4C for ; Sat, 16 Sep 2006 23:24:43 +0000 (GMT) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([83.239.48.158]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id k8GNOJNZ032795; Sun, 17 Sep 2006 03:24:29 +0400 (MSD) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1GOjWJ-0005C4-Ar; Sun, 17 Sep 2006 03:24:23 +0400 To: Alexander Leidinger References: <450C0C0E.8060402@SYSTEM.PL> <20060916171840.5dd744b7@Magellan.Leidinger.net> From: Boris Samorodov Date: Sun, 17 Sep 2006 03:24:23 +0400 In-Reply-To: <20060916171840.5dd744b7@Magellan.Leidinger.net> (Alexander Leidinger's message of "Sat, 16 Sep 2006 17:18:40 +0200") Message-ID: <26755448@bsam.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Boris Samorodov Cc: emulation@freebsd.org Subject: Re: Fix for errno 2 - expected 14 (EFAULT) problems 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, 16 Sep 2006 23:24:47 -0000 On Sat, 16 Sep 2006 17:18:40 +0200 Alexander Leidinger wrote: > Anyone with an amd64 system out there and willing to test this (with > the LTP testsuite as described on > http://wiki.freebsd.org/linux-kernel)? Because this doesn't seems to be > the final fix, it isn't necessary to test this particular patch, but it > would be nice to know if there are some differences between the results > on i386 (as can be seen in the wiki) and amd64. Should the patch (linuxolator-p4.diff) from a wiki page be applied to -current? It applies well but the kernel is not builded: ----- awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/dev/acpica/acpi_if.m -h rm -f .newdep make -V CFILES -V SYSTEM_CFILES -V GEN_CFILES | MKDEP_CPP="cc -E" CC="cc" xargs mkdep -a -f .newdep -O2 -frename-registers -pipe -fno-strict-aliasing -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -fformat-extensions -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa -I/usr/src/sys/gnu/fs/xfs/FreeBSD -I/usr/src/sys/gnu/fs/xfs/FreeBSD/support -I/usr/src/sys/gnu/fs/xfs -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding /usr/src/sys/compat/linux/linux_aio.c:47:36: machine/../linux/linux.h: No such file or directory /usr/src/sys/compat/linux/linux_aio.c:48:42: machine/../linux/linux_proto.h: No such file or directory mkdep: compile failed *** Error code 1 Stop in /usr/obj/usr/src/sys/GENERIC. *** Error code 1 ----- This is -current as of today on AMD64 machine. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve