From owner-freebsd-emulation Tue Nov 21 7:43:22 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 116EB37B4D7; Tue, 21 Nov 2000 07:43:15 -0800 (PST) Received: (from dan@localhost) by dan.emsphone.com (8.11.1/8.11.1) id eALFhDJ18349; Tue, 21 Nov 2000 09:43:13 -0600 (CST) (envelope-from dan) Date: Tue, 21 Nov 2000 09:43:13 -0600 From: Dan Nelson To: "Walter C. Pelissero" Cc: emulation@freebsd.org Subject: Re: SVR4 missing syscall Message-ID: <20001121094313.A1118@dan.emsphone.com> References: <14873.23011.159826.718978@hyde.lpds.sublink.org> <20001120130301.A10520@dan.emsphone.com> <14874.23121.801503.448167@hyde.lpds.sublink.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.11i In-Reply-To: <14874.23121.801503.448167@hyde.lpds.sublink.org>; from "Walter C. Pelissero" on Tue Nov 21 11:19:45 GMT 2000 X-OS: FreeBSD 5.0-CURRENT Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Followups to -emulation, please In the last episode (Nov 21), Walter C. Pelissero said: > Dan Nelson writes: > > In the last episode (Nov 20), Walter C. Pelissero said: > > > I'm trying to run a SCO SVR4 executable on FreeBSD but I get a > > > SIGSYS (invalid system call) at the very beginning. Here is the > > > kdump: > > > > > > Which call is it about? I see an "old.lstat" but I couldn't find > > > any reference in the kernel source tree. Is there any doc I > > > could read to see if I can hack this syscall in the emulator? > > > > old.lstat is syscall #40, which is the ibcs2_xenix syscall on SCO. > > May I ask you where you got this information from? I was grep-ing > around in the kernel source tree but I couldn't figure out that this > old.lstat is syscall #40, let alone that it was a Xenix syscall. Take a look at /sys/kern/syscalls.master. Any syscall with the word "old" in it has been phased out and gets a COMPAT flag. So you would look for a "COMPAT ... lstat" line, which happens to be #40. > Is there any doc that can help me hacking this syscall into the ibcs2 > emulator? > > > You can add hooks from the svr4 emulation code back to the ibcs2 > > code, but the svr4 module was really written for Solaris x86 > > instead of SCO. You'll have to make a lot of changes to get SCO > > binaries to run under it. I tried to get an SCO SVR4 binary to > > work about 6 months ago but gave up and simply got the vendor to > > send me a Linux binary instead. Runs fine under the Linuxulator :) > > Are you telling me that the IBCS emulator is not really working? > Unfortunately I can't ask for a Linux version. Have you ever had a > look at the NetBSD one? Is it usable? If you have access to NetBSD binaries, get them. FreeBSD should be able to run static NetBSD, OpenBSD, and BSD/OS binaries natively; no emulation layer required. The iBCS2 emulator works great; I've run all sorts of SCO 3.2v4.2 binaries on FreeBSD with it. Your problem is that SCO 5.* doesn't use iBCS2 anymore; it uses svr4 binaries. Even more of a problem is that SCO binaries rely heavily on old SCO syscalls. You end up having to link in the whole iBCS2 module, AND recode a bunch of syscalls that are different between Solaris and SCO (since our svr4 emulator was written for Solaris). And you have to do all of this in the dark because SCO doesn't release any information about their kernel. I couldn't even find a list of syscalls and their arguments. I had to grep through include files and try and reverse-engineer everything. If you want more background, take a look at the thread starting at http://www.freebsd.org/cgi/getmsg.cgi?fetch=28280+0+/usr/local/www/db/text/1999/freebsd-emulation/19990509.freebsd-emulation I have patches for a June 30 -current that implement enough SCO stuff to make /bin/sh work (but /bin/ls dies), if you're interested. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Nov 21 7:53:28 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id E061337B4C5 for ; Tue, 21 Nov 2000 07:53:25 -0800 (PST) Received: (from dan@localhost) by dan.emsphone.com (8.11.1/8.11.1) id eALFrNT29450; Tue, 21 Nov 2000 09:53:23 -0600 (CST) (envelope-from dan) Date: Tue, 21 Nov 2000 09:53:23 -0600 From: Dan Nelson To: "Walter C. Pelissero" Cc: emulation@FreeBSD.ORG Subject: Re: SVR4 missing syscall Message-ID: <20001121095323.A23358@dan.emsphone.com> References: <14873.23011.159826.718978@hyde.lpds.sublink.org> <20001120130301.A10520@dan.emsphone.com> <14874.23121.801503.448167@hyde.lpds.sublink.org> <20001121094313.A1118@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.11i In-Reply-To: <20001121094313.A1118@dan.emsphone.com>; from "Dan Nelson" on Tue Nov 21 09:43:13 GMT 2000 X-OS: FreeBSD 5.0-CURRENT Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In the last episode (Nov 21), Dan Nelson said: > In the last episode (Nov 21), Walter C. Pelissero said: > > Dan Nelson writes: > > > In the last episode (Nov 20), Walter C. Pelissero said: > > > > Which call is it about? I see an "old.lstat" but I couldn't > > > > find any reference in the kernel source tree. Is there any doc > > > > I could read to see if I can hack this syscall in the emulator? > > > > > > old.lstat is syscall #40, which is the ibcs2_xenix syscall on SCO. > > > > May I ask you where you got this information from? I was grep-ing > > around in the kernel source tree but I couldn't figure out that > > this old.lstat is syscall #40, let alone that it was a Xenix > > syscall. > > Take a look at /sys/kern/syscalls.master. Any syscall with the word > "old" in it has been phased out and gets a COMPAT flag. So you would > look for a "COMPAT ... lstat" line, which happens to be #40. Oops; I only half-finished the explanation. Now that you know it's syscall #40, you then have to look up syscall #40 in /sys/compat/svr4/syscalls.master . It reads "40 UNIMPL SVR4 xenix". Your next step is to check the iBCS2 code to see if IT has implemented syscall 40. /sys/i386/ibcs2/syscalls.master lists syscall 40 as 40 STD SCO { int ibcs2_xenix(int a1, int a2, int a3, int a4, int a5); } Bingo. Copy that line over to the svr4 syscalls.master file, tweak some other files to make the ibcs2_xenix function visible to the svr4 module, make svr4 depend on ibcs2, and you're done. With that syscall. Now run your program again, and figure out what makes it crash now :). -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Nov 21 8:51:50 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from murphys-outbound.servers.plus.net (unknown [212.159.14.225]) by hub.freebsd.org (Postfix) with SMTP id 659A637B4CF for ; Tue, 21 Nov 2000 08:51:47 -0800 (PST) Received: (qmail 4957 invoked from network); 21 Nov 2000 16:51:33 -0000 Received: from unknown (HELO daemon.lpds.sublink.org) (212.159.56.25) by murphys with SMTP; 21 Nov 2000 16:51:33 -0000 Received: from pelissero.org (hyde.lpds.sublink.org [10.0.0.2]) by daemon.lpds.sublink.org (8.9.3/8.9.3) with ESMTP id QAA01376 for ; Tue, 21 Nov 2000 16:26:17 GMT (envelope-from wcp@pelissero.org) Received: (from wcp@localhost) by pelissero.org (8.9.3/8.9.3) id QAA45168; Tue, 21 Nov 2000 16:31:39 GMT (envelope-from wcp) From: "Walter C. Pelissero" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14874.41835.112830.531578@hyde.lpds.sublink.org> Date: Tue, 21 Nov 2000 16:31:39 +0000 (GMT) To: Dan Nelson Cc: emulation@freebsd.org Subject: Re: SVR4 missing syscall In-Reply-To: <20001121094313.A1118@dan.emsphone.com> References: <14873.23011.159826.718978@hyde.lpds.sublink.org> <20001120130301.A10520@dan.emsphone.com> <14874.23121.801503.448167@hyde.lpds.sublink.org> <20001121094313.A1118@dan.emsphone.com> X-Mailer: VM 6.72 under 21.1 (patch 9) "Canyonlands" XEmacs Lucid Reply-To: walter@pelissero.org X-Attribution: WP Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Dan Nelson writes: > > Are you telling me that the IBCS emulator is not really working? > > Unfortunately I can't ask for a Linux version. Have you ever had a > > look at the NetBSD one? Is it usable? > > If you have access to NetBSD binaries, get them. FreeBSD should be > able to run static NetBSD, OpenBSD, and BSD/OS binaries natively; no > emulation layer required. Sorry, I wasn't clear. I asked if the NetBSD emulation layer for svr4/ibcs is better than the FreeBSD one. In the meanwhile I fetched NetBSD 1.4.2 and I can assure it has the same problem, with a slightly differen output from ktrace. I'll try to make use of your hints. > I have patches for a June 30 -current that implement enough SCO stuff > to make /bin/sh work (but /bin/ls dies), if you're interested. That would be great. Thanks a lot. -- walter pelissero http://www.pelissero.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Nov 22 13: 1:19 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from shadowmere.student.utwente.nl (wit401305.student.utwente.nl [130.89.236.145]) by hub.freebsd.org (Postfix) with ESMTP id 73B9A37B479 for ; Wed, 22 Nov 2000 13:01:17 -0800 (PST) Received: by shadowmere.student.utwente.nl (Postfix, from userid 1000) id C2C441FD6; Wed, 22 Nov 2000 22:01:16 +0100 (CET) Date: Wed, 22 Nov 2000 22:01:16 +0100 From: Pascal Hofstee To: freebsd-emulation@freebsd.org Subject: "Bogon" Discovered in linux.ko syscall-mapping Message-ID: <20001122220116.C81552@shadowmere.student.utwente.nl> Reply-To: daeron@shadowmere.student.utwente.nl Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, Today i accidentilly stumbled over a "bogon" in our linux.ko syscall-mapping. Apparently the reboot-command of Linux's "libc" gets mapped to our own libc's reboot-command, which sounds reasonable at a first glance. I noticed though that Linux's reboot-command has additional functionality that is (as far as i can tell) not available in our native libc. One of those features is "disbale reboot-key-sequence". I am almost positive that the application in question was trying to issue one of these unsupported features ... which caused our native reboor-call to fall back to it's default behaviour ... "Reboot the System" -- Pascal Hofstee < daeron @ shadowmere . student . utwente . nl > begin LOVE-LETTER-FOR-YOU.TXT.vbs I'm a signature virus. Please copy me and help me spread. end To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Nov 22 13:21: 3 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from palrel1.hp.com (palrel1.hp.com [156.153.255.242]) by hub.freebsd.org (Postfix) with ESMTP id 9DC1137B4CF for ; Wed, 22 Nov 2000 13:21:01 -0800 (PST) Received: from adlmail.cup.hp.com (adlmail.cup.hp.com [15.0.100.30]) by palrel1.hp.com (Postfix) with ESMTP id B47478F0; Wed, 22 Nov 2000 13:19:00 -0800 (PST) Received: from cup.hp.com (p1000180.nsr.hp.com [15.109.0.180]) by adlmail.cup.hp.com (8.9.3 (PHNE_18546)/8.9.3 SMKit7.02) with ESMTP id NAA13862; Wed, 22 Nov 2000 13:19:00 -0800 (PST) Message-ID: <3A1C3843.83AC3684@cup.hp.com> Date: Wed, 22 Nov 2000 13:18:59 -0800 From: Marcel Moolenaar Organization: Hewlett-Packard X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: daeron@shadowmere.student.utwente.nl Cc: freebsd-emulation@FreeBSD.ORG Subject: Re: "Bogon" Discovered in linux.ko syscall-mapping References: <20001122220116.C81552@shadowmere.student.utwente.nl> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Pascal Hofstee wrote: > > Apparently the reboot-command of Linux's "libc" gets mapped to our own > libc's reboot-command, which sounds reasonable at a first glance. > > I noticed though that Linux's reboot-command has additional functionality > that is (as far as i can tell) not available in our native libc. > One of those features is "disbale reboot-key-sequence". > > I am almost positive that the application in question was trying to issue > one of these unsupported features ... which caused our native reboor-call > to fall back to it's default behaviour ... "Reboot the System" You're probably right. We can't map Linux' reboot to FreeBSDs as is. -- Marcel Moolenaar mail: marcel@cup.hp.com / marcel@FreeBSD.org tel: (408) 447-4222 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Nov 22 14:24:34 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from cmpharm.ucsf.edu (cmpharm.ucsf.edu [128.218.67.18]) by hub.freebsd.org (Postfix) with ESMTP id 075DC37B4C5; Wed, 22 Nov 2000 14:24:30 -0800 (PST) Received: from piglet.ucsf.edu (steve@piglet.ucsf.edu [128.218.67.20]) by cmpharm.ucsf.edu (8.10.1/8.10.1) with ESMTP id eAMMBtn14516; Wed, 22 Nov 2000 14:11:55 -0800 (PST) Received: (from steve@localhost) by piglet.ucsf.edu (8.9.3/8.9.3) id OAA492966; Wed, 22 Nov 2000 14:24:29 -0800 (PST) Date: Wed, 22 Nov 2000 14:24:29 -0800 From: Steve Sizemore To: "Sean O'Connell" Cc: FreeBSD emulation , freebsd-java@FreeBSD.ORG Subject: Re: FreeBSD 4.1-STABLE patch for IBM JDK 1.3 Message-ID: <20001122142429.A491299@cmpharm.ucsf.edu> References: <20000920210118.B3934@stat.Duke.EDU> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20000920210118.B3934@stat.Duke.EDU>; from sean@stat.Duke.EDU on Wed, Sep 20, 2000 at 09:01:18PM -0400 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, Sep 20, 2000 at 09:01:18PM -0400, Sean O'Connell wrote: > Hi Folks- > > Some people have asked Drew about the -stable version of patch the > patches he put together to the Linux IBM JDK 1.3 to work under the > linuxulator. I have cleaned my version up a bit and have made it > available from > > http://www.stat.duke.edu/~sto/FreeBSD/linuxjava.patch > This patch set hasn't changed since originally posted, although the structure of the linux directory seems to have changed quite a bit; the patches no longer apply cleanly to -stable. Has anyone (Sean?) kept this up to date with -stable? More to the point, are there plans to MFC the changes which Drew made in -current? Thanks. Steve -- ----------------------------------------------#-----#--#####--------------- # # # # Steve Sizemore # # # Dept. of Cellular and Molecular Pharmacology # # # Box 0450, Room HSE-1285 # # # University of California Medical Center # # # # 513 Parnassus Avenue ##### ##### ##### ####### San Francisco CA 94143-0450 # # # # # steve@cmpharm.ucsf.edu ##### ##### (415) 476-6987 FAX: (415) 476-6515 # # # # # -------------------------------------------------------------#####--#------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Nov 22 14:24:41 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from pollux.or.signature.nl (pollux.or.signature.nl [194.229.138.2]) by hub.freebsd.org (Postfix) with ESMTP id 1C92A37B4C5 for ; Wed, 22 Nov 2000 14:24:39 -0800 (PST) Received: from localhost (bit@localhost) by pollux.or.signature.nl (8.9.1/8.9.1) with SMTP id XAA12224; Wed, 22 Nov 2000 23:24:34 +0100 (MET) Date: Wed, 22 Nov 2000 23:24:34 +0100 (MET) From: Bart Smit X-Sender: bit@pollux.or.signature.nl To: Pascal Hofstee Cc: freebsd-emulation@FreeBSD.ORG Subject: Re: "Bogon" Discovered in linux.ko syscall-mapping In-Reply-To: <20001122220116.C81552@shadowmere.student.utwente.nl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, 22 Nov 2000, Pascal Hofstee wrote: > I am almost positive that the application in question "the application in question" ? Reading your message, I wasn't aware of any application. Did you omit specifics there? Besides, I think that the default keymap shouldn't map Ctrl-Alt-Del onto an immediate reboot action. I've seen too many NT admins on autopilot wanting merely to log in being pissed off by it ;-) But maybe that's another issue altogether. --B To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Nov 22 15:22: 8 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from palrel3.hp.com (palrel3.hp.com [156.153.255.226]) by hub.freebsd.org (Postfix) with ESMTP id 205FA37B4C5; Wed, 22 Nov 2000 15:22:06 -0800 (PST) Received: from adlmail.cup.hp.com (adlmail.cup.hp.com [15.0.100.30]) by palrel3.hp.com (Postfix) with ESMTP id 897A561C; Wed, 22 Nov 2000 15:22:02 -0800 (PST) Received: from cup.hp.com (p1000180.nsr.hp.com [15.109.0.180]) by adlmail.cup.hp.com (8.9.3 (PHNE_18546)/8.9.3 SMKit7.02) with ESMTP id PAA19339; Wed, 22 Nov 2000 15:22:01 -0800 (PST) Message-ID: <3A1C5519.5C2A9165@cup.hp.com> Date: Wed, 22 Nov 2000 15:22:01 -0800 From: Marcel Moolenaar Organization: Hewlett-Packard X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Steve Sizemore Cc: "Sean O'Connell" , FreeBSD emulation , freebsd-java@FreeBSD.ORG Subject: Re: FreeBSD 4.1-STABLE patch for IBM JDK 1.3 References: <20000920210118.B3934@stat.Duke.EDU> <20001122142429.A491299@cmpharm.ucsf.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Steve Sizemore wrote: > > More to the point, are there plans to MFC the changes which Drew made > in -current? Yes. -- Marcel Moolenaar mail: marcel@cup.hp.com / marcel@FreeBSD.org tel: (408) 447-4222 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Nov 22 18:40:39 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from prism.flugsvamp.com (cb58709-a.mdsn1.wi.home.com [24.17.241.9]) by hub.freebsd.org (Postfix) with ESMTP id 446EE37B4D7 for ; Wed, 22 Nov 2000 18:40:37 -0800 (PST) Received: (from jlemon@localhost) by prism.flugsvamp.com (8.11.0/8.11.0) id eAN2dkB87509; Wed, 22 Nov 2000 20:39:46 -0600 (CST) (envelope-from jlemon) Date: Wed, 22 Nov 2000 20:39:46 -0600 (CST) From: Jonathan Lemon Message-Id: <200011230239.eAN2dkB87509@prism.flugsvamp.com> To: marcel@cup.hp.com, emulation@freebsd.org Subject: Re: "Bogon" Discovered in linux.ko syscall-mapping X-Newsgroups: local.mail.freebsd-emulation In-Reply-To: References: Organization: Cc: Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In article you write: >Pascal Hofstee wrote: >> >> Apparently the reboot-command of Linux's "libc" gets mapped to our own >> libc's reboot-command, which sounds reasonable at a first glance. >> >> I noticed though that Linux's reboot-command has additional functionality >> that is (as far as i can tell) not available in our native libc. >> One of those features is "disbale reboot-key-sequence". >> >> I am almost positive that the application in question was trying to issue >> one of these unsupported features ... which caused our native reboor-call >> to fall back to it's default behaviour ... "Reboot the System" > >You're probably right. We can't map Linux' reboot to FreeBSDs as is. Yeah. I have a simplistic linux wrapper for the reboot call somewhere, I should dig it up and commit it. -- Jonathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Nov 22 23:15:25 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from shadowmere.student.utwente.nl (wit401305.student.utwente.nl [130.89.236.145]) by hub.freebsd.org (Postfix) with ESMTP id C0E4D37B4D7 for ; Wed, 22 Nov 2000 23:15:22 -0800 (PST) Received: by shadowmere.student.utwente.nl (Postfix, from userid 1000) id AA2EE1FE0; Thu, 23 Nov 2000 08:15:21 +0100 (CET) Date: Thu, 23 Nov 2000 08:15:21 +0100 From: Pascal Hofstee To: Bart Smit Cc: Pascal Hofstee , freebsd-emulation@FreeBSD.ORG Subject: Re: "Bogon" Discovered in linux.ko syscall-mapping Message-ID: <20001123081521.A83374@shadowmere.student.utwente.nl> Reply-To: daeron@shadowmere.student.utwente.nl References: <20001122220116.C81552@shadowmere.student.utwente.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from bit@signature.nl on Wed, Nov 22, 2000 at 11:24:34PM +0100 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, Nov 22, 2000 at 11:24:34PM +0100, Bart Smit wrote: > > > On Wed, 22 Nov 2000, Pascal Hofstee wrote: > > > I am almost positive that the application in question > > "the application in question" ? > > Reading your message, I wasn't aware of any application. Did you omit > specifics there? > > Besides, I think that the default keymap shouldn't map Ctrl-Alt-Del onto > an immediate reboot action. I've seen too many NT admins on autopilot > wanting merely to log in being pissed off by it ;-) > > But maybe that's another issue altogether. I indeed forgot to mention the application that showed the behaviour i tried to explain here ... Rembo (http://www.rembo.com) -- Pascal Hofstee < daeron @ shadowmere . student . utwente . nl > begin LOVE-LETTER-FOR-YOU.TXT.vbs I'm a signature virus. Please copy me and help me spread. end To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Nov 22 23:26:21 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from mta6-rme.xtra.co.nz (mta6-rme.xtra.co.nz [203.96.92.19]) by hub.freebsd.org (Postfix) with ESMTP id A3D8437B4F9; Wed, 22 Nov 2000 23:26:17 -0800 (PST) Received: from themail.com ([210.54.197.59]) by mta6-rme.xtra.co.nz with SMTP id <20001123072558.OBBR53990.mta6-rme.xtra.co.nz@themail.com>; Thu, 23 Nov 2000 20:25:58 +1300 From: "turehu" To: Subject: Accept credit cards on-line THE EASY WAY! Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Date: Thu, 23 Nov 2000 08:22:58 +1300 Content-Transfer-Encoding: 8bit Message-Id: <20001123072558.OBBR53990.mta6-rme.xtra.co.nz@themail.com> Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org No set up fees No monthly interest No minimum transaction fees The only charge is a small percentage of the cost of the transaction. You can not lose money! You only pay fees if you sell your product. Get in the act and launch your online bussiness which will work for you 24hrs a day, seven days a week and it is worldwide. Want to find out more? Go to: http://www.cyberturf.com/creditcard If this Email has reached you by mistake, we apologize. To remove your Email from the mailing list please send: jennifer@nottern.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Thu Nov 23 7:22:56 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from mass.osd.bsdi.com (adsl-63-202-178-138.dsl.snfc21.pacbell.net [63.202.178.138]) by hub.freebsd.org (Postfix) with ESMTP id 86EB637B479 for ; Thu, 23 Nov 2000 07:22:54 -0800 (PST) Received: from mass.osd.bsdi.com (localhost [127.0.0.1]) by mass.osd.bsdi.com (8.11.0/8.11.1) with ESMTP id eANFRpF00909; Thu, 23 Nov 2000 07:27:52 -0800 (PST) (envelope-from msmith@mass.osd.bsdi.com) Message-Id: <200011231527.eANFRpF00909@mass.osd.bsdi.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: Jonathan Lemon Cc: marcel@cup.hp.com, emulation@freebsd.org Subject: Re: "Bogon" Discovered in linux.ko syscall-mapping In-reply-to: Your message of "Wed, 22 Nov 2000 20:39:46 CST." <200011230239.eAN2dkB87509@prism.flugsvamp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 23 Nov 2000 07:27:51 -0800 From: Mike Smith Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > >You're probably right. We can't map Linux' reboot to FreeBSDs as is. > > Yeah. I have a simplistic linux wrapper for the reboot call somewhere, > I should dig it up and commit it. The real problem, actually, is not this at all. The problem is that we assume that an unbranded static ELF binary is a FreeBSD binary (this is wrong), and attempt to execute it as such. Most linux binaries make syscall 55 (fcntl) pretty early on (I think it may even be in the glibc startup). Unfortunately, 55 is reboot in the BSD syscall table. If you're running the Linux binary as root, you die. The correct fix is to not execute unbranded ELF binaries as FreeBSD binaries. FreeBSD binaries are always branded, so this is not a problem. -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Thu Nov 23 9: 3:14 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from prism.flugsvamp.com (cb58709-a.mdsn1.wi.home.com [24.17.241.9]) by hub.freebsd.org (Postfix) with ESMTP id 4A14C37B4C5; Thu, 23 Nov 2000 09:03:08 -0800 (PST) Received: (from jlemon@localhost) by prism.flugsvamp.com (8.11.0/8.11.0) id eANH2DO14834; Thu, 23 Nov 2000 11:02:13 -0600 (CST) (envelope-from jlemon) Date: Thu, 23 Nov 2000 11:02:13 -0600 From: Jonathan Lemon To: Mike Smith Cc: Jonathan Lemon , marcel@cup.hp.com, emulation@freebsd.org Subject: Re: "Bogon" Discovered in linux.ko syscall-mapping Message-ID: <20001123110213.A69183@prism.flugsvamp.com> References: <200011230239.eAN2dkB87509@prism.flugsvamp.com> <200011231527.eANFRpF00909@mass.osd.bsdi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <200011231527.eANFRpF00909@mass.osd.bsdi.com> Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, Nov 23, 2000 at 07:27:51AM -0800, Mike Smith wrote: > > >You're probably right. We can't map Linux' reboot to FreeBSDs as is. > > > > Yeah. I have a simplistic linux wrapper for the reboot call somewhere, > > I should dig it up and commit it. > > The real problem, actually, is not this at all. Uhm, no. The real problem is this: linux_sysent.c: { AS(reboot_args), (sy_call_t *)reboot }, /* 88 = reboot */ We can't do that, we need a "linux_reboot" function which interprets the arguments and does not reboot the machine when the call attempts to change the "Ctrl-Alt-Delete" setting. I'll dig up my patch after Thanksgiving and commit it. > The problem is that we assume that an unbranded static ELF binary is a > FreeBSD binary (this is wrong), and attempt to execute it as such. This may also be true, but is orthogonal to the reboot issue. -- Jonathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Thu Nov 23 9:18: 2 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from mass.osd.bsdi.com (adsl-63-202-178-138.dsl.snfc21.pacbell.net [63.202.178.138]) by hub.freebsd.org (Postfix) with ESMTP id F3D7037B479 for ; Thu, 23 Nov 2000 09:17:59 -0800 (PST) Received: from mass.osd.bsdi.com (localhost [127.0.0.1]) by mass.osd.bsdi.com (8.11.0/8.11.1) with ESMTP id eANHMxF01290; Thu, 23 Nov 2000 09:22:59 -0800 (PST) (envelope-from msmith@mass.osd.bsdi.com) Message-Id: <200011231722.eANHMxF01290@mass.osd.bsdi.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: Jonathan Lemon Cc: marcel@cup.hp.com, emulation@freebsd.org Subject: Re: "Bogon" Discovered in linux.ko syscall-mapping In-reply-to: Your message of "Thu, 23 Nov 2000 11:02:13 CST." <20001123110213.A69183@prism.flugsvamp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 23 Nov 2000 09:22:59 -0800 From: Mike Smith Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > The problem is that we assume that an unbranded static ELF binary is a > > FreeBSD binary (this is wrong), and attempt to execute it as such. > > This may also be true, but is orthogonal to the reboot issue. Hrm. I don't remember the original question, but I have to say that I'm fairly surprised that a mere application would care about this. Regardless, you're right. -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Thu Nov 23 10:29: 5 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from smtp02.teb1.iconnet.net (smtp02.teb1.iconnet.net [209.3.218.43]) by hub.freebsd.org (Postfix) with ESMTP id E799237B4C5 for ; Thu, 23 Nov 2000 10:29:02 -0800 (PST) Received: from bellatlantic.net (client-151-198-117-146.nnj.dialup.bellatlantic.net [151.198.117.146]) by smtp02.teb1.iconnet.net (8.9.1/8.9.1) with ESMTP id NAA29935; Thu, 23 Nov 2000 13:28:44 -0500 (EST) Message-ID: <3A1D61DB.9AB93F93@bellatlantic.net> Date: Thu, 23 Nov 2000 13:28:43 -0500 From: Sergey Babkin X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 4.0-19990626-CURRENT i386) X-Accept-Language: en, ru MIME-Version: 1.0 To: Dan Nelson , "Walter C. Pelissero" , emulation@freebsd.org Subject: Re: SVR4 missing syscall Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Dan Nelson wrote: >for Solaris). And you have to do all of this in the dark because SCO >doesn't release any information about their kernel. I couldn't even >find a list of syscalls and their arguments. I had to grep through >include files and try and reverse-engineer everything A full list of SCO SVR4 syscall codes is available in /usr/include/sys/syscall.h on UnixWare machines. I can send you this data if you want. -SB To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Thu Nov 23 15: 6: 3 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from shadowmere.student.utwente.nl (wit401305.student.utwente.nl [130.89.236.145]) by hub.freebsd.org (Postfix) with ESMTP id 992C737B4D7; Thu, 23 Nov 2000 15:05:58 -0800 (PST) Received: by shadowmere.student.utwente.nl (Postfix, from userid 1000) id 0FACF1FD6; Fri, 24 Nov 2000 00:05:57 +0100 (CET) Date: Fri, 24 Nov 2000 00:05:56 +0100 From: Pascal Hofstee To: Mike Smith Cc: Jonathan Lemon , marcel@cup.hp.com, emulation@freebsd.org Subject: Re: "Bogon" Discovered in linux.ko syscall-mapping Message-ID: <20001124000556.A85318@shadowmere.student.utwente.nl> Reply-To: daeron@shadowmere.student.utwente.nl References: <20001123110213.A69183@prism.flugsvamp.com> <200011231722.eANHMxF01290@mass.osd.bsdi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200011231722.eANHMxF01290@mass.osd.bsdi.com>; from msmith@freebsd.org on Thu, Nov 23, 2000 at 09:22:59AM -0800 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, Nov 23, 2000 at 09:22:59AM -0800, Mike Smith wrote: > > > The problem is that we assume that an unbranded static ELF binary is a > > > FreeBSD binary (this is wrong), and attempt to execute it as such. > > > > This may also be true, but is orthogonal to the reboot issue. > > Hrm. I don't remember the original question, but I have to say that I'm > fairly surprised that a mere application would care about this. I have applied brandelf -t Linux to the binary ... and it behaves a lot better already :-) (Boy do i feel stupid) It however seems to bother somewhere with network-stuff now ... which i have not been able to figure out what's actually failing. In short ... the application still doesn't work ... but the reboot issues have been resolved by simply Branding the binary as Linux-ELF -- Pascal Hofstee < daeron @ shadowmere . student . utwente . nl > begin LOVE-LETTER-FOR-YOU.TXT.vbs I'm a signature virus. Please copy me and help me spread. end To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Fri Nov 24 2:30:51 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from thing.orbitel.bg (thing.orbitel.bg [195.24.32.46]) by hub.freebsd.org (Postfix) with SMTP id 9A58737B4D7 for ; Fri, 24 Nov 2000 02:30:46 -0800 (PST) Received: (qmail 8675 invoked by uid 1001); 24 Nov 2000 10:30:43 -0000 Date: Fri, 24 Nov 2000 12:30:43 +0200 From: Stanislav Grozev To: java@freebsd.org Cc: emulation@freebsd.org Subject: ibm jdk 1.3 Message-ID: <20001124123043.A8483@thing.orbitel.bg> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k1lZvvs/B4yU6o8G" Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi. I am on 5.0-CURRENT (from today) and I just tried the ibm 1.3 jdk. i had an older service release (1.3 SR1) which runs fine, it runs swing apps, the oracle 8.1.6 installer and my own apps. thanks for the excellent work, guys. it also runs noticeably faster than the other jdk's. today i decided to download the newest version from the ibm site, which it appears is not service release but normal release. it also works fine, except for one thing - when I start it, it spews the following: JIT cannot get processor_num. Assuming SMP... other than that warning, it works fine. i presume that our linux emulation doesn't support (yet) the linux system call for getting the number of CPU's is missing. ktrace shows that it tries to get it from proc/cpuinfo, so i mounted linprocfs on /compat/linux/proc but it still gives that warning. -tacho --=20 [i don't follow] | [http://daemonz.org/ || tacho@daemonz.org] [everything should be made as simple as possible, but no simpler] 0x44FC3339 || [02B5 798B 4BD1 97FB F8DB 72E4 DCA4 BE03 44FC 3339] --k1lZvvs/B4yU6o8G Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE6HkNT3KS+A0T8MzkRAuOGAKCCM3kxGnVbqykHdX2Lu5Qo/MY1TQCdFmwW vb3tgXihVYmdm6iREYNIqLg= =wYlQ -----END PGP SIGNATURE----- --k1lZvvs/B4yU6o8G-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Fri Nov 24 3: 7:56 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id AB5FB37B479; Fri, 24 Nov 2000 03:07:52 -0800 (PST) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id MAA48803; Fri, 24 Nov 2000 12:07:47 +0100 (CET) (envelope-from des@ofug.org) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Stanislav Grozev Cc: java@FreeBSD.ORG, emulation@FreeBSD.ORG Subject: Re: ibm jdk 1.3 References: <20001124123043.A8483@thing.orbitel.bg> From: Dag-Erling Smorgrav Date: 24 Nov 2000 12:07:47 +0100 In-Reply-To: Stanislav Grozev's message of "Fri, 24 Nov 2000 12:30:43 +0200" Message-ID: Lines: 16 User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Stanislav Grozev writes: > > JIT cannot get processor_num. Assuming SMP... > > other than that warning, it works fine. i presume that our linux > emulation doesn't support (yet) the linux system call for getting > the number of CPU's is missing. ktrace shows that it tries to get > it from proc/cpuinfo, so i mounted linprocfs on /compat/linux/proc > but it still gives that warning. This is not a system call issue, it's a matter of linprocfs' cpuinfo not conforming with Linux' /proc/cpuinfo. Please submit a PR. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message