From owner-freebsd-emulation@FreeBSD.ORG Sun Mar 6 22:06:09 2005 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8965416A4CE; Sun, 6 Mar 2005 22:06:09 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C8C943D2F; Sun, 6 Mar 2005 22:06:09 +0000 (GMT) (envelope-from sobomax@FreeBSD.org) Received: from freefall.freebsd.org (sobomax@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j26M691o096211; Sun, 6 Mar 2005 22:06:09 GMT (envelope-from sobomax@freefall.freebsd.org) Received: (from sobomax@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j26M68fh096207; Sun, 6 Mar 2005 22:06:08 GMT (envelope-from sobomax) Date: Sun, 6 Mar 2005 22:06:08 GMT From: Maxim Sobolev Message-Id: <200503062206.j26M68fh096207@freefall.freebsd.org> To: avg@icyb.net.ua, sobomax@FreeBSD.org, emulation@FreeBSD.org Subject: Re: kern/72922: linux emulation: suid/sgid threaded applications hang X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Mar 2005 22:06:09 -0000 Synopsis: linux emulation: suid/sgid threaded applications hang State-Changed-From-To: open->closed State-Changed-By: sobomax State-Changed-When: Sun Mar 6 22:05:43 GMT 2005 State-Changed-Why: Should be fixed in the recent -current. Please test and let me know if the problem persists. http://www.freebsd.org/cgi/query-pr.cgi?pr=72922 From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 7 00:25:44 2005 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A762D16A4CE; Mon, 7 Mar 2005 00:25:44 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7900243D31; Mon, 7 Mar 2005 00:25:44 +0000 (GMT) (envelope-from sobomax@FreeBSD.org) Received: from freefall.freebsd.org (sobomax@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j270PiEa015626; Mon, 7 Mar 2005 00:25:44 GMT (envelope-from sobomax@freefall.freebsd.org) Received: (from sobomax@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j270Pgap015622; Mon, 7 Mar 2005 00:25:42 GMT (envelope-from sobomax) Date: Mon, 7 Mar 2005 00:25:42 GMT From: Maxim Sobolev Message-Id: <200503070025.j270Pgap015622@freefall.freebsd.org> To: tlp@LiquidX.org, sobomax@FreeBSD.org, emulation@FreeBSD.org Subject: Re: kern/74302: [PATCH] Our Linux binary support does not appear to be handling UNIMPL syscalls correctly, causing at least one application to crash. X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Mar 2005 00:25:44 -0000 Synopsis: [PATCH] Our Linux binary support does not appear to be handling UNIMPL syscalls correctly, causing at least one application to crash. State-Changed-From-To: open->closed State-Changed-By: sobomax State-Changed-When: Mon Mar 7 00:25:16 GMT 2005 State-Changed-Why: iRelevant change has been committed to 6-CURRENT, thank you for reporting! http://www.freebsd.org/cgi/query-pr.cgi?pr=74302 From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 7 11:01:17 2005 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F3C2216A4CE for ; Mon, 7 Mar 2005 11:01:16 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B9E0E43D1D for ; Mon, 7 Mar 2005 11:01:16 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j27B1GTt037069 for ; Mon, 7 Mar 2005 11:01:16 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j27B1FTO037063 for emulation@freebsd.org; Mon, 7 Mar 2005 11:01:15 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 7 Mar 2005 11:01:15 GMT Message-Id: <200503071101.j27B1FTO037063@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: emulation@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Mar 2005 11:01:17 -0000 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/06/28] kern/53874 emulation /usr/ports/emulators/linux_base isn't wor 1 problem total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/09/22] kern/21463 emulation Linux compatability mode should not allow o [2000/11/13] kern/22826 emulation Memory limits have no effect in linux com o [2001/03/28] kern/26171 emulation not work Linux-emulator, but hi is work i p [2002/04/16] kern/37161 emulation ext2 linux file system, error handling la o [2002/11/07] kern/45023 emulation flexlm does not run with linux-base-7, st o [2003/09/24] kern/57192 emulation linux-ibm-java1.4 freeze f [2004/03/04] ports/63747 emulation vmmon is not performing o [2004/06/20] kern/68131 emulation java/linux-ibm-jdk14: linux ibm jdk 1.4.1 o [2004/06/22] ports/68202 emulation [patch] Make vmware2 compile on -current o [2005/01/25] ports/76644 emulation FreeBSD 5.3 will freeze or crash when run 10 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [1999/04/16] i386/11165 emulation IBCS2 don't work correctly with PID_MAX 9 o [2000/12/15] kern/23561 emulation Linux compatibility mode does not support o [2001/08/14] kern/29698 emulation linux ipcs doesn'work o [2002/06/12] kern/39201 emulation ptrace(2) and rfork(RFLINUXTHPN) confuse o [2002/08/11] kern/41543 emulation Easier wine/w23 support p [2002/09/04] kern/42404 emulation TIOCSCTTY not implemented in linuxulator s [2002/09/06] kern/42466 emulation linux: 'ipc' typ=258 not implemented p [2003/01/22] kern/47349 emulation Fake a sound ioctl (plus linux hook) o [2003/08/21] kern/55835 emulation Linux IPC emulation missing SETALL syscal f [2004/06/30] ports/68532 emulation Add support for multiple VMWare instances o [2004/10/19] ports/72865 emulation emulators/vmware3 crashes on 5.3-STABLE o [2004/10/20] kern/72920 emulation linux emulation : path "prefixing" is not o [2004/10/26] kern/73165 emulation [patch] getting rid of COMPAT_43 dependan o [2004/11/10] kern/73777 emulation [patch] linux emulation: root dir special 14 problems total. From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 7 19:56:03 2005 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7418816A4CE; Mon, 7 Mar 2005 19:56:03 +0000 (GMT) Received: from mail.cablenet.lt (mail.cablenet.lt [217.147.34.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E5A243D49; Mon, 7 Mar 2005 19:56:03 +0000 (GMT) (envelope-from rolnas@takas.lt) Received: from ctv-217-147-36-211.vinita.lt ([217.147.36.211] helo=rolnas.dyndns.org) by mail.cablenet.lt with esmtp (Exim 4.34) id 1D8OFl-0002So-DJ; Mon, 07 Mar 2005 21:50:57 +0200 Received: from rolnas by rolnas.dyndns.org with local (Exim 3.35 #1 (Debian)) id 1D8OKd-0002Lz-00; Mon, 07 Mar 2005 21:55:59 +0200 Date: Mon, 7 Mar 2005 21:55:59 +0200 From: Rolandas Naujikas To: freebsd-emulation@FreeBSD.org Message-ID: <20050307195559.GA8985@rolnas> Mime-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.3.28i Organization: VU MIF Sender: Rolandas Naujikas X-SA-Exim-Connect-IP: 217.147.36.211 X-SA-Exim-Mail-From: rolnas@takas.lt Content-Type: text/plain; charset=iso-8859-1 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on mail.vinita.lt X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-SA-Exim-Version: 4.1 (built Tue, 17 Aug 2004 11:06:07 +0200) X-SA-Exim-Scanned: Yes (on mail.cablenet.lt) cc: ports@freebsd.org Subject: Port textproc/linux-expat doesn't build X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Mar 2005 19:56:03 -0000 Port textproc/linux-expat doesn't build on clean system, because some dependencies are lost due of this line: RUN_DEPENDS= In runtime it needs linux_base at least and more. I'm always building all ports (after make packages) in clean system. Rolandas From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 9 09:50:05 2005 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 58F9216A4CF for ; Wed, 9 Mar 2005 09:50:05 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FA9C43D5F for ; Wed, 9 Mar 2005 09:50:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j299o5dU096828 for ; Wed, 9 Mar 2005 09:50:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j299o5WQ096827; Wed, 9 Mar 2005 09:50:05 GMT (envelope-from gnats) Date: Wed, 9 Mar 2005 09:50:05 GMT Message-Id: <200503090950.j299o5WQ096827@freefall.freebsd.org> To: emulation@FreeBSD.org From: Andriy Gapon Subject: Re: kern/72922: linux emulation: suid/sgid threaded applications hang X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Andriy Gapon List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2005 09:50:05 -0000 The following reply was made to PR kern/72922; it has been noted by GNATS. From: Andriy Gapon To: Maxim Sobolev Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: kern/72922: linux emulation: suid/sgid threaded applications hang Date: Wed, 09 Mar 2005 11:40:54 +0200 on 20.02.2005 19:21 Maxim Sobolev said the following: > Andriy, > > Can you please test the following patch and let me know if it help or not. > > http://www.pbxpress.com/~sobomax/72922.diff Maxim, sorry that it took me so long to try this patch, I could do reboot only on the past weekend and, ufortunately, this patch didn't fix the problem with MQ, strmqm command still hangs if conservative_signals=1. I am not sure if you commited exactly this patch or something different in current (unfortunately I am not able to test current), but this patch apparently does not work in this particular case. I am not sure if I will be able to help you with debugging kernel stuff (linux kld - most probably yes, kernel - most propbably not), but I can definitely provide you information about this particular program, strmqm, if you need it and if you tell me what to check for. -- Andriy Gapon From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 9 10:10:06 2005 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 502A516A4CE for ; Wed, 9 Mar 2005 10:10:06 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1EFD943D60 for ; Wed, 9 Mar 2005 10:10:06 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j29AA55s001878 for ; Wed, 9 Mar 2005 10:10:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j29AA5Ld001877; Wed, 9 Mar 2005 10:10:05 GMT (envelope-from gnats) Date: Wed, 9 Mar 2005 10:10:05 GMT Message-Id: <200503091010.j29AA5Ld001877@freefall.freebsd.org> To: emulation@FreeBSD.org From: Maxim Sobolev Subject: Re: kern/72922: linux emulation: suid/sgid threaded applications hang X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Maxim Sobolev List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2005 10:10:06 -0000 The following reply was made to PR kern/72922; it has been noted by GNATS. From: Maxim Sobolev To: Andriy Gapon Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: kern/72922: linux emulation: suid/sgid threaded applications hang Date: Wed, 09 Mar 2005 11:59:48 +0200 Andriy Gapon wrote: > on 20.02.2005 19:21 Maxim Sobolev said the following: > >>Andriy, >> >>Can you please test the following patch and let me know if it help or not. >> >>http://www.pbxpress.com/~sobomax/72922.diff > > > Maxim, > sorry that it took me so long to try this patch, I could do reboot only > on the past weekend and, ufortunately, this patch didn't fix the > problem with MQ, strmqm command still hangs if conservative_signals=1. I > am not sure if you commited exactly this patch or something different in > current (unfortunately I am not able to test current), but this patch > apparently does not work in this particular case. I am not sure if I > will be able to help you with debugging kernel stuff (linux kld - most > probably yes, kernel - most propbably not), but I can definitely provide > you information about this particular program, strmqm, if you need it > and if you tell me what to check for. Hmm, that's pretty strange. Can you please fetch the following Linux binary, make it suid root and try to run as ordinary user on your system? I've used it to verify that my patch is in fact works - after the change has been made it stopped hanging at my system. http://www.pbxpress.com/~sobomax/aqueue_linux It will make sense to execute that strmqm program under ktrace(8) with -i flag (use ports/devel/linux_kdump to decode resulting trace) and send me the output of linux_kdump. Maybe your version of linuxthreads uses some different set of flags in linux_clone(), so that my heuristics fails. -Maxim From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 9 11:00:14 2005 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B38CA16A4CE for ; Wed, 9 Mar 2005 11:00:14 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 806CD43D2F for ; Wed, 9 Mar 2005 11:00:14 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j29B0Efu005563 for ; Wed, 9 Mar 2005 11:00:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j29B0EKv005562; Wed, 9 Mar 2005 11:00:14 GMT (envelope-from gnats) Date: Wed, 9 Mar 2005 11:00:14 GMT Message-Id: <200503091100.j29B0EKv005562@freefall.freebsd.org> To: emulation@FreeBSD.org From: Andriy Gapon Subject: Re: kern/72922: linux emulation: suid/sgid threaded applications hang X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Andriy Gapon List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2005 11:00:14 -0000 The following reply was made to PR kern/72922; it has been noted by GNATS. From: Andriy Gapon To: Maxim Sobolev Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: kern/72922: linux emulation: suid/sgid threaded applications hang Date: Wed, 09 Mar 2005 12:57:49 +0200 on 09.03.2005 11:59 Maxim Sobolev said the following: > Hmm, that's pretty strange. Can you please fetch the following Linux > binary, make it suid root and try to run as ordinary user on your > system? I've used it to verify that my patch is in fact works - after > the change has been made it stopped hanging at my system. > > http://www.pbxpress.com/~sobomax/aqueue_linux > > It will make sense to execute that strmqm program under ktrace(8) with > -i flag (use ports/devel/linux_kdump to decode resulting trace) and send > me the output of linux_kdump. Maybe your version of linuxthreads uses > some different set of flags in linux_clone(), so that my heuristics fails. Maxim, 1. I've tried to follow your advice, but a new strange thing happened (or maybe it is not strange, but I never payed attention before): "-i" in "ktrace -i" doesn't work on suid/sgid applications, when run as normal user: # chmod 6550 ~/tmp/aqueue_linux # ls -l ~/tmp/aqueue_linux -r-sr-s--- 1 avg topspin 16804 9 ยลา 13:47 /home/avg/tmp/aqueue_linux $ ktrace -i ~avg/tmp/aqueue_linux -n 100 pusher started poper started $ linux_kdump > kdump.out $ cat kdump.out 16103 ktrace RET linux_brk 0 16103 ktrace CALL linux_olduname(0xbfbfea4e,0xbfbfe95c,0xbfbfe96c) 16103 ktrace NAMI "/home/avg/tmp/aqueue_linux" 16103 ktrace NAMI "/compat/linux/lib/ld-linux.so.2" If I set permission back to normal executable, "-i" works again. 2. "ktrace -i" works if executed as super-user and strmqm still hangs. Here's some relevant info, whcih makes things quite obvious: # egrep 'fork|exec|clone|kill|signal' kdump.out 79953 strmqm CALL linux_clone(0xf00,0x8099370) 79953 strmqm RET linux_clone 79954/0x13852 79954 strmqm RET linux_fork 0 79954 strmqm CALL linux_clone(0xf21,0xbf3ffbd0) 79954 strmqm RET linux_clone 79955/0x13853 79955 strmqm RET linux_fork 0 79954 strmqm CALL linux_kill(0x13851,0x20) 79954 strmqm RET linux_kill 0 79955 strmqm CALL linux_kill(0x13851,0x20) 79955 strmqm RET linux_kill 0 79955 strmqm CALL linux_kill(0x13851,0x20) 79955 strmqm RET linux_kill 0 79955 strmqm CALL linux_kill(0x13851,0x20) 79955 strmqm RET linux_kill 0 uucp:*:66:66:UUCP pseudo-user:/var/spool/uucppublic:/usr/libexec/uucp/uucico 79954 strmqm CALL linux_clone(0xf21,0xbf1ffbd0) 79954 strmqm RET linux_clone 79956/0x13854 79956 strmqm RET linux_fork 0 79954 strmqm CALL linux_kill(0x13851,0x20) 79954 strmqm RET linux_kill 0 79956 strmqm CALL linux_kill(0x13851,0x20) 79956 strmqm RET linux_kill 0 79953 strmqm CALL linux_kill(0x13854,0x20) 79953 strmqm RET linux_kill 0 79956 strmqm CALL linux_kill(0x13851,0x20) 79956 strmqm RET linux_kill 0 79956 strmqm CALL linux_kill(0x13851,0x20) 79956 strmqm RET linux_kill 0 79953 strmqm CALL linux_kill(0x13853,0x1c) 79953 strmqm RET linux_kill RESTART permitted' from pthread_kill.) | ('1 - Operation not permitted' from pthread_kill.) | " "| Comment1 :- '1 - Operation not permitted' from pthread_kill. | 79954 strmqm CALL linux_kill(0x13854,0x21) 79954 strmqm RET linux_kill RESTART 79954 strmqm CALL linux_kill(0x13853,0x21) 79954 strmqm RET linux_kill RESTART Looks like signal 32 is OK, but there are 28 and 33 in addition to it. 33 seems to be another Linux real-time signal and is probably used with linux threads for some purpose. Here's what I read in signal(7) Linux man page: <<< Linux supports real-time signals as originally defined in the POSIX.4 real-time extensions (and now included in POSIX 1003.1-2001). Linux supports 32 real-time signals, numbered from 32 (SIGRTMIN) to 63 (SIGRTMAX). (Programs should always refer to real-time signals using notation SIGRTMIN+n, since the range of real-time signal numbers varies across Unices.) Unlike standard signals, real-time signals have no predefined meanings: the entire set of real-time signals can be used for application-defined purposes. (Note, however, that the LinuxThreads implementation uses the first three real-time signals.) >>>> So probably 32,33,34 should be subject to your patch. I am not sure what signal 28 (SIGWINCH?) is used for (in this case), but most probably it is not thread-related and not application critical, because execution continues after that signal, but an error message is logged. -- Andriy Gapon From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 9 21:05:38 2005 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C07016A4CE for ; Wed, 9 Mar 2005 21:05:38 +0000 (GMT) Received: from hotmail.com (bay15-f38.bay15.hotmail.com [65.54.185.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1079743D39 for ; Wed, 9 Mar 2005 21:05:38 +0000 (GMT) (envelope-from carlj1752@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 9 Mar 2005 13:05:37 -0800 Message-ID: Received: from 128.30.86.40 by by15fd.bay15.hotmail.msn.com with HTTP; Wed, 09 Mar 2005 21:05:37 GMT X-Originating-IP: [128.30.86.40] X-Originating-Email: [carlj1752@hotmail.com] X-Sender: carlj1752@hotmail.com From: "Carl J" To: freebsd-emulation@freebsd.org Date: Wed, 09 Mar 2005 16:05:37 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 09 Mar 2005 21:05:37.0927 (UTC) FILETIME=[BE57D970:01C524EB] Subject: Multiple Simultaneous linux_base X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2005 21:05:38 -0000 Hi all! I'm running FreeBSD 4.11 Most of my Linux apps need linux_base8, but I have a few old apps that need linux_base6. Is there a way to install both simultaneous (and set up some sort of mapping or such, to enable different app to use different base)? (I searched the web and archive, but either I didn't see it, or I didn't understand what some of the posts meant. So I'm sorry if this is a FAQ) Thanks! - Carl From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 9 21:48:38 2005 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4917F16A4CE for ; Wed, 9 Mar 2005 21:48:38 +0000 (GMT) Received: from scotth.emsphone.com (scotth.emsphone.com [199.67.51.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id C928E43D53 for ; Wed, 9 Mar 2005 21:48:37 +0000 (GMT) (envelope-from shildreth@allantgroup.com) Received: from scotth.emsphone.com (localhost [127.0.0.1]) by scotth.emsphone.com (8.13.1/8.13.1) with ESMTP id j29LmnGV098637 for ; Wed, 9 Mar 2005 15:48:50 -0600 (CST) (envelope-from shildreth@allantgroup.com) Received: (from shildret@localhost) by scotth.emsphone.com (8.13.1/8.13.1/Submit) id j29Lmn6x098636 for emulation@freebsd.org; Wed, 9 Mar 2005 15:48:49 -0600 (CST) (envelope-from shildreth@allantgroup.com) X-Authentication-Warning: scotth.emsphone.com: shildret set sender to shildreth@allantgroup.com using -f From: "Scott T. Hildreth" To: FreeBSD Emulation In-Reply-To: <1110404823.93110.22.camel@scotth.emsphone.com> References: <1110404823.93110.22.camel@scotth.emsphone.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Wed, 09 Mar 2005 15:48:49 -0600 Message-Id: <1110404929.93110.23.camel@scotth.emsphone.com> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 FreeBSD GNOME Team Port Subject: Re: Multiple Simultaneous linux_base X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: shildreth@allantgroup.com List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2005 21:48:38 -0000 On Wed, 2005-03-09 at 15:47 -0600, Scott T. Hildreth wrote: > I don't think base8 conflicts with base6, so you can > just install the base8 and the base6 libs will still be > intact. I have done this with base5 (needed for Oracle 8.0.5). > > On Wed, 2005-03-09 at 16:05 -0500, Carl J wrote: > > Hi all! I'm running FreeBSD 4.11 > > > > Most of my Linux apps need linux_base8, > > but I have a few old apps that need linux_base6. > > > > Is there a way to install both simultaneous (and set up some sort > > of mapping or such, to enable different app to use different base)? > > > > (I searched the web and archive, but either I didn't see it, > > or I didn't understand what some of the posts meant. > > So I'm sorry if this is a FAQ) > > > > Thanks! > > > > - Carl > > > > > > _______________________________________________ > > freebsd-emulation@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-emulation > > To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@freebsd.org" -- Scott T. Hildreth From owner-freebsd-emulation@FreeBSD.ORG Thu Mar 10 02:34:08 2005 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 88EDC16A4CE for ; Thu, 10 Mar 2005 02:34:08 +0000 (GMT) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66F4843D31 for ; Thu, 10 Mar 2005 02:34:08 +0000 (GMT) (envelope-from bsdzz@verizon.net) Received: from [10.0.0.25] ([68.236.212.14])0.04 <0ID400EBH74V7V90@vms044.mailsrvcs.net> for freebsd-emulation@freebsd.org; Wed, 09 Mar 2005 20:34:08 -0600 (CST) Date: Wed, 09 Mar 2005 21:34:30 -0500 From: bsdzz To: freebsd-emulation@freebsd.org Message-id: <422FB236.3000706@verizon.net> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0 (X11/20050226) Subject: QEMU needs /dev/tun0 ? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2005 02:34:08 -0000 (I just saw this list, after I posted this question in freebsd-questions, in case it looks familiar) Hi, I am trying to run Windows 2000 inside QEMU, and it works well (though a bit slow). In order to get my emulated machine on the Internet, I have to use "/dev/tun0". I read online that the default FreeBSD 5.x has "tun" turned on in the kernel, but I do not appear to have a "/dev/tun0" device. Does anybody know anything about this? I tried using the "-user-mode" networking, and it worked - I can ping 10.0.2.2, but I cannot talk to any computer except my FreeBSD host. So I think I need to figure out "tun". Most of the literature on the internet related to "tun" and "tun/tap" seems to be about linux, but I suspect FreeBSD is similar. I am really impressed with QEMU! thx From owner-freebsd-emulation@FreeBSD.ORG Thu Mar 10 03:20:33 2005 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E748F16A4CE for ; Thu, 10 Mar 2005 03:20:33 +0000 (GMT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id D48F843D1F for ; Thu, 10 Mar 2005 03:20:32 +0000 (GMT) (envelope-from freebsd-emulation@m.gmane.org) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1D9EDV-0001Vf-Bs for freebsd-emulation@freebsd.org; Thu, 10 Mar 2005 04:20:05 +0100 Received: from pcp08490587pcs.levtwn01.pa.comcast.net ([68.83.169.224]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Mar 2005 04:20:05 +0100 Received: from apeiron+usenet by pcp08490587pcs.levtwn01.pa.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Mar 2005 04:20:05 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-emulation@freebsd.org From: Christopher Nehren Date: Thu, 10 Mar 2005 03:06:55 +0000 (UTC) Organization: /usr/bin/false Lines: 30 Message-ID: References: <422FB236.3000706@verizon.net> X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: pcp08490587pcs.levtwn01.pa.comcast.net User-Agent: slrn/0.9.8.1 (FreeBSD) Sender: news X-Gmane-MailScanner: Found to be clean X-Gmane-MailScanner: Found to be clean X-Gmane-MailScanner-SpamScore: s X-MailScanner-From: freebsd-emulation@m.gmane.org X-MailScanner-To: freebsd-emulation@freebsd.org Subject: Re: QEMU needs /dev/tun0 ? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2005 03:20:34 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2005-03-10, bsdzz scribbled these curious markings: > I tried using the "-user-mode" networking, and it worked - I can ping > 10.0.2.2, but I cannot talk to any computer except my FreeBSD host. So > I think I need to figure out "tun". You won't be able to ping any systems other than the FreeBSD host because of the way ping works. ping requires superuser access because of what it does with the socket() that it uses. This is why it's suid to root on your system. For the most part, I've found user-mode networking to be sufficient for use with QEMU. Best Regards, Christopher Nehren -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFCL7pxk/lo7zvzJioRAlNvAJ93YtyVyJRrcOzbYdxgHCracjLnvACggTVY dX0fM06Bq9sD4MaqEcbVRxU= =Mv+2 -----END PGP SIGNATURE----- -- I abhor a system designed for the "user", if that word is a coded pejorative meaning "stupid and unsophisticated". -- Ken Thompson If you ask the wrong questions, you get answers like "42" and "God". Unix is user friendly. However, it isn't idiot friendly. From owner-freebsd-emulation@FreeBSD.ORG Thu Mar 10 03:39:16 2005 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DBD3616A4CE for ; Thu, 10 Mar 2005 03:39:16 +0000 (GMT) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id B5CEF43D5A for ; Thu, 10 Mar 2005 03:39:16 +0000 (GMT) (envelope-from bsdzz@verizon.net) Received: from [10.0.0.25] ([68.236.212.14])0.04 <0ID400CZ2A5FC5X0@vms046.mailsrvcs.net> for freebsd-emulation@freebsd.org; Wed, 09 Mar 2005 21:39:16 -0600 (CST) Date: Wed, 09 Mar 2005 22:39:37 -0500 From: bsdzz In-reply-to: To: Christopher Nehren Message-id: <422FC179.8000607@verizon.net> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit X-Accept-Language: en-us, en References: <422FB236.3000706@verizon.net> User-Agent: Mozilla Thunderbird 1.0 (X11/20050226) cc: freebsd-emulation@freebsd.org Subject: Re: QEMU needs /dev/tun0 ? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2005 03:39:17 -0000 >You won't be able to ping any systems other than the FreeBSD host >because of the way ping works. ping requires superuser access because of >what it does with the socket() that it uses. This is why it's suid to >root on your system. For the most part, I've found user-mode networking >to be sufficient for use with QEMU. > > > Well, my Windows 2000's now works - and I have no idea why. I spent several hours last night trying to access the internet, and it never worked. I boot today, and now it works fine (though slow). I am using "-user-net" again, as you suggested. thanks! From owner-freebsd-emulation@FreeBSD.ORG Thu Mar 10 13:00:16 2005 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 77AE516A4CE for ; Thu, 10 Mar 2005 13:00:16 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C04D43D54 for ; Thu, 10 Mar 2005 13:00:16 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j2AD0GOT036123 for ; Thu, 10 Mar 2005 13:00:16 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j2AD0F18036122; Thu, 10 Mar 2005 13:00:15 GMT (envelope-from gnats) Date: Thu, 10 Mar 2005 13:00:15 GMT Message-Id: <200503101300.j2AD0F18036122@freefall.freebsd.org> To: emulation@FreeBSD.org From: Maxim Sobolev Subject: Re: kern/72922: linux emulation: suid/sgid threaded applications hang X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Maxim Sobolev List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2005 13:00:16 -0000 The following reply was made to PR kern/72922; it has been noted by GNATS. From: Maxim Sobolev To: Andriy Gapon Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: kern/72922: linux emulation: suid/sgid threaded applications hang Date: Thu, 10 Mar 2005 14:56:41 +0200 I see. Try to replace the following line in kern_prot.c: if (signum == SIGTHR && td->td_proc->p_leader != NULL && with the following: if (signum >= SIGTHR && td->td_proc->p_leader != NULL && And let me know if it helps. BTW, would be be interested in getting FreeBSD commit bit, so that you can do the work by yourself? ;-) -Maxim Andriy Gapon wrote: > on 09.03.2005 11:59 Maxim Sobolev said the following: > >>Hmm, that's pretty strange. Can you please fetch the following Linux >>binary, make it suid root and try to run as ordinary user on your >>system? I've used it to verify that my patch is in fact works - after >>the change has been made it stopped hanging at my system. >> >>http://www.pbxpress.com/~sobomax/aqueue_linux >> >>It will make sense to execute that strmqm program under ktrace(8) with >>-i flag (use ports/devel/linux_kdump to decode resulting trace) and send >>me the output of linux_kdump. Maybe your version of linuxthreads uses >>some different set of flags in linux_clone(), so that my heuristics fails. > > > Maxim, > > 1. I've tried to follow your advice, but a new strange thing happened > (or maybe it is not strange, but I never payed attention before): "-i" > in "ktrace -i" doesn't work on suid/sgid applications, when run as > normal user: > > # chmod 6550 ~/tmp/aqueue_linux > # ls -l ~/tmp/aqueue_linux > -r-sr-s--- 1 avg topspin 16804 9 ยลา 13:47 /home/avg/tmp/aqueue_linux > > > $ ktrace -i ~avg/tmp/aqueue_linux -n 100 > pusher started > poper started > $ linux_kdump > kdump.out > $ cat kdump.out > 16103 ktrace RET linux_brk 0 > 16103 ktrace CALL linux_olduname(0xbfbfea4e,0xbfbfe95c,0xbfbfe96c) > 16103 ktrace NAMI "/home/avg/tmp/aqueue_linux" > 16103 ktrace NAMI "/compat/linux/lib/ld-linux.so.2" > > If I set permission back to normal executable, "-i" works again. > > > 2. "ktrace -i" works if executed as super-user and strmqm still hangs. > Here's some relevant info, whcih makes things quite obvious: > > # egrep 'fork|exec|clone|kill|signal' kdump.out > 79953 strmqm CALL linux_clone(0xf00,0x8099370) > 79953 strmqm RET linux_clone 79954/0x13852 > 79954 strmqm RET linux_fork 0 > 79954 strmqm CALL linux_clone(0xf21,0xbf3ffbd0) > 79954 strmqm RET linux_clone 79955/0x13853 > 79955 strmqm RET linux_fork 0 > 79954 strmqm CALL linux_kill(0x13851,0x20) > 79954 strmqm RET linux_kill 0 > 79955 strmqm CALL linux_kill(0x13851,0x20) > 79955 strmqm RET linux_kill 0 > 79955 strmqm CALL linux_kill(0x13851,0x20) > 79955 strmqm RET linux_kill 0 > 79955 strmqm CALL linux_kill(0x13851,0x20) > 79955 strmqm RET linux_kill 0 > uucp:*:66:66:UUCP > pseudo-user:/var/spool/uucppublic:/usr/libexec/uucp/uucico > 79954 strmqm CALL linux_clone(0xf21,0xbf1ffbd0) > 79954 strmqm RET linux_clone 79956/0x13854 > 79956 strmqm RET linux_fork 0 > 79954 strmqm CALL linux_kill(0x13851,0x20) > 79954 strmqm RET linux_kill 0 > 79956 strmqm CALL linux_kill(0x13851,0x20) > 79956 strmqm RET linux_kill 0 > 79953 strmqm CALL linux_kill(0x13854,0x20) > 79953 strmqm RET linux_kill 0 > 79956 strmqm CALL linux_kill(0x13851,0x20) > 79956 strmqm RET linux_kill 0 > 79956 strmqm CALL linux_kill(0x13851,0x20) > 79956 strmqm RET linux_kill 0 > 79953 strmqm CALL linux_kill(0x13853,0x1c) > 79953 strmqm RET linux_kill RESTART > permitted' from pthread_kill.) > | ('1 - Operation not permitted' from pthread_kill.) > | " > "| Comment1 :- '1 - Operation not permitted' from > pthread_kill. | > 79954 strmqm CALL linux_kill(0x13854,0x21) > 79954 strmqm RET linux_kill RESTART > 79954 strmqm CALL linux_kill(0x13853,0x21) > 79954 strmqm RET linux_kill RESTART > > Looks like signal 32 is OK, but there are 28 and 33 in addition to it. > 33 seems to be another Linux real-time signal and is probably used with > linux threads for some purpose. Here's what I read in signal(7) Linux > man page: > <<< > Linux supports real-time signals as originally defined in the POSIX.4 > real-time extensions (and now included in POSIX 1003.1-2001). Linux > supports 32 real-time signals, numbered from 32 (SIGRTMIN) to 63 > (SIGRTMAX). (Programs should always refer to real-time signals using > notation SIGRTMIN+n, since the range of real-time signal numbers varies > across Unices.) > > Unlike standard signals, real-time signals have no predefined meanings: > the entire set of real-time signals can be used for application-defined > purposes. > > (Note, however, that the LinuxThreads implementation uses the first > three real-time signals.) > > So probably 32,33,34 should be subject to your patch. > > I am not sure what signal 28 (SIGWINCH?) is used for (in this case), but > most probably it is not thread-related and not application critical, > because execution continues after that signal, but an error message is > logged. > From owner-freebsd-emulation@FreeBSD.ORG Thu Mar 10 13:20:06 2005 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5FA3316A4CE for ; Thu, 10 Mar 2005 13:20:06 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4273343D4C for ; Thu, 10 Mar 2005 13:20:06 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j2ADK6nE040792 for ; Thu, 10 Mar 2005 13:20:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j2ADK6mB040791; Thu, 10 Mar 2005 13:20:06 GMT (envelope-from gnats) Date: Thu, 10 Mar 2005 13:20:06 GMT Message-Id: <200503101320.j2ADK6mB040791@freefall.freebsd.org> To: emulation@FreeBSD.org From: Andriy Gapon Subject: Re: kern/72922: linux emulation: suid/sgid threaded applications hang X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Andriy Gapon List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2005 13:20:06 -0000 The following reply was made to PR kern/72922; it has been noted by GNATS. From: Andriy Gapon To: Maxim Sobolev Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: kern/72922: linux emulation: suid/sgid threaded applications hang Date: Thu, 10 Mar 2005 15:10:13 +0200 on 10.03.2005 14:56 Maxim Sobolev said the following: > I see. Try to replace the following line in kern_prot.c: > > if (signum == SIGTHR && td->td_proc->p_leader != NULL && > > with the following: > > if (signum >= SIGTHR && td->td_proc->p_leader != NULL && > > And let me know if it helps. that's what came to my mind too, but unfortunately I will only be able to try it in a week or two. > BTW, would be be interested in getting FreeBSD commit bit, so that you > can do the work by yourself? ;-) I have always dreamt about it, but I feel like it is more responsibility than I can take now. Unfortunately, I am also too short of capabilities to test kernel changes. Thank you, maybe later. -- Andriy Gapon From owner-freebsd-emulation@FreeBSD.ORG Thu Mar 10 15:04:23 2005 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8CC3516A4CE for ; Thu, 10 Mar 2005 15:04:23 +0000 (GMT) Received: from mailout04.sul.t-online.com (mailout04.sul.t-online.com [194.25.134.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id D151043D62 for ; Thu, 10 Mar 2005 15:04:22 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from fwd33.aul.t-online.de by mailout04.sul.t-online.com with smtp id 1D9PD3-0001fg-03; Thu, 10 Mar 2005 16:04:21 +0100 Received: from Andro-Beta.Leidinger.net (SsF1sYZdweKhCMkGsukt-WhEwejfy4vMJMHbNZ9c2FsB4yOLvLzVZZ@[84.128.198.80]) by fwd33.sul.t-online.de with esmtp id 1D9PCr-02piFc0; Thu, 10 Mar 2005 16:04:09 +0100 Received: from localhost (localhost [127.0.0.1])j2AF35BF039893; Thu, 10 Mar 2005 16:03:06 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from 141.113.101.32 ([141.113.101.32]) by netchild.homeip.net (Horde) with HTTP for ; Thu, 10 Mar 2005 16:03:05 +0100 Message-ID: <20050310160305.6kk362lui0os8oks@netchild.homeip.net> X-Priority: 3 (Normal) Date: Thu, 10 Mar 2005 16:03:05 +0100 From: Alexander Leidinger To: Carl J References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.2) / FreeBSD-4.11 X-ID: SsF1sYZdweKhCMkGsukt-WhEwejfy4vMJMHbNZ9c2FsB4yOLvLzVZZ@t-dialin.net X-TOI-MSGID: e726a350-7612-4632-9533-92213535fac1 cc: freebsd-emulation@freebsd.org Subject: Re: Multiple Simultaneous linux_base X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2005 15:04:23 -0000 Carl J wrote: > Most of my Linux apps need linux_base8, > but I have a few old apps that need linux_base6. > > Is there a way to install both simultaneous (and set up some sort > of mapping or such, to enable different app to use different base)? No, this isn't possible (except you provide patches fot the kernel which makes this possible ;-) ). And installing both bases into the same directory isn't a good idea either, they share some files in different versions. But you can install v6, rename /compat/linux to /compat/linux6, remove /var/db/pkg/linux_base-6*, install the v8 linux base, copy the files which the old apps need to /compat/linux/ and remove /compat/linux6. This way you can use both kind of apps, but you have files installed, which aren't registered in the package database. Another possibility to remove the conflicts line from the linux_base ports, install one, mv it to another name as above, install the other one, move it to another name too, and create a symlink from the version you want to use to /compat/linux. This way you can change the symlink to an appropriate "value" when you start a program. But you shouldn't run programs with different linux base dependencies at the same time. Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 Please state the nature of the technical emergency From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 11 22:04:18 2005 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E8EF016A4CE for ; Fri, 11 Mar 2005 22:04:18 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id B93F243D2F for ; Fri, 11 Mar 2005 22:04:18 +0000 (GMT) (envelope-from julian@elischer.org) Received: from [208.206.78.97] (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id B0FE37A443; Fri, 11 Mar 2005 14:04:18 -0800 (PST) Message-ID: <423215E2.50801@elischer.org> Date: Fri, 11 Mar 2005 14:04:18 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050218 X-Accept-Language: en, hu MIME-Version: 1.0 To: freebsd-emulation@freebsd.org References: <20050311120017.A114B16A4D1@hub.freebsd.org> In-Reply-To: <20050311120017.A114B16A4D1@hub.freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: carlj1752@hotmail.com cc: lexander@Leidinger.net Subject: multiple versions loaded of linux emu. X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Mar 2005 22:04:19 -0000 >Date: Thu, 10 Mar 2005 16:03:05 +0100 >From: Alexander Leidinger >Subject: Re: Multiple Simultaneous linux_base >To: Carl J >Cc: freebsd-emulation@freebsd.org >Message-ID: <20050310160305.6kk362lui0os8oks@netchild.homeip.net> >Content-Type: text/plain; charset=ISO-8859-15; format="flowed" > >Carl J wrote: > > > >>Most of my Linux apps need linux_base8, >>but I have a few old apps that need linux_base6. >> >>Is there a way to install both simultaneous (and set up some sort >>of mapping or such, to enable different app to use different base)? >> >> > >No, this isn't possible (except you provide patches fot the kernel which >makes this possible ;-) ). And installing both bases into the same directory >isn't a good idea either, they share some files in different versions. > > this is not entirely true.. As shared libraries are versionned, one can make sure that the libraries needed by programs that want older versions are satisfied in their library requests by installing older versions of the linux emulation first and working forward towards the latest one. It may be worth making an linux-old-libs port that effectively contains just the older revisions of libraries so that programs that require them can still run. >But you can install v6, rename /compat/linux to /compat/linux6, remove >/var/db/pkg/linux_base-6*, install the v8 linux base, copy the files which >the old apps need to /compat/linux/ and remove /compat/linux6. This way you >can use both kind of apps, but you have files installed, which aren't >registered in the package database. > >Another possibility to remove the conflicts line from the linux_base ports, >install one, mv it to another name as above, install the other one, move it >to another name too, and create a symlink from the version you want to use >to /compat/linux. This way you can change the symlink to an appropriate >"value" when you start a program. But you shouldn't run programs with >different linux base dependencies at the same time. > >Bye, >Alexander. > > > From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 12 08:45:10 2005 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 20D9316A4CE for ; Sat, 12 Mar 2005 08:45:10 +0000 (GMT) Received: from mailout06.sul.t-online.com (mailout06.sul.t-online.com [194.25.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8651F43D1D for ; Sat, 12 Mar 2005 08:45:09 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from fwd23.aul.t-online.de by mailout06.sul.t-online.com with smtp id 1DA2F9-0005Nu-00; Sat, 12 Mar 2005 09:45:07 +0100 Received: from Andro-Beta.Leidinger.net (XGTdCMZbreAGFDO4DeJPLjK9-DYd+FpCyHs-edYrxBDwQqN8aKbVwy@[217.229.212.113]) by fwd23.sul.t-online.de with esmtp id 1DA2F2-171pC40; Sat, 12 Mar 2005 09:45:00 +0100 Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) j2C8hjjp095868; Sat, 12 Mar 2005 09:43:45 +0100 (CET) (envelope-from Alexander@Leidinger.net) Date: Sat, 12 Mar 2005 09:46:08 +0100 From: Alexander Leidinger To: Julian Elischer Message-ID: <20050312094608.0ff21547@Magellan.Leidinger.net> In-Reply-To: <423215E2.50801@elischer.org> References: <20050311120017.A114B16A4D1@hub.freebsd.org> <423215E2.50801@elischer.org> X-Mailer: Sylpheed-Claws 1.0.1 (GTK+ 1.2.10; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-ID: XGTdCMZbreAGFDO4DeJPLjK9-DYd+FpCyHs-edYrxBDwQqN8aKbVwy@t-dialin.net X-TOI-MSGID: b76906fc-d63d-4149-8268-734315f41671 cc: carlj1752@hotmail.com cc: freebsd-emulation@freebsd.org Subject: Re: multiple versions loaded of linux emu. X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Mar 2005 08:45:10 -0000 On Fri, 11 Mar 2005 14:04:18 -0800 Julian Elischer wrote: > >>Is there a way to install both simultaneous (and set up some sort > >>of mapping or such, to enable different app to use different base)? > >> > >> > > > >No, this isn't possible (except you provide patches fot the kernel which > >makes this possible ;-) ). And installing both bases into the same directory > >isn't a good idea either, they share some files in different versions. > > > > > > this is not entirely true.. > As shared libraries are versionned, one can make sure that the libraries > needed by programs that want older versions are satisfied in their library > requests by installing older versions of the linux emulation first and > working forward > towards the latest one. The linux_base ports not only contain libs. And stale files still available may lead to strange effects. Everyone is free to do what he wants off course, but my personal advise is to carefully evaluate what you do. > It may be worth making an linux-old-libs port that effectively contains > just the older revisions > of libraries so that programs that require them can still run. I think such a port will be flagged as FORBITTEN very fast... Bye, Alexander. -- Failure is not an option. It comes bundled with your Microsoft product. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7