From owner-freebsd-emulation@FreeBSD.ORG Sun Aug 20 00:55:05 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 13B7416A4DA for ; Sun, 20 Aug 2006 00:55:05 +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 14E8043D49 for ; Sun, 20 Aug 2006 00:55:03 +0000 (GMT) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([83.239.48.142]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id k7K0secj096574; Sun, 20 Aug 2006 04:54:51 +0400 (MSD) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1GEbZJ-0000B3-9C; Sun, 20 Aug 2006 04:53:37 +0400 To: Divacky Roman References: <20060819104117.GA99504@stud.fit.vutbr.cz> <20060819134825.17a98fb1@Magellan.Leidinger.net> <16412869@bsam.ru> <20060819123837.GA3211@stud.fit.vutbr.cz> From: Boris Samorodov Date: Sun, 20 Aug 2006 04:53:37 +0400 In-Reply-To: <20060819123837.GA3211@stud.fit.vutbr.cz> (Divacky Roman's message of "Sat, 19 Aug 2006 14:38:37 +0200") Message-ID: <71766606@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: Yuri , Alexander Leidinger , freebsd-emulation@freebsd.org Subject: Re: panic when running acroread on recent -CURRENT/amd64 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, 20 Aug 2006 00:55:05 -0000 On Sat, 19 Aug 2006 14:38:37 +0200 Divacky Roman wrote: > On Sat, Aug 19, 2006 at 04:05:30PM +0400, Boris Samorodov wrote: > > On Sat, 19 Aug 2006 13:48:25 +0200 Alexander Leidinger wrote: > > > Quoting Divacky Roman (Sat, 19 Aug 2006 12:41:18 +0200): > > > > > > 1) I can fix this (its trivial) and wait what else will cause panic > > > > > > > > 2) I can port MI emuldata stuff to amd64 (but I cannot test it) and this > > > > should fix all these panics like the one you are seeing > > > > > > > > 3) I can say "amd64 linuxolator is broken now pls wait" > > > > > Forget about 3), either 2) or 1). > > > > I'd vote for 2). > > > > Roman, I have an amd64 machine to test your patches. > www.stud.fit.vutbr.cz/~xdivac02/amd64.patch > pls tell me if this works (it WONT work with 2.6 kernel because we lack the MD parts) OK, I managed to test the patch on -current amd64. So far I tried acroread, linux-firefox and linux-opera. All of them are core dumping when start. It's a little bit better than without the patch when the system just reboots. What should I do further? BTW, after applying the patch I did only make kernel. Seems that it's enough. How can I do it faster? Maybe compile/install a linux kernel module? 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 Sun Aug 20 08:14:29 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 363F716A4DA for ; Sun, 20 Aug 2006 08:14:29 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.10.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8021843D45 for ; Sun, 20 Aug 2006 08:14:27 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.7/8.13.7) with ESMTP id k7K8ELUl052985 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sun, 20 Aug 2006 10:14:21 +0200 (CEST) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.7/8.13.3/Submit) id k7K8ELO4052984; Sun, 20 Aug 2006 10:14:21 +0200 (CEST) Date: Sun, 20 Aug 2006 10:14:21 +0200 From: Divacky Roman To: Boris Samorodov Message-ID: <20060820081421.GA52836@stud.fit.vutbr.cz> References: <20060819104117.GA99504@stud.fit.vutbr.cz> <20060819134825.17a98fb1@Magellan.Leidinger.net> <16412869@bsam.ru> <20060819123837.GA3211@stud.fit.vutbr.cz> <71766606@bsam.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <71766606@bsam.ru> User-Agent: Mutt/1.4.2i X-Scanned-By: MIMEDefang 2.54 on 147.229.10.14 Cc: Yuri , Alexander Leidinger , freebsd-emulation@freebsd.org Subject: Re: panic when running acroread on recent -CURRENT/amd64 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, 20 Aug 2006 08:14:29 -0000 On Sun, Aug 20, 2006 at 04:53:37AM +0400, Boris Samorodov wrote: > On Sat, 19 Aug 2006 14:38:37 +0200 Divacky Roman wrote: > > On Sat, Aug 19, 2006 at 04:05:30PM +0400, Boris Samorodov wrote: > > > On Sat, 19 Aug 2006 13:48:25 +0200 Alexander Leidinger wrote: > > > > Quoting Divacky Roman (Sat, 19 Aug 2006 12:41:18 +0200): > > > > > > > > 1) I can fix this (its trivial) and wait what else will cause panic > > > > > > > > > > 2) I can port MI emuldata stuff to amd64 (but I cannot test it) and this > > > > > should fix all these panics like the one you are seeing > > > > > > > > > > 3) I can say "amd64 linuxolator is broken now pls wait" > > > > > > > Forget about 3), either 2) or 1). > > > > > > I'd vote for 2). > > > > > > Roman, I have an amd64 machine to test your patches. > > > www.stud.fit.vutbr.cz/~xdivac02/amd64.patch > > > pls tell me if this works (it WONT work with 2.6 kernel because we lack the MD parts) > > OK, I managed to test the patch on -current amd64. So far I tried > acroread, linux-firefox and linux-opera. All of them are core dumping > when start. It's a little bit better than without the patch when the > system just reboots. with 2.4 emulation all programs coredump? can you please compile -DDEBUG linuxolator and send me (I'd prefer you put it on some web or somethign...) the debug output? > BTW, after applying the patch I did only make kernel. Seems that it's > enough. How can I do it faster? Maybe compile/install a linux kernel > module? for kernel module you need some patches which are not in -current, just apply http://perforce.freebsd.org/fileDiffView.cgi?FSPC=//depot/projects/soc2006/rdivacky%5flinuxolator/kern/link%5felf%5fobj.c&REV=2&ACT=edit and "cd /sys/modules/linux && make -DDEBUG && make install" then plain kldload linux should work but pls dont forget to -DDEBUG thnx roman From owner-freebsd-emulation@FreeBSD.ORG Sun Aug 20 09:55:17 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 D52FC16A4E1 for ; Sun, 20 Aug 2006 09:55:08 +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 B5ABA43D79 for ; Sun, 20 Aug 2006 09:55:04 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5F524.dip.t-dialin.net [84.165.245.36]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k7K9bp8w007373; Sun, 20 Aug 2006 11:37:52 +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 k7K9t8qo044945; Sun, 20 Aug 2006 11:55:08 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Sun, 20 Aug 2006 11:57:15 +0200 From: Alexander Leidinger To: Boris Samorodov Message-ID: <20060820115715.67055f0f@Magellan.Leidinger.net> In-Reply-To: <71766606@bsam.ru> References: <20060819104117.GA99504@stud.fit.vutbr.cz> <20060819134825.17a98fb1@Magellan.Leidinger.net> <16412869@bsam.ru> <20060819123837.GA3211@stud.fit.vutbr.cz> <71766606@bsam.ru> 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: Yuri , freebsd-emulation@freebsd.org Subject: Re: panic when running acroread on recent -CURRENT/amd64 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, 20 Aug 2006 09:55:18 -0000 Quoting Boris Samorodov (Sun, 20 Aug 2006 04:53:37 +0400): > On Sat, 19 Aug 2006 14:38:37 +0200 Divacky Roman wrote: > > On Sat, Aug 19, 2006 at 04:05:30PM +0400, Boris Samorodov wrote: > > > On Sat, 19 Aug 2006 13:48:25 +0200 Alexander Leidinger wrote: > > > > Quoting Divacky Roman (Sat, 19 Aug 2006 12:41:18 +0200): > > > > > > > > 1) I can fix this (its trivial) and wait what else will cause panic > > > > > > > > > > 2) I can port MI emuldata stuff to amd64 (but I cannot test it) and this > > > > > should fix all these panics like the one you are seeing > > > > > > > > > > 3) I can say "amd64 linuxolator is broken now pls wait" > > > > > > > Forget about 3), either 2) or 1). > > > > > > I'd vote for 2). > > > > > > Roman, I have an amd64 machine to test your patches. > > > www.stud.fit.vutbr.cz/~xdivac02/amd64.patch > > > pls tell me if this works (it WONT work with 2.6 kernel because we lack the MD parts) > > OK, I managed to test the patch on -current amd64. So far I tried > acroread, linux-firefox and linux-opera. All of them are core dumping > when start. It's a little bit better than without the patch when the > system just reboots. Then the patch seems to work. The coredump is because of a different bug. If you want to help debugging it, you should coordinate with jhb@ (it requires to add some printf()s to the kernel). > What should I do further? > > BTW, after applying the patch I did only make kernel. Seems that it's > enough. How can I do it faster? Maybe compile/install a linux kernel > module? Yes, loading it as a module with speed it up. You could unload/load it then. Bye, Alexander. -- There was a young man of Australia Who went on a wild bacchanalia. He buggered a frog, Two mice and a dog, And a bishop in fullest regalia. 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 Aug 20 13:30: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 CDF7B16A4DD for ; Sun, 20 Aug 2006 13:30:37 +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 23FA943D49 for ; Sun, 20 Aug 2006 13:30:33 +0000 (GMT) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([83.239.48.169]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id k7KDUF7x051286 for ; Sun, 20 Aug 2006 17:30:25 +0400 (MSD) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1GEnM4-0000BT-KU; Sun, 20 Aug 2006 17:28:44 +0400 To: Divacky Roman References: <20060819104117.GA99504@stud.fit.vutbr.cz> <20060819134825.17a98fb1@Magellan.Leidinger.net> <16412869@bsam.ru> <20060819123837.GA3211@stud.fit.vutbr.cz> <71766606@bsam.ru> <20060820081421.GA52836@stud.fit.vutbr.cz> From: Boris Samorodov Date: Sun, 20 Aug 2006 17:28:44 +0400 In-Reply-To: <20060820081421.GA52836@stud.fit.vutbr.cz> (Divacky Roman's message of "Sun, 20 Aug 2006 10:14:21 +0200") Message-ID: <94953619@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: Yuri , Alexander Leidinger , freebsd-emulation@freebsd.org Subject: Re: panic when running acroread on recent -CURRENT/amd64 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, 20 Aug 2006 13:30:37 -0000 On Sun, 20 Aug 2006 10:14:21 +0200 Divacky Roman wrote: > On Sun, Aug 20, 2006 at 04:53:37AM +0400, Boris Samorodov wrote: > > On Sat, 19 Aug 2006 14:38:37 +0200 Divacky Roman wrote: > > > www.stud.fit.vutbr.cz/~xdivac02/amd64.patch > > > > > pls tell me if this works (it WONT work with 2.6 kernel because we lack the MD parts) > > > > OK, I managed to test the patch on -current amd64. So far I tried > > acroread, linux-firefox and linux-opera. All of them are core dumping > > when start. It's a little bit better than without the patch when the > > system just reboots. > > with 2.4 emulation all programs coredump? can you please compile -DDEBUG linuxolator > and send me (I'd prefer you put it on some web or somethign...) the debug output? > > > BTW, after applying the patch I did only make kernel. Seems that it's > > enough. How can I do it faster? Maybe compile/install a linux kernel > > module? > for kernel module you need some patches which are not in -current, just apply > http://perforce.freebsd.org/fileDiffView.cgi?FSPC=//depot/projects/soc2006/rdivacky%5flinuxolator/kern/link%5felf%5fobj.c&REV=2&ACT=edit > and "cd /sys/modules/linux && make -DDEBUG && make install" then plain kldload linux should work > but pls dont forget to -DDEBUG Here are the results: ftp://ftp.ipt.ru/pub/amd64 BTW, bash.core -- it's a result of running acroread. 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 Sun Aug 20 15:48:41 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 1C65516A4DA for ; Sun, 20 Aug 2006 15:48:41 +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 4B9A943D66 for ; Sun, 20 Aug 2006 15:46:52 +0000 (GMT) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([83.239.48.154]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id k7KFkQwL061732; Sun, 20 Aug 2006 19:46:36 +0400 (MSD) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1GEpTw-0000BY-TR; Sun, 20 Aug 2006 19:45:00 +0400 To: Divacky Roman References: <20060819104117.GA99504@stud.fit.vutbr.cz> <20060819134825.17a98fb1@Magellan.Leidinger.net> <16412869@bsam.ru> <20060819123837.GA3211@stud.fit.vutbr.cz> <71766606@bsam.ru> <20060820081421.GA52836@stud.fit.vutbr.cz> <94953619@bsam.ru> From: Boris Samorodov Date: Sun, 20 Aug 2006 19:45:00 +0400 In-Reply-To: <94953619@bsam.ru> (Boris Samorodov's message of "Sun, 20 Aug 2006 17:28:44 +0400") Message-ID: <80719011@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: Yuri , Alexander Leidinger , freebsd-emulation@freebsd.org Subject: Re: panic when running acroread on recent -CURRENT/amd64 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, 20 Aug 2006 15:48:41 -0000 On Sun, 20 Aug 2006 17:28:44 +0400 Boris Samorodov wrote: > On Sun, 20 Aug 2006 10:14:21 +0200 Divacky Roman wrote: > > On Sun, Aug 20, 2006 at 04:53:37AM +0400, Boris Samorodov wrote: > > > On Sat, 19 Aug 2006 14:38:37 +0200 Divacky Roman wrote: > > > > www.stud.fit.vutbr.cz/~xdivac02/amd64.patch > > > > > > > pls tell me if this works (it WONT work with 2.6 kernel because we lack the MD parts) > > > > > > OK, I managed to test the patch on -current amd64. So far I tried > > > acroread, linux-firefox and linux-opera. All of them are core dumping > > > when start. It's a little bit better than without the patch when the > > > system just reboots. > > > > with 2.4 emulation all programs coredump? can you please compile -DDEBUG linuxolator > > and send me (I'd prefer you put it on some web or somethign...) the debug output? > > > > > BTW, after applying the patch I did only make kernel. Seems that it's > > > enough. How can I do it faster? Maybe compile/install a linux kernel > > > module? > > for kernel module you need some patches which are not in -current, just apply > > http://perforce.freebsd.org/fileDiffView.cgi?FSPC=//depot/projects/soc2006/rdivacky%5flinuxolator/kern/link%5felf%5fobj.c&REV=2&ACT=edit > > and "cd /sys/modules/linux && make -DDEBUG && make install" then plain kldload linux should work > > but pls dont forget to -DDEBUG > Here are the results: > ftp://ftp.ipt.ru/pub/amd64 > BTW, bash.core -- it's a result of running acroread. Well, I just notice that -DDEBUG is not respected by make command. I added this option to Makefile [1]: ----- # $FreeBSD: src/sys/modules/linux/Makefile,v 1.68 2006/08/15 13:01:36 netchild Exp $ .if ${MACHINE_ARCH} == "amd64" SFX= 32 CFLAGS+=-DCOMPAT_IA32 -DCOMPAT_LINUX32 -DDEBUG [1] .endif ----- Then I've got: ----- # make ... Warning: Object directory not changed from original /usr/src/sys/modules/linux cc -O2 -fno-strict-aliasing -pipe -DCOMPAT_IA32 -DCOMPAT_LINUX32 -DDEBUG -Werror -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc -I- -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -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 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -fformat-extensions -c /usr/src/sys/modules/linux/../../amd64/linux32/linux32_machdep.c /usr/src/sys/modules/linux/../../amd64/linux32/linux32_machdep.c: In function `linux_clone': /usr/src/sys/modules/linux/../../amd64/linux32/linux32_machdep.c:504: warning: cast from pointer to integer of different size /usr/src/sys/modules/linux/../../amd64/linux32/linux32_machdep.c:505: warning: cast from pointer to integer of different size /usr/src/sys/modules/linux/../../amd64/linux32/linux32_machdep.c:505: warning: cast from pointer to integer of different size *** Error code 1 Stop in /usr/src/sys/modules/linux. ----- 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 Sun Aug 20 16:52: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 D306516A4DE for ; Sun, 20 Aug 2006 16:52:26 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.10.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3150443D79 for ; Sun, 20 Aug 2006 16:52:25 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.7/8.13.7) with ESMTP id k7KGqJUI068080 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Sun, 20 Aug 2006 18:52:19 +0200 (CEST) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.7/8.13.3/Submit) id k7KGqJEI068079 for emulation@freebsd.org; Sun, 20 Aug 2006 18:52:19 +0200 (CEST) Date: Sun, 20 Aug 2006 18:52:19 +0200 From: Divacky Roman To: emulation@freebsd.org Message-ID: <20060820165218.GA68068@stud.fit.vutbr.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2i X-Scanned-By: MIMEDefang 2.54 on 147.229.10.14 Cc: Subject: amd64 tls 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, 20 Aug 2006 16:52:26 -0000 www.stud.fit.vutbr.cz/~xdivac02/amd64-tls.patch pls test and tell me :) ---------------------- www.liberalnistrana.cz From owner-freebsd-emulation@FreeBSD.ORG Sun Aug 20 17:04:25 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 DBBDD16A4DF for ; Sun, 20 Aug 2006 17:04: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 999A643D6D for ; Sun, 20 Aug 2006 17:03:21 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5E1AD.dip.t-dialin.net [84.165.225.173]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k7KGjqxa008748; Sun, 20 Aug 2006 18:45:52 +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 k7KH3Cxk005923; Sun, 20 Aug 2006 19:03:12 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Sun, 20 Aug 2006 19:05:20 +0200 From: Alexander Leidinger To: Boris Samorodov Message-ID: <20060820190520.3e147062@Magellan.Leidinger.net> In-Reply-To: <80719011@bsam.ru> References: <20060819104117.GA99504@stud.fit.vutbr.cz> <20060819134825.17a98fb1@Magellan.Leidinger.net> <16412869@bsam.ru> <20060819123837.GA3211@stud.fit.vutbr.cz> <71766606@bsam.ru> <20060820081421.GA52836@stud.fit.vutbr.cz> <94953619@bsam.ru> <80719011@bsam.ru> 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: Yuri , freebsd-emulation@freebsd.org Subject: Re: panic when running acroread on recent -CURRENT/amd64 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, 20 Aug 2006 17:04:25 -0000 Quoting Boris Samorodov (Sun, 20 Aug 2006 19:45:00 +0400): > sys/modules/linux/../../amd64/linux32/linux32_machdep.c > /usr/src/sys/modules/linux/../../amd64/linux32/linux32_machdep.c: In function `linux_clone': > /usr/src/sys/modules/linux/../../amd64/linux32/linux32_machdep.c:504: warning: cast from pointer to integer of different size > /usr/src/sys/modules/linux/../../amd64/linux32/linux32_machdep.c:505: warning: cast from pointer to integer of different size > /usr/src/sys/modules/linux/../../amd64/linux32/linux32_machdep.c:505: warning: cast from pointer to integer of different size Strange. Roman reported he tried to compile this on an amd64 machine and he didn't got errors/warnings. He also tested your way (adding -DDEBUG to the module build). Bye, Alexander. -- An expert is one who knows more and more about less and less until he knows absolutely everything about nothing. 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 Aug 20 18:02: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 82AC416A4E0 for ; Sun, 20 Aug 2006 18:02:18 +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 BFDEA43D5A for ; Sun, 20 Aug 2006 18:02:16 +0000 (GMT) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([83.239.48.165]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id k7KI1vdX075568; Sun, 20 Aug 2006 22:02:07 +0400 (MSD) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1GErbO-0000Ba-65; Sun, 20 Aug 2006 22:00:50 +0400 To: Divacky Roman References: <20060820165218.GA68068@stud.fit.vutbr.cz> From: Boris Samorodov Date: Sun, 20 Aug 2006 22:00:50 +0400 In-Reply-To: <20060820165218.GA68068@stud.fit.vutbr.cz> (Divacky Roman's message of "Sun, 20 Aug 2006 18:52:19 +0200") Message-ID: <46791581@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: amd64 tls 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, 20 Aug 2006 18:02:18 -0000 On Sun, 20 Aug 2006 18:52:19 +0200 Divacky Roman wrote: > www.stud.fit.vutbr.cz/~xdivac02/amd64-tls.patch > pls test and tell me :) The patch doesn't apply cleanly to -current amd64 (as of yesterday): ----- ... Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |==== //depot/projects/soc2006/rdivacky_linuxolator/amd64/linux32/linux32_machdep.c#9 - /root/projects/soc2006/amd64/linux32/linux32_machdep.c ==== |--- /tmp/tmp.59197.1 Sun Aug 20 18:43:43 2006 |+++ /root/projects/soc2006/amd64/linux32/linux32_machdep.c Sun Aug 20 18:42:10 2006 -------------------------- Patching file amd64/linux32/linux32_machdep.c using Plan A... Hunk #1 succeeded at 61 with fuzz 2 (offset -1 lines). Hunk #2 failed at 619. Hunk #3 succeeded at 1086 (offset -85 lines). 1 out of 3 hunks failed--saving rejects to amd64/linux32/linux32_machdep.c.rej ... ----- But if I apply your amd64.patch and then amd64-tls.patch both apply cleanly. But then kernel doesn't build: ----- ... cc -c -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 -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 -Werror /usr/src/sys/amd64/linux32/linux32_machdep.c /usr/src/sys/amd64/linux32/linux32_machdep.c: In function `linux_clone': /usr/src/sys/amd64/linux32/linux32_machdep.c:670: warning: left shift count >= width of type /usr/src/sys/amd64/linux32/linux32_machdep.c: In function `linux_set_thread_area': /usr/src/sys/amd64/linux32/linux32_machdep.c:1262: warning: left shift count >= width of type *** Error code 1 Stop in /usr/obj/usr/src/sys/GENERIC. *** Error code 1 ----- I'm ready for your further instructions. ;-) 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 Sun Aug 20 22:38: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 5309C16A4DD for ; Sun, 20 Aug 2006 22:38:24 +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 EBB3043D53 for ; Sun, 20 Aug 2006 22:38:22 +0000 (GMT) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([83.239.48.136]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id k7KMc2Ix005437 for ; Mon, 21 Aug 2006 02:38:12 +0400 (MSD) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1GEvuE-0000BL-BU; Mon, 21 Aug 2006 02:36:34 +0400 To: Alexander Leidinger References: <20060819104117.GA99504@stud.fit.vutbr.cz> <20060819134825.17a98fb1@Magellan.Leidinger.net> <16412869@bsam.ru> <20060819123837.GA3211@stud.fit.vutbr.cz> <71766606@bsam.ru> <20060820081421.GA52836@stud.fit.vutbr.cz> <94953619@bsam.ru> <80719011@bsam.ru> <20060820190520.3e147062@Magellan.Leidinger.net> From: Boris Samorodov Date: Mon, 21 Aug 2006 02:36:34 +0400 In-Reply-To: <20060820190520.3e147062@Magellan.Leidinger.net> (Alexander Leidinger's message of "Sun, 20 Aug 2006 19:05:20 +0200") Message-ID: <03914141@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: Yuri , freebsd-emulation@freebsd.org Subject: Re: panic when running acroread on recent -CURRENT/amd64 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, 20 Aug 2006 22:38:24 -0000 On Sun, 20 Aug 2006 19:05:20 +0200 Alexander Leidinger wrote: > Quoting Boris Samorodov (Sun, 20 Aug 2006 19:45:00 +0400): > > sys/modules/linux/../../amd64/linux32/linux32_machdep.c > > /usr/src/sys/modules/linux/../../amd64/linux32/linux32_machdep.c: In function `linux_clone': > > /usr/src/sys/modules/linux/../../amd64/linux32/linux32_machdep.c:504: warning: cast from pointer to integer of different size > > /usr/src/sys/modules/linux/../../amd64/linux32/linux32_machdep.c:505: warning: cast from pointer to integer of different size > > /usr/src/sys/modules/linux/../../amd64/linux32/linux32_machdep.c:505: warning: cast from pointer to integer of different size > Strange. Roman reported he tried to compile this on an amd64 machine > and he didn't got errors/warnings. He also tested your way (adding > -DDEBUG to the module build). Now all is OK. I re-cvsupped the sources and he sent me a new patch. ;-) 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 Mon Aug 21 08:04:43 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 6260C16A4DD for ; Mon, 21 Aug 2006 08:04:43 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.10.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35B2043D53 for ; Mon, 21 Aug 2006 08:04:42 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.7/8.13.7) with ESMTP id k7L84art013931 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 21 Aug 2006 10:04:36 +0200 (CEST) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.7/8.13.3/Submit) id k7L84aIN013930; Mon, 21 Aug 2006 10:04:36 +0200 (CEST) Date: Mon, 21 Aug 2006 10:04:36 +0200 From: Divacky Roman To: Boris Samorodov Message-ID: <20060821080436.GA13881@stud.fit.vutbr.cz> References: <20060819104117.GA99504@stud.fit.vutbr.cz> <20060819134825.17a98fb1@Magellan.Leidinger.net> <16412869@bsam.ru> <20060819123837.GA3211@stud.fit.vutbr.cz> <71766606@bsam.ru> <20060820081421.GA52836@stud.fit.vutbr.cz> <94953619@bsam.ru> <80719011@bsam.ru> <20060820190520.3e147062@Magellan.Leidinger.net> <03914141@bsam.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <03914141@bsam.ru> User-Agent: Mutt/1.4.2i X-Scanned-By: MIMEDefang 2.54 on 147.229.10.14 Cc: Yuri , Alexander Leidinger , freebsd-emulation@freebsd.org Subject: Re: panic when running acroread on recent -CURRENT/amd64 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, 21 Aug 2006 08:04:43 -0000 On Mon, Aug 21, 2006 at 02:36:34AM +0400, Boris Samorodov wrote: > On Sun, 20 Aug 2006 19:05:20 +0200 Alexander Leidinger wrote: > > Quoting Boris Samorodov (Sun, 20 Aug 2006 19:45:00 +0400): > > > > sys/modules/linux/../../amd64/linux32/linux32_machdep.c > > > /usr/src/sys/modules/linux/../../amd64/linux32/linux32_machdep.c: In function `linux_clone': > > > /usr/src/sys/modules/linux/../../amd64/linux32/linux32_machdep.c:504: warning: cast from pointer to integer of different size > > > /usr/src/sys/modules/linux/../../amd64/linux32/linux32_machdep.c:505: warning: cast from pointer to integer of different size > > > /usr/src/sys/modules/linux/../../amd64/linux32/linux32_machdep.c:505: warning: cast from pointer to integer of different size > > > Strange. Roman reported he tried to compile this on an amd64 machine > > and he didn't got errors/warnings. He also tested your way (adding > > -DDEBUG to the module build). > > Now all is OK. I re-cvsupped the sources and he sent me a new > patch. ;-) the amd64-tls.patch DOESNT TOUCH this code ;) its all very strange From owner-freebsd-emulation@FreeBSD.ORG Mon Aug 21 10:01:01 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 1B96016A4E2 for ; Mon, 21 Aug 2006 10:01:01 +0000 (UTC) (envelope-from fenner+portsurvey@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B4F0443D49 for ; Mon, 21 Aug 2006 10:01:00 +0000 (GMT) (envelope-from fenner+portsurvey@FreeBSD.org) Received: from freefall.freebsd.org (fenner@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k7LA10dV005358 for ; Mon, 21 Aug 2006 10:01:00 GMT (envelope-from fenner+portsurvey@freefall.freebsd.org) Received: (from fenner@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k7LA10AI005357; Mon, 21 Aug 2006 10:01:00 GMT (envelope-from fenner+portsurvey) Date: Mon, 21 Aug 2006 10:01:00 GMT Message-Id: <200608211001.k7LA10AI005357@freefall.freebsd.org> From: fenner@freebsd.org (Bill "distfiles" Fenner) To: freebsd-emulation@freebsd.org Subject: FreeBSD ports: 2 unfetchable distfiles: devel/linux_devtools X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ports@freebsd.org List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Aug 2006 10:01:01 -0000 Dear freebsd-emulation@freebsd.org, You are listed as the FreeBSD port maintainer for 2 port whose distfiles are not fetchable from their MASTER_SITES. Could you please visit http://people.freebsd.org/~fenner/portsurvey/freebsd-emulation@freebsd.org.html and correct the problems listed there? The individual port with a problem is devel/linux_devtools. If you have already corrected the problems and submitted a PR, please accept my thanks and apologies for the delay in getting the fixes into the tree. This reminder is created automatically and does not (yet) have a way to know if a PR fixing the problem has been submitted. Please do *NOT* send your response to me directly; I do not necessarily have time to commit your fix; please instead submit a PR via 'send-pr' so it doesn't get lost. Problems are usually of two types: 1. The software package has been upgraded and the version in the port has been removed. The best solution to this problem is to upgrade the port to the most current version of the software package. If you are a FreeBSD committer, then you can just upgrade the port directly. If not, you should create the updated port on your own machine, test it (and maybe even run "portlint" on it), and then use "send-pr" to submit a "diff -uNr old-port updated-port". If you added or deleted any files, please make an explicit note of it. 2. The mirror site being used no longer contains the software package in question, or no longer exists. Solutions include: a) If there are other mirror sites, just remove the bad site from the list. (Make sure that what appears to be a bad site isn't actually a problem of type 1, upgrade) b) If the README or other support files in the software documentation mention where to get the software package, use one of those sites. c) Use a search engine to find another place to get the original DISTFILES. Make sure that you don't pick a FreeBSD distfiles mirror -- if you can't find any other places where the file exists, it can be a LOCAL_PORT or you can simply comment out the MASTER_SITES= line, with a comment explaining why. Once you have a solution, use "send-pr" to submit a "diff -u" of the Makefile. Note that this isn't an urgent issue, as people who try to build the port now will just fall back to the FreeBSD distfiles mirror. Please just put it on your list to do and get to it when you have time. These messages will continue to arrive twice a month until the fix is committed, as a reminder. Thanks, Bill "distfiles" Fenner. From owner-freebsd-emulation@FreeBSD.ORG Mon Aug 21 19:56:33 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 AF17816A51C for ; Mon, 21 Aug 2006 19:56:33 +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 C30D843E09 for ; Mon, 21 Aug 2006 19:56:04 +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 k7LJtF8I062446 for ; Mon, 21 Aug 2006 19:55:15 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k7LJtDhD062442 for freebsd-emulation@FreeBSD.org; Mon, 21 Aug 2006 19:55:13 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 21 Aug 2006 19:55:13 GMT Message-Id: <200608211955.k7LJtDhD062442@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, 21 Aug 2006 19:56:33 -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 f kern/45023 emulation [linux] [patch] flexlm does not run with linux-base-7, o kern/77710 emulation [linux] Linux page fault sigcontext information is wro 3 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 f ports/102034 emulation emulators/linux_base-fc4 library problems with RELENG_ 9 problems total. From owner-freebsd-emulation@FreeBSD.ORG Tue Aug 22 07:30:24 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 D993416A4DF for ; Tue, 22 Aug 2006 07:30:24 +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 B4D5143D6B for ; Tue, 22 Aug 2006 07:30:22 +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 k7M7UMOF036180 for ; Tue, 22 Aug 2006 07:30:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k7M7UMbm036179; Tue, 22 Aug 2006 07:30:22 GMT (envelope-from gnats) Date: Tue, 22 Aug 2006 07:30:22 GMT Message-Id: <200608220730.k7M7UMbm036179@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: jes Cc: Subject: Re: ports/102034: emulators/linux_base-fc4 library problems with RELENG_6_1 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jes List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Aug 2006 07:30:25 -0000 The following reply was made to PR ports/102034; it has been noted by GNATS. From: jes To: bug-followup@freebsd.org, jes@jes-2.demon.nl Cc: Subject: Re: ports/102034: emulators/linux_base-fc4 library problems with RELENG_6_1 Date: Tue, 22 Aug 2006 09:21:13 +0200 I last cvsupped the ports tree (capture of cvsup output in this file) -rw-r--r-- 1 root wheel 38174 Aug 14 20:31 ports.cvsupdate This is with a ports-all cvsup file Today (22 Aug) I did a pkg_delete of all linux packages, umount /usr/compat/linux/proc rm -rf /compat/linux I then went to /usr/ports/emulators/linux_base-fc4 and did make distclean make install After this I checked for libpthreads with a find / -name libpthread\* | tee /tmp/libpthread.find This produced: /usr/lib/libpthread.a /usr/lib/libpthread_p.a /usr/lib/libpthread.so.1 /usr/lib/libpthread.so /usr/lib/libpthread.so.0 /usr/lib/libpthread.so.2 /usr/local/lib/compat/libpthread.so.1 /usr/src/lib/libpthread /usr/src/lib/libthread_db/arch/alpha/libpthread_md.c /usr/src/lib/libthread_db/arch/amd64/libpthread_md.c /usr/src/lib/libthread_db/arch/i386/libpthread_md.c /usr/src/lib/libthread_db/arch/ia64/libpthread_md.c /usr/src/lib/libthread_db/arch/sparc64/libpthread_md.c /usr/src/lib/libthread_db/libpthread_db.c /usr/src/lib/libthread_db/libpthread_db.h /usr/compat/linux/lib/obsolete/linuxthreads/libpthread-0.10.so /usr/compat/linux/lib/obsolete/linuxthreads/libpthread.so.0 /usr/compat/linux/lib/libpthread-2.3.6.so /usr/compat/linux/lib/libpthread.so.0 /usr/obj/usr/src/tmp/usr/lib/libpthread.a /usr/obj/usr/src/tmp/usr/lib/libpthread.so.2 /usr/obj/usr/src/tmp/usr/lib/libpthread.so /usr/obj/usr/src/lib/libpthread /usr/obj/usr/src/lib/libpthread/libpthread.a /usr/obj/usr/src/lib/libpthread/libpthread.so /usr/obj/usr/src/lib/libpthread/libpthread.so.2 /usr/obj/usr/src/lib/libpthread/libpthread_p.a /usr/obj/usr/src/lib/libthread_db/libpthread_db.o /usr/obj/usr/src/lib/libthread_db/libpthread_md.o /usr/obj/usr/src/lib/libthread_db/libpthread_db.So /usr/obj/usr/src/lib/libthread_db/libpthread_md.So /usr/obj/usr/src/lib/libthread_db/libpthread_db.po /usr/obj/usr/src/lib/libthread_db/libpthread_md.po /usr/ports/emulators/linux_base-fc4/work/lib/libpthread-2.3.6.so /usr/ports/emulators/linux_base-fc4/work/lib/libpthread.so.0 /usr/ports/emulators/linux_base-fc4/work/lib/obsolete/linuxthreads/libpt= hread-0.10.so /usr/ports/emulators/linux_base-fc4/work/lib/obsolete/linuxthreads/libpt= hread.so.0 /tmp/libpthread.find So I have to conclude that the libpthread.so.0 was installed by = linux_base-fc4 And it still fails the same way: root@jes-2.demon.nl:/usr/ports/emulators/linux_base-fc4# set | grep LD OLDPWD=3D/usr/ports/emulators/linux_base-8 root@jes-2.demon.nl:/usr/ports/emulators/linux_base-fc4# = /usr/compat/linux/bin/ls /usr/compat/linux/bin/ls: error while loading shared libr aries: /usr/lib/libpthread.so.0: ELF file OS ABI invalid root@jes-2.demon.nl:/usr/ports/emulators/linux_base-fc4# From owner-freebsd-emulation@FreeBSD.ORG Tue Aug 22 08:34:16 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 28D5E16A4E2 for ; Tue, 22 Aug 2006 08:34:16 +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 ABED443DFA for ; Tue, 22 Aug 2006 08:34:04 +0000 (GMT) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([83.239.48.131]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id k7M8XlGN046070 for ; Tue, 22 Aug 2006 12:33:58 +0400 (MSD) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1GFRgX-0000EC-M4; Tue, 22 Aug 2006 12:32:33 +0400 To: jes References: <200608220730.k7M7UMbm036179@freefall.freebsd.org> From: Boris Samorodov Date: Tue, 22 Aug 2006 12:32:33 +0400 In-Reply-To: <200608220730.k7M7UMbm036179@freefall.freebsd.org> (jes@jes-2.demon.nl's message of "Tue, 22 Aug 2006 07:30:22 GMT") Message-ID: <68219662@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: freebsd-emulation@FreeBSD.org Subject: Re: ports/102034: emulators/linux_base-fc4 library problems with RELENG_6_1 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, 22 Aug 2006 08:34:16 -0000 On Tue, 22 Aug 2006 07:30:22 GMT jes wrote: > The following reply was made to PR ports/102034; it has been noted by GNATS. > From: jes > To: bug-followup@freebsd.org, jes@jes-2.demon.nl > Cc: > Subject: Re: ports/102034: emulators/linux_base-fc4 library problems with RELENG_6_1 > Date: Tue, 22 Aug 2006 09:21:13 +0200 > I last cvsupped the ports tree (capture of cvsup output in this file) > > -rw-r--r-- 1 root wheel 38174 Aug 14 20:31 ports.cvsupdate > > This is with a ports-all cvsup file > Today (22 Aug) I did a pkg_delete of all linux packages, > umount /usr/compat/linux/proc > rm -rf /compat/linux > I then went to /usr/ports/emulators/linux_base-fc4 and did > make distclean > > make install > > > After this I checked for libpthreads with a > find / -name libpthread\* | tee /tmp/libpthread.find > > This produced: > > /usr/lib/libpthread.a > /usr/lib/libpthread_p.a > /usr/lib/libpthread.so.1 (note: this one is suspicious as you have [1].) > /usr/lib/libpthread.so > /usr/lib/libpthread.so.0 Show pls "ls -l /usr/lib/libpthread.so.0". I asked about this one. Did you create it intentionally and (if yes, what was the purpose)? Did you (and how) upgrade your system? Which OS version was initially installed at your PC? Anyway, this file either should exist at /usr/local/lib/compat or it shouldn't exist at all. Try to (tempoparily) remove it and check up linux_base install. > /usr/lib/libpthread.so.2 > /usr/local/lib/compat/libpthread.so.1 [1] > /usr/src/lib/libpthread > /usr/src/lib/libthread_db/arch/alpha/libpthread_md.c > /usr/src/lib/libthread_db/arch/amd64/libpthread_md.c > /usr/src/lib/libthread_db/arch/i386/libpthread_md.c > /usr/src/lib/libthread_db/arch/ia64/libpthread_md.c > /usr/src/lib/libthread_db/arch/sparc64/libpthread_md.c > /usr/src/lib/libthread_db/libpthread_db.c > /usr/src/lib/libthread_db/libpthread_db.h > /usr/compat/linux/lib/obsolete/linuxthreads/libpthread-0.10.so > /usr/compat/linux/lib/obsolete/linuxthreads/libpthread.so.0 > /usr/compat/linux/lib/libpthread-2.3.6.so > /usr/compat/linux/lib/libpthread.so.0 > /usr/obj/usr/src/tmp/usr/lib/libpthread.a > /usr/obj/usr/src/tmp/usr/lib/libpthread.so.2 > /usr/obj/usr/src/tmp/usr/lib/libpthread.so > /usr/obj/usr/src/lib/libpthread > /usr/obj/usr/src/lib/libpthread/libpthread.a > /usr/obj/usr/src/lib/libpthread/libpthread.so > /usr/obj/usr/src/lib/libpthread/libpthread.so.2 > /usr/obj/usr/src/lib/libpthread/libpthread_p.a > /usr/obj/usr/src/lib/libthread_db/libpthread_db.o > /usr/obj/usr/src/lib/libthread_db/libpthread_md.o > /usr/obj/usr/src/lib/libthread_db/libpthread_db.So > /usr/obj/usr/src/lib/libthread_db/libpthread_md.So > /usr/obj/usr/src/lib/libthread_db/libpthread_db.po > /usr/obj/usr/src/lib/libthread_db/libpthread_md.po > /usr/ports/emulators/linux_base-fc4/work/lib/libpthread-2.3.6.so > /usr/ports/emulators/linux_base-fc4/work/lib/libpthread.so.0 > /usr/ports/emulators/linux_base-fc4/work/lib/obsolete/linuxthreads/libpt= > hread-0.10.so > /usr/ports/emulators/linux_base-fc4/work/lib/obsolete/linuxthreads/libpt= > hread.so.0 > /tmp/libpthread.find > > So I have to conclude that the libpthread.so.0 was installed by = > > linux_base-fc4 > > And it still fails the same way: > root@jes-2.demon.nl:/usr/ports/emulators/linux_base-fc4# set | grep LD > OLDPWD=3D/usr/ports/emulators/linux_base-8 > root@jes-2.demon.nl:/usr/ports/emulators/linux_base-fc4# = > > /usr/compat/linux/bin/ls > /usr/compat/linux/bin/ls: error while loading shared libr > > aries: /usr/lib/libpthread.so.0: ELF file OS ABI invalid > root@jes-2.demon.nl:/usr/ports/emulators/linux_base-fc4# > _______________________________________________ > 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" 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 Aug 22 13:52:18 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 84F5A16A4E0 for ; Tue, 22 Aug 2006 13:52:18 +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 731D743D4C for ; Tue, 22 Aug 2006 13:52:08 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5D74A.dip.t-dialin.net [84.165.215.74]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k7MDYTWF020837; Tue, 22 Aug 2006 15:34:30 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k7MDq7t8022634; Tue, 22 Aug 2006 15:52:07 +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; Tue, 22 Aug 2006 15:52:06 +0200 Message-ID: <20060822155206.wnofa44ha8s0sok0@netchild.homeip.net> X-Priority: 3 (Normal) Date: Tue, 22 Aug 2006 15:52:06 +0200 From: Alexander Leidinger To: Boris Samorodov References: <200608220730.k7M7UMbm036179@freefall.freebsd.org> <68219662@bsam.ru> In-Reply-To: <68219662@bsam.ru> 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.2) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: freebsd-emulation@FreeBSD.org, jes Subject: Re: ports/102034: emulators/linux_base-fc4 library problems with RELENG_6_1 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, 22 Aug 2006 13:52:18 -0000 Quoting Boris Samorodov (from Tue, 22 Aug 2006 12:32:33 +0400)= : >> /usr/lib/libpthread.a >> /usr/lib/libpthread_p.a >> /usr/lib/libpthread.so.1 > > (note: this one is suspicious as you have [1].) No, the one in [1] is suspicious. Nothing should move any base system =20 library to /usr/local/compat/pkg. >> /usr/lib/libpthread.so >> /usr/lib/libpthread.so.0 > > Show pls "ls -l /usr/lib/libpthread.so.0". > > I asked about this one. Did you create it intentionally and (if yes, > what was the purpose)? > Did you (and how) upgrade your system? > Which OS version was initially installed at your PC? > > Anyway, this file either should exist at /usr/local/lib/compat or it > shouldn't exist at all. Try to (tempoparily) remove it and check up > linux_base install. > >> /usr/lib/libpthread.so.2 Since the .2 one exists, there should be no .1 or .0 at all. >> /usr/local/lib/compat/libpthread.so.1 [1] And this shouldn't be there too. I suggest to remove (temporary) all old libs from everywhere (this may =20 break some application) and run "libchk" (available from ports). It =20 will report some apps which depend upon this removed lib =20 ("Unresolved... /path/to/app"). For each of those apps, you need to =20 determine the corresponding port and rebuild it: pkg_which $(grep "Unresolved..." libchk.txt | sed -e =20 's/Unresolved.*: //') | sort -u | xargs portupgrade -f After this nothing depends upon this old lib anymore. Bye, Alexander. --=20 Genius may have its limitations, but stupidity is not thus handicapped. =09=09-- Elbert Hubbard 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 Tue Aug 22 14:53:22 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 DD7EB16A59C for ; Tue, 22 Aug 2006 14:53:22 +0000 (UTC) (envelope-from bsam@ns.kfs.ru) Received: from ns.kfs.ru (kfs.kfs.ru [62.183.117.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4745343D45 for ; Tue, 22 Aug 2006 14:53:21 +0000 (GMT) (envelope-from bsam@ns.kfs.ru) Received: from bsam by ns.kfs.ru with local (Exim 4.54 (FreeBSD)) id 1GFXcu-0008w4-QH; Tue, 22 Aug 2006 18:53:12 +0400 To: Alexander Leidinger References: <200608220730.k7M7UMbm036179@freefall.freebsd.org> <68219662@bsam.ru> <20060822155206.wnofa44ha8s0sok0@netchild.homeip.net> From: Boris Samorodov Date: Tue, 22 Aug 2006 18:53:12 +0400 In-Reply-To: <20060822155206.wnofa44ha8s0sok0@netchild.homeip.net> (Alexander Leidinger's message of "Tue, 22 Aug 2006 15:52:06 +0200") Message-ID: <59246999@serv3.int.kfs.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 B. Samorodov" Cc: freebsd-emulation@FreeBSD.org, jes Subject: Re: ports/102034: emulators/linux_base-fc4 library problems with RELENG_6_1 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, 22 Aug 2006 14:53:23 -0000 On Tue, 22 Aug 2006 15:52:06 +0200 Alexander Leidinger wrote: > Quoting Boris Samorodov (from Tue, 22 Aug 2006 12:32:33 +0400): > >> /usr/lib/libpthread.a > >> /usr/lib/libpthread_p.a > >> /usr/lib/libpthread.so.1 > > > > (note: this one is suspicious as you have [1].) > No, the one in [1] is suspicious. Nothing should move any base system See further. > library to /usr/local/compat/pkg. > >> /usr/lib/libpthread.so > >> /usr/lib/libpthread.so.0 > > > > Show pls "ls -l /usr/lib/libpthread.so.0". > > > > I asked about this one. Did you create it intentionally and (if yes, > > what was the purpose)? > > Did you (and how) upgrade your system? > > Which OS version was initially installed at your PC? > > > > Anyway, this file either should exist at /usr/local/lib/compat or it > > shouldn't exist at all. Try to (tempoparily) remove it and check up > > linux_base install. > > > >> /usr/lib/libpthread.so.2 > Since the .2 one exists, there should be no .1 or .0 at all. If you ment "...at /usr/src" I'd agree. But not with .1 at /usr/local/lib/compat. > >> /usr/local/lib/compat/libpthread.so.1 [1] > And this shouldn't be there too. Can't agree with you here, what about misc/compat5x? > I suggest to remove (temporary) all old libs from everywhere (this may > break some application) and run "libchk" (available from ports). It > will report some apps which depend upon this removed lib > ("Unresolved... /path/to/app"). For each of those apps, you need to > determine the corresponding port and rebuild it: > pkg_which $(grep "Unresolved..." libchk.txt | sed -e > s/Unresolved.*: //') | sort -u | xargs portupgrade -f > After this nothing depends upon this old lib anymore. Yes, this is good for further tunning of the system. Still, I think that my advice is acceptable at the case we are discussing (PR/102034). 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 Aug 22 16:09:42 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 582ED16A4DA for ; Tue, 22 Aug 2006 16:09:42 +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 D592943D5A for ; Tue, 22 Aug 2006 16:09:40 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5D74A.dip.t-dialin.net [84.165.215.74]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k7MFpxfv021399; Tue, 22 Aug 2006 17:52:00 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k7MG9hxo036990; Tue, 22 Aug 2006 18:09:43 +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; Tue, 22 Aug 2006 18:09:41 +0200 Message-ID: <20060822180941.h3kwmrrdycwwwswo@netchild.homeip.net> X-Priority: 3 (Normal) Date: Tue, 22 Aug 2006 18:09:41 +0200 From: Alexander Leidinger To: Boris Samorodov References: <200608220730.k7M7UMbm036179@freefall.freebsd.org> <68219662@bsam.ru> <20060822155206.wnofa44ha8s0sok0@netchild.homeip.net> <59246999@serv3.int.kfs.ru> In-Reply-To: <59246999@serv3.int.kfs.ru> 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.2) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: freebsd-emulation@FreeBSD.org, jes Subject: Re: ports/102034: emulators/linux_base-fc4 library problems with RELENG_6_1 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, 22 Aug 2006 16:09:42 -0000 Quoting Boris Samorodov (from Tue, 22 Aug 2006 18:53:12 +0400): >> Since the .2 one exists, there should be no .1 or .0 at all. > > If you ment "...at /usr/src" I'd agree. But not with .1 at > /usr/local/lib/compat. > >> >> /usr/local/lib/compat/libpthread.so.1 [1] > >> And this shouldn't be there too. > > Can't agree with you here, what about misc/compat5x? Ugh... yes, you are right. I did see a non-existing "pkg/" in there and didn't thought about compat5x. Bye, Alexander. -- Beauty may be skin deep, but ugly goes clear to the bone. -- Redd Foxx 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 Tue Aug 22 18:55:43 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 4B27616A4DF for ; Tue, 22 Aug 2006 18:55:43 +0000 (UTC) (envelope-from joey@mingrone.org) Received: from wr-out-f131.google.com (wr-out-f131.google.com [64.233.184.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2836143D58 for ; Tue, 22 Aug 2006 18:55:39 +0000 (GMT) (envelope-from joey@mingrone.org) Received: by wr-out-f131.google.com with SMTP id 20so103576wra for ; Tue, 22 Aug 2006 11:55:39 -0700 (PDT) Received: by 10.65.126.4 with SMTP id d4mr7431737qbn; Tue, 22 Aug 2006 11:55:38 -0700 (PDT) Received: by 10.65.239.2 with HTTP; Tue, 22 Aug 2006 11:55:38 -0700 (PDT) Message-ID: Date: Tue, 22 Aug 2006 15:55:38 -0300 From: "Joey Mingrone" To: freebsd-emulation@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: problem with file selection dialog boxes under linux apps 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, 22 Aug 2006 18:55:43 -0000 Hi all: I've noticed a strange problem with the file dialogue boxes, in some linux applications such as acroread7 and linux-firefox. The problem is that not all directories are listed. For example, when I browse to /usr/ the directory local doesn't show up. If I open the native firefox instead of linux-firefox all directories are properly listed. Joey From owner-freebsd-emulation@FreeBSD.ORG Tue Aug 22 19:01:21 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 003A616A4DE for ; Tue, 22 Aug 2006 19:01:20 +0000 (UTC) (envelope-from anderson@centtech.com) Received: from mh1.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 876C443D45 for ; Tue, 22 Aug 2006 19:01:20 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.1/8.13.1) with ESMTP id k7MJ1JDE071900; Tue, 22 Aug 2006 14:01:19 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <44EB547E.7090100@centtech.com> Date: Tue, 22 Aug 2006 14:01:18 -0500 From: Eric Anderson User-Agent: Thunderbird 1.5.0.5 (X11/20060802) MIME-Version: 1.0 To: Joey Mingrone References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/1708/Tue Aug 22 07:43:00 2006 on mh1.centtech.com X-Virus-Status: Clean Cc: freebsd-emulation@freebsd.org Subject: Re: problem with file selection dialog boxes under linux apps 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, 22 Aug 2006 19:01:21 -0000 On 08/22/06 13:55, Joey Mingrone wrote: > Hi all: > > I've noticed a strange problem with the file dialogue boxes, in some > linux applications such as acroread7 and linux-firefox. The problem > is that not all directories are listed. For example, when I browse to > /usr/ the directory local doesn't show up. If I open the native > firefox instead of linux-firefox all directories are properly listed. Me too. Never bothered to look into why. Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------ From owner-freebsd-emulation@FreeBSD.ORG Tue Aug 22 19:58:14 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 34AA416A4E0 for ; Tue, 22 Aug 2006 19:58:14 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from kiwi-computer.com (megan.kiwi-computer.com [63.224.10.3]) by mx1.FreeBSD.org (Postfix) with SMTP id 67FEF43D53 for ; Tue, 22 Aug 2006 19:58:11 +0000 (GMT) (envelope-from rick@kiwi-computer.com) Received: (qmail 82043 invoked by uid 2001); 22 Aug 2006 19:58:09 -0000 Date: Tue, 22 Aug 2006 14:58:09 -0500 From: "Rick C. Petty" To: Joey Mingrone Message-ID: <20060822195809.GB81968@megan.kiwi-computer.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: freebsd-emulation@freebsd.org Subject: Re: problem with file selection dialog boxes under linux apps X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rick-freebsd@kiwi-computer.com List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Aug 2006 19:58:14 -0000 On Tue, Aug 22, 2006 at 03:55:38PM -0300, Joey Mingrone wrote: > > I've noticed a strange problem with the file dialogue boxes, in some > linux applications such as acroread7 and linux-firefox. The problem > is that not all directories are listed. For example, when I browse to > /usr/ the directory local doesn't show up. If I open the native > firefox instead of linux-firefox all directories are properly listed. I'm pretty sure this has to do with how the compat layer works.. The linuxulator effectively does a "unionfs" between the freebsd filesystem (everything) and the linux stuff (/usr/compat/linux/). When you try to access a file, if the file exists in /usr/compat/linux/ that's the file which is referenced. If not, the same filename is used against /. In standard file operations boxes, the linux code is doing an opendir/readdir, and obviously anything "hidden" in the freebsd layer isn't going to be shown. Hence, this isn't a true unionfs. In your case, because /usr/ exists as /usr/compat/linux/usr/ you won't see anything besides what's in that directory. I actually like the idea that my freebsd files are hidden from linux, and I think this was the intent of the ABI authors. -- Rick C. Petty From owner-freebsd-emulation@FreeBSD.ORG Tue Aug 22 21:48:56 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 7E91A16A4DE for ; Tue, 22 Aug 2006 21:48:56 +0000 (UTC) (envelope-from jes@jes-2.demon.nl) Received: from post-23.mail.nl.demon.net (post-23.mail.nl.demon.net [194.159.73.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB3EF43D4C for ; Tue, 22 Aug 2006 21:48:55 +0000 (GMT) (envelope-from jes@jes-2.demon.nl) Received: from jes-1.demon.nl ([83.160.144.201]:22938 helo=jes-2.demon.nl) by post-23.mail.nl.demon.net with esmtp (Exim 4.51) id 1GFe7C-000KMY-Q5; Tue, 22 Aug 2006 21:48:54 +0000 Received: from jes by jes-2.demon.nl with local (Exim 4.34 (FreeBSD)) id 1GFe7C-00096H-AM; Tue, 22 Aug 2006 23:48:54 +0200 Date: Tue, 22 Aug 2006 23:48:54 +0200 From: Jim Segrave To: Alexander Leidinger Message-ID: <20060822214853.GA83595@jes-2.demon.nl> References: <200608220730.k7M7UMbm036179@freefall.freebsd.org> <68219662@bsam.ru> <20060822155206.wnofa44ha8s0sok0@netchild.homeip.net> <59246999@serv3.int.kfs.ru> <20060822180941.h3kwmrrdycwwwswo@netchild.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060822180941.h3kwmrrdycwwwswo@netchild.homeip.net> User-Agent: Mutt/1.4.2.2i Organisation: Demon Netherlands Cc: freebsd-emulation@FreeBSD.org Subject: Re: ports/102034: emulators/linux_base-fc4 library problems with RELENG_6_1 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jes@jes-2.demon.nl List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Aug 2006 21:48:56 -0000 On Tue 22 Aug 2006 (18:09 +0200), Alexander Leidinger wrote: > Quoting Boris Samorodov (from Tue, 22 Aug 2006 18:53:12 > +0400): > > >>Since the .2 one exists, there should be no .1 or .0 at all. > > > >If you ment "...at /usr/src" I'd agree. But not with .1 at > >/usr/local/lib/compat. > > > >>>> /usr/local/lib/compat/libpthread.so.1 [1] > > > >>And this shouldn't be there too. > > > >Can't agree with you here, what about misc/compat5x? > > Ugh... yes, you are right. I did see a non-existing "pkg/" in there > and didn't thought about compat5x. As it happens, nothing was referring to /usr/lib/libpthread.so.0, so I deleted it and now linux ports behave normally, for which I am most appreciative. I am puzzled though - /usr/compat/linux/lib/libpthread.0 is installed as part of linux_base-fc4 and is symlinked to /usr/compat/linux/lib/libpthread-2.3.6.so I thought that the linux emulation, barring abuse of LD_PATH or LD_PRELOAD would always try to resolve out of /compat/linux/lib or /compat/linux/usr/lib, so the existence of a FreeBSD libptread.0 would not have any effect. Why would a linux app ever even see the FreeBSD library of the same name? -- Jim Segrave jes@jes-2.demon.nl From owner-freebsd-emulation@FreeBSD.ORG Tue Aug 22 22:00:36 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 EFCFD16A4DA for ; Tue, 22 Aug 2006 22:00:36 +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 6733B43D46 for ; Tue, 22 Aug 2006 22:00:36 +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 k7MM0aLW024103 for ; Tue, 22 Aug 2006 22:00:36 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k7MM0aHl024102; Tue, 22 Aug 2006 22:00:36 GMT (envelope-from gnats) Date: Tue, 22 Aug 2006 22:00:36 GMT Message-Id: <200608222200.k7MM0aHl024102@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: Jim Segrave Cc: Subject: Re: ports/102034: emulators/linux_base-fc4 library problems with RELENG_6_1 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jim Segrave List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Aug 2006 22:00:37 -0000 The following reply was made to PR ports/102034; it has been noted by GNATS. From: Jim Segrave To: bug-followup@FreeBSD.org, jes@jes-2.demon.nl Cc: Subject: Re: ports/102034: emulators/linux_base-fc4 library problems with RELENG_6_1 Date: Tue, 22 Aug 2006 23:58:04 +0200 This problem was cleared by deleting a rather ancient FreeBSD /usr/lib/libpthread.so.0 which was no longer used by any application. I admit to being puzzled why the existence of such a FreeBSD file would have any effect, but removing it was sufficient to clear the problem. From owner-freebsd-emulation@FreeBSD.ORG Tue Aug 22 22:11:15 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 9036B16A4E1; Tue, 22 Aug 2006 22:11:15 +0000 (UTC) (envelope-from bsam@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBF1243D5D; Tue, 22 Aug 2006 22:11:14 +0000 (GMT) (envelope-from bsam@FreeBSD.org) Received: from freefall.freebsd.org (bsam@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k7MMBEvL025183; Tue, 22 Aug 2006 22:11:14 GMT (envelope-from bsam@freefall.freebsd.org) Received: (from bsam@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k7MMBE8q025179; Tue, 22 Aug 2006 22:11:14 GMT (envelope-from bsam) Date: Tue, 22 Aug 2006 22:11:14 GMT From: Boris Samorodov Message-Id: <200608222211.k7MMBE8q025179@freefall.freebsd.org> To: jes@jes-2.demon.nl, bsam@FreeBSD.org, freebsd-emulation@FreeBSD.org Cc: Subject: Re: ports/102034: emulators/linux_base-fc4 library problems with RELENG_6_1 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, 22 Aug 2006 22:11:15 -0000 Synopsis: emulators/linux_base-fc4 library problems with RELENG_6_1 State-Changed-From-To: feedback->closed State-Changed-By: bsam State-Changed-When: Tue Aug 22 22:10:12 UTC 2006 State-Changed-Why: The submitter deleted the stale file and the problem has gone. Thanks for the feedback! http://www.freebsd.org/cgi/query-pr.cgi?pr=102034 From owner-freebsd-emulation@FreeBSD.ORG Tue Aug 22 22:20:14 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 D010B16A4DD for ; Tue, 22 Aug 2006 22:20:14 +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 384DA43D45 for ; Tue, 22 Aug 2006 22:20: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.4/8.13.4) with ESMTP id k7MMKDDv025453 for ; Tue, 22 Aug 2006 22:20:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k7MMKDqR025446; Tue, 22 Aug 2006 22:20:13 GMT (envelope-from gnats) Date: Tue, 22 Aug 2006 22:20:13 GMT Message-Id: <200608222220.k7MMKDqR025446@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: Jim Segrave Cc: Subject: Re: ports/102034: emulators/linux_base-fc4 library problems with RELENG_6_1 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jim Segrave List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Aug 2006 22:20:14 -0000 The following reply was made to PR ports/102034; it has been noted by GNATS. From: Jim Segrave To: bug-followup@FreeBSD.org, jes@jes-2.demon.nl Cc: Subject: Re: ports/102034: emulators/linux_base-fc4 library problems with RELENG_6_1 Date: Wed, 23 Aug 2006 00:04:34 +0200 This problem was cured by deleting an ancient FreeBSD /usr/lib/libpthread.so.0, which was unused by any program. I'm still unclear as to why a Linux application would see that library, but somehow that was happening. From owner-freebsd-emulation@FreeBSD.ORG Wed Aug 23 08:10:51 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 989C316A4DD for ; Wed, 23 Aug 2006 08:10:51 +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 C031A43D46 for ; Wed, 23 Aug 2006 08:10:50 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5E135.dip.t-dialin.net [84.165.225.53]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k7N7r2AJ025062; Wed, 23 Aug 2006 09:53:02 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k7N8AstS074028; Wed, 23 Aug 2006 10:10:54 +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, 23 Aug 2006 10:10:53 +0200 Message-ID: <20060823101053.xhmqal89c8wk408c@netchild.homeip.net> X-Priority: 3 (Normal) Date: Wed, 23 Aug 2006 10:10:53 +0200 From: Alexander Leidinger To: jes@jes-2.demon.nl References: <200608220730.k7M7UMbm036179@freefall.freebsd.org> <68219662@bsam.ru> <20060822155206.wnofa44ha8s0sok0@netchild.homeip.net> <59246999@serv3.int.kfs.ru> <20060822180941.h3kwmrrdycwwwswo@netchild.homeip.net> <20060822214853.GA83595@jes-2.demon.nl> In-Reply-To: <20060822214853.GA83595@jes-2.demon.nl> 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.2) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: freebsd-emulation@FreeBSD.org Subject: Re: ports/102034: emulators/linux_base-fc4 library problems with RELENG_6_1 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, 23 Aug 2006 08:10:51 -0000 Quoting Jim Segrave (from Tue, 22 Aug 2006 =20 23:48:54 +0200): > As it happens, nothing was referring to /usr/lib/libpthread.so.0, so I > deleted it and now linux ports behave normally, for which I am most > appreciative. > > I am puzzled though - /usr/compat/linux/lib/libpthread.0 is installed > as part of linux_base-fc4 and is symlinked to > /usr/compat/linux/lib/libpthread-2.3.6.so > > I thought that the linux emulation, barring abuse of LD_PATH or > LD_PRELOAD would always try to resolve out of /compat/linux/lib or > /compat/linux/usr/lib, so the existence of a FreeBSD libptread.0 would > not have any effect. Why would a linux app ever even see the FreeBSD > library of the same name? Because it doesn't abuse LD_* stuff. :-) If the kernel detects a Linux-brand (man brandelf) of an ELF =20 executable, it uses the linux-compatibility syscall table instead of =20 the FreeBSD native syscall table. The linux syscalls which do access =20 files first prefix the absolute path of files with /compat/linux. If =20 this lookup is successful, everything is ok. If not, the file without =20 a /compat/linux prefix is looked up (most probably a FreeBSD native =20 one). For looking up libs, you also have to take the search order of =20 library directories into account. libpthread is in /lib for FC4 and in =20 /usr/lib for FreeBSD. It seems FC4 (or our port) is searching in =20 /usr/lib before searching in /lib. So it first finds the old FreeBSD =20 native one, instead of the linux one. Bye, Alexander. --=20 Acid absorbs 47 times its own weight in excess Reality. 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 Wed Aug 23 11:19:27 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 3F44416A4DD for ; Wed, 23 Aug 2006 11:19:27 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.10.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 837EF43D5C for ; Wed, 23 Aug 2006 11:19:23 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.7/8.13.7) with ESMTP id k7NBJGW3065346 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Wed, 23 Aug 2006 13:19:16 +0200 (CEST) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.7/8.13.3/Submit) id k7NBJE5d065342; Wed, 23 Aug 2006 13:19:14 +0200 (CEST) Date: Wed, 23 Aug 2006 13:19:13 +0200 From: Divacky Roman To: Boris Samorodov Message-ID: <20060823111913.GA65314@stud.fit.vutbr.cz> References: <20060820165218.GA68068@stud.fit.vutbr.cz> <46791581@bsam.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46791581@bsam.ru> User-Agent: Mutt/1.4.2i X-Scanned-By: MIMEDefang 2.54 on 147.229.10.14 Cc: emulation@freebsd.org Subject: Re: amd64 tls 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, 23 Aug 2006 11:19:27 -0000 On Sun, Aug 20, 2006 at 10:00:50PM +0400, Boris Samorodov wrote: > On Sun, 20 Aug 2006 18:52:19 +0200 Divacky Roman wrote: > > > www.stud.fit.vutbr.cz/~xdivac02/amd64-tls.patch > > > pls test and tell me :) new patch uploaded, pls test From owner-freebsd-emulation@FreeBSD.ORG Wed Aug 23 14:46:28 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 57D9C16A4DA for ; Wed, 23 Aug 2006 14:46:28 +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 9A0A643D78 for ; Wed, 23 Aug 2006 14:46:27 +0000 (GMT) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([83.239.48.143]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id k7NEjwZP046416; Wed, 23 Aug 2006 18:46:08 +0400 (MSD) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1GFtyH-0000Bx-6O; Wed, 23 Aug 2006 18:44:45 +0400 To: Divacky Roman References: <20060820165218.GA68068@stud.fit.vutbr.cz> <46791581@bsam.ru> <20060823111913.GA65314@stud.fit.vutbr.cz> From: Boris Samorodov Date: Wed, 23 Aug 2006 18:44:45 +0400 In-Reply-To: <20060823111913.GA65314@stud.fit.vutbr.cz> (Divacky Roman's message of "Wed, 23 Aug 2006 13:19:13 +0200") Message-ID: <71714322@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: amd64 tls 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, 23 Aug 2006 14:46:28 -0000 On Wed, 23 Aug 2006 13:19:13 +0200 Divacky Roman wrote: > On Sun, Aug 20, 2006 at 10:00:50PM +0400, Boris Samorodov wrote: > > On Sun, 20 Aug 2006 18:52:19 +0200 Divacky Roman wrote: > > > > > www.stud.fit.vutbr.cz/~xdivac02/amd64-tls.patch > > > > > pls test and tell me :) > new patch uploaded, pls test Apply cleanly only for the first file. The rest of a patch seems to be not a standard diff file. 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 Wed Aug 23 15:16:20 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 EACC816A4DF for ; Wed, 23 Aug 2006 15:16:20 +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 0FC4D43D45 for ; Wed, 23 Aug 2006 15:16:17 +0000 (GMT) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([83.239.48.143]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id k7NFG0kb051734; Wed, 23 Aug 2006 19:16:10 +0400 (MSD) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1GFuRL-0000Dd-3l; Wed, 23 Aug 2006 19:14:47 +0400 To: Divacky Roman References: <20060702172959.GA4941@stud.fit.vutbr.cz> From: Boris Samorodov Date: Wed, 23 Aug 2006 19:14:47 +0400 In-Reply-To: <20060702172959.GA4941@stud.fit.vutbr.cz> (Divacky Roman's message of "Sun, 2 Jul 2006 19:29:59 +0200") Message-ID: <68196984@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: [PATCH]: set_thread_area() implementation 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, 23 Aug 2006 15:16:21 -0000 On Sun, 2 Jul 2006 19:29:59 +0200 Divacky Roman wrote: > I made a patch which implementes set_threa_area() syscall in linux emulation > layer. > to test pls apply: > www.stud.fit.vutbr.cz/~xdivac02/tls1.patch and > www.stud.fit.vutbr.cz/~xdivac02/tls2.patch Seems that the first patch was committed and the second one wasn't. Is it going to be committed? > This syscall is used for TLS implementation in linux. TLS is used by NPTL which > currently doesnt run because of missing TID stuff and futexes (I am working on > it). I am able to pass tls_tst test > (www.stud.fit.vutbr.cz/~xdivac02/tls_test.c) > pls if you can test this do it so Alexander can commit that BTW, how this test programm should be compiled? 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 Wed Aug 23 15:24:06 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 6811416A4DD for ; Wed, 23 Aug 2006 15:24:06 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.10.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C5A743D4C for ; Wed, 23 Aug 2006 15:24:02 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.7/8.13.7) with ESMTP id k7NFNu92078505 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Wed, 23 Aug 2006 17:23:56 +0200 (CEST) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.7/8.13.3/Submit) id k7NFNuHu078504; Wed, 23 Aug 2006 17:23:56 +0200 (CEST) Date: Wed, 23 Aug 2006 17:23:56 +0200 From: Divacky Roman To: Boris Samorodov Message-ID: <20060823152355.GA78488@stud.fit.vutbr.cz> References: <20060820165218.GA68068@stud.fit.vutbr.cz> <46791581@bsam.ru> <20060823111913.GA65314@stud.fit.vutbr.cz> <71714322@bsam.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <71714322@bsam.ru> User-Agent: Mutt/1.4.2i X-Scanned-By: MIMEDefang 2.54 on 147.229.10.14 Cc: emulation@freebsd.org Subject: Re: amd64 tls 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, 23 Aug 2006 15:24:06 -0000 On Wed, Aug 23, 2006 at 06:44:45PM +0400, Boris Samorodov wrote: > On Wed, 23 Aug 2006 13:19:13 +0200 Divacky Roman wrote: > > > On Sun, Aug 20, 2006 at 10:00:50PM +0400, Boris Samorodov wrote: > > > On Sun, 20 Aug 2006 18:52:19 +0200 Divacky Roman wrote: > > > > > > > www.stud.fit.vutbr.cz/~xdivac02/amd64-tls.patch > > > > > > > pls test and tell me :) > > > new patch uploaded, pls test > > Apply cleanly only for the first file. The rest of a patch seems to be > not a standard diff file. try now.. I uploaded new patch which I manually edited. I really dont like p4 ;( From owner-freebsd-emulation@FreeBSD.ORG Wed Aug 23 15:57: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 AA2DF16A4E0 for ; Wed, 23 Aug 2006 15:57: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 E516D43D70 for ; Wed, 23 Aug 2006 15:57:46 +0000 (GMT) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([83.239.48.148]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id k7NFvRXd057939; Wed, 23 Aug 2006 19:57:37 +0400 (MSD) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1GFv5S-0000B9-Cm; Wed, 23 Aug 2006 19:56:14 +0400 To: Divacky Roman References: <20060820165218.GA68068@stud.fit.vutbr.cz> <46791581@bsam.ru> <20060823111913.GA65314@stud.fit.vutbr.cz> <71714322@bsam.ru> <20060823152355.GA78488@stud.fit.vutbr.cz> From: Boris Samorodov Date: Wed, 23 Aug 2006 19:56:14 +0400 In-Reply-To: <20060823152355.GA78488@stud.fit.vutbr.cz> (Divacky Roman's message of "Wed, 23 Aug 2006 17:23:56 +0200") Message-ID: <91393073@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: amd64 tls 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, 23 Aug 2006 15:57:47 -0000 On Wed, 23 Aug 2006 17:23:56 +0200 Divacky Roman wrote: > On Wed, Aug 23, 2006 at 06:44:45PM +0400, Boris Samorodov wrote: > > On Wed, 23 Aug 2006 13:19:13 +0200 Divacky Roman wrote: > > > On Sun, Aug 20, 2006 at 10:00:50PM +0400, Boris Samorodov wrote: > > > > On Sun, 20 Aug 2006 18:52:19 +0200 Divacky Roman wrote: > > > > > > > > > www.stud.fit.vutbr.cz/~xdivac02/amd64-tls.patch > > > > > > > > > pls test and tell me :) > > > > > new patch uploaded, pls test > > > > Apply cleanly only for the first file. The rest of a patch seems to be > > not a standard diff file. > try now.. I uploaded new patch which I manually edited. I really dont like p4 ;( No it compiles OK. Both kldload and kldunload linux.ko works fine. ;-) 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 Wed Aug 23 16:04:21 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 7EA4E16A4DD for ; Wed, 23 Aug 2006 16:04:21 +0000 (UTC) (envelope-from joey@mingrone.org) Received: from wr-out-f131.google.com (wr-out-f131.google.com [64.233.184.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id D649043D53 for ; Wed, 23 Aug 2006 16:04:20 +0000 (GMT) (envelope-from joey@mingrone.org) Received: by wr-out-f131.google.com with SMTP id 20so8495wra for ; Wed, 23 Aug 2006 09:04:20 -0700 (PDT) Received: by 10.64.143.12 with SMTP id q12mr623348qbd; Wed, 23 Aug 2006 09:04:20 -0700 (PDT) Received: by 10.65.239.2 with HTTP; Wed, 23 Aug 2006 09:04:20 -0700 (PDT) Message-ID: Date: Wed, 23 Aug 2006 13:04:20 -0300 From: "Joey Mingrone" To: freebsd-emulation@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060822195809.GB81968@megan.kiwi-computer.com> Subject: Re: problem with file selection dialog boxes under linux apps 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, 23 Aug 2006 16:04:21 -0000 Now that I have a clear idea of what's going on, I can see the rationale. Thanks for the replies, Joey From owner-freebsd-emulation@FreeBSD.ORG Wed Aug 23 16:04: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 E471C16A4DE for ; Wed, 23 Aug 2006 16:04:46 +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 BE88F43D45 for ; Wed, 23 Aug 2006 16:04:45 +0000 (GMT) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([83.239.48.148]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id k7NG4Snk058959; Wed, 23 Aug 2006 20:04:38 +0400 (MSD) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1GFvCE-0000Ba-Qx; Wed, 23 Aug 2006 20:03:14 +0400 To: Divacky Roman References: <20060820165218.GA68068@stud.fit.vutbr.cz> <46791581@bsam.ru> <20060823111913.GA65314@stud.fit.vutbr.cz> <71714322@bsam.ru> <20060823152355.GA78488@stud.fit.vutbr.cz> <91393073@bsam.ru> From: Boris Samorodov Date: Wed, 23 Aug 2006 20:03:14 +0400 In-Reply-To: <91393073@bsam.ru> (Boris Samorodov's message of "Wed, 23 Aug 2006 19:56:14 +0400") Message-ID: <48512653@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: amd64 tls 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, 23 Aug 2006 16:04:47 -0000 On Wed, 23 Aug 2006 19:56:14 +0400 Boris Samorodov wrote: > No it compiles OK. Should be "Now it compiles OK." 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 Wed Aug 23 17:42:38 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 3078716A4DA for ; Wed, 23 Aug 2006 17:42:38 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.10.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 785C843D6B for ; Wed, 23 Aug 2006 17:42:36 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.7/8.13.7) with ESMTP id k7NHgVHm083209 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Wed, 23 Aug 2006 19:42:31 +0200 (CEST) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.7/8.13.3/Submit) id k7NHgVIc083208; Wed, 23 Aug 2006 19:42:31 +0200 (CEST) Date: Wed, 23 Aug 2006 19:42:31 +0200 From: Divacky Roman To: Boris Samorodov Message-ID: <20060823174230.GA83189@stud.fit.vutbr.cz> References: <20060820165218.GA68068@stud.fit.vutbr.cz> <46791581@bsam.ru> <20060823111913.GA65314@stud.fit.vutbr.cz> <71714322@bsam.ru> <20060823152355.GA78488@stud.fit.vutbr.cz> <91393073@bsam.ru> <48512653@bsam.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48512653@bsam.ru> User-Agent: Mutt/1.4.2i X-Scanned-By: MIMEDefang 2.54 on 147.229.10.14 Cc: emulation@freebsd.org Subject: Re: amd64 tls 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, 23 Aug 2006 17:42:38 -0000 On Wed, Aug 23, 2006 at 08:03:14PM +0400, Boris Samorodov wrote: > On Wed, 23 Aug 2006 19:56:14 +0400 Boris Samorodov wrote: > > > No it compiles OK. > > Should be "Now it compiles OK." does the TLS seem to work? (osrelease=2.6.16 and chroot /compat/linux /bin/bash) From owner-freebsd-emulation@FreeBSD.ORG Wed Aug 23 18:04:08 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 E18A416A4DD for ; Wed, 23 Aug 2006 18:04:08 +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 BA1F343D69 for ; Wed, 23 Aug 2006 18:04:05 +0000 (GMT) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([83.239.48.177]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id k7NI3kV5074803; Wed, 23 Aug 2006 22:03:56 +0400 (MSD) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1GFx3h-0000BH-HL; Wed, 23 Aug 2006 22:02:33 +0400 To: Divacky Roman References: <20060820165218.GA68068@stud.fit.vutbr.cz> <46791581@bsam.ru> <20060823111913.GA65314@stud.fit.vutbr.cz> <71714322@bsam.ru> <20060823152355.GA78488@stud.fit.vutbr.cz> <91393073@bsam.ru> <48512653@bsam.ru> <20060823174230.GA83189@stud.fit.vutbr.cz> From: Boris Samorodov Date: Wed, 23 Aug 2006 22:02:33 +0400 In-Reply-To: <20060823174230.GA83189@stud.fit.vutbr.cz> (Divacky Roman's message of "Wed, 23 Aug 2006 19:42:31 +0200") Message-ID: <03876742@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: amd64 tls 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, 23 Aug 2006 18:04:09 -0000 On Wed, 23 Aug 2006 19:42:31 +0200 Divacky Roman wrote: > On Wed, Aug 23, 2006 at 08:03:14PM +0400, Boris Samorodov wrote: > > On Wed, 23 Aug 2006 19:56:14 +0400 Boris Samorodov wrote: > > > > > No it compiles OK. > > > > Should be "Now it compiles OK." > does the TLS seem to work? (osrelease=2.6.16 and chroot /compat/linux /bin/bash) Seems, no. Here is the debug log: ----- Aug 23 21:50:10 bsam kernel: linux(875): brk(0) Aug 23 21:50:10 bsam kernel: linux(875): newuname(*) Aug 23 21:50:10 bsam kernel: linux(875): access(/etc/ld.so.preload, 4) Aug 23 21:50:10 bsam kernel: linux(875): open(/etc/ld.so.cache, 0x0, 0x1) Aug 23 21:50:10 bsam kernel: linux(875): open returns error 0 Aug 23 21:50:10 bsam kernel: linux(875): fstat64(3, *) Aug 23 21:50:10 bsam kernel: linux(875): mmap(0, 12301, 1, 0x00000002, 3, 0) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common(0, 12301, 5, 0x00000802, 3, 0x0) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common() return: 0x0 (0x28104000) Aug 23 21:50:10 bsam kernel: linux(875): open(/lib/libtermcap.so.2, 0x0, 0x0) Aug 23 21:50:10 bsam kernel: linux(875): open returns error 0 Aug 23 21:50:10 bsam kernel: linux(875): fstat64(3, *) Aug 23 21:50:10 bsam kernel: linux(875): mmap(0, 14632, 5, 0x00000802, 3, 0) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common(0, 14632, 5, 0x00000802, 3, 0x0) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common() return: 0x0 (0x28108000) Aug 23 21:50:10 bsam kernel: linux(875): mmap(0x2810b000, 4096, 3, 0x00000812, 3, 8192) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common(0x2810b000, 4096, 7, 0x00000812, 3, 0x2000) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common() return: 0x0 (0x2810b000) Aug 23 21:50:10 bsam kernel: linux(875): open(/lib/libdl.so.2, 0x0, 0x1) Aug 23 21:50:10 bsam kernel: linux(875): open returns error 0 Aug 23 21:50:10 bsam kernel: linux(875): fstat64(3, *) Aug 23 21:50:10 bsam kernel: linux(875): mmap(0, 4096, 3, 0x00000022, -1, 0) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common(0, 4096, 7, 0x00001002, -1, 0x0) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common() return: 0x0 (0x2810c000) Aug 23 21:50:10 bsam kernel: linux(875): mmap(0, 12408, 5, 0x00000802, 3, 0) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common(0, 12408, 5, 0x00000802, 3, 0x0) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common() return: 0x0 (0x2810d000) Aug 23 21:50:10 bsam kernel: linux(875): mmap(0x2810f000, 8192, 3, 0x00000812, 3, 4096) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common(0x2810f000, 8192, 7, 0x00000812, 3, 0x1000) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common() return: 0x0 (0x2810f000) Aug 23 21:50:10 bsam kernel: linux(875): open(/lib/libc.so.6, 0x0, 0x1) Aug 23 21:50:10 bsam kernel: linux(875): open returns error 0 Aug 23 21:50:10 bsam kernel: linux(875): fstat64(3, *) Aug 23 21:50:10 bsam kernel: linux(875): mmap(0, 1166300, 5, 0x00000802, 3, 0) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common(0, 1166300, 5, 0x00000802, 3, 0x0) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common() return: 0x0 (0x28111000) Aug 23 21:50:10 bsam kernel: linux(875): mmap(0x28228000, 16384, 3, 0x00000812, 3, 1142784) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common(0x28228000, 16384, 7, 0x00000812, 3, 0x117000) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common() return: 0x0 (0x28228000) Aug 23 21:50:10 bsam kernel: linux(875): mmap(0x2822c000, 7132, 3, 0x00000032, -1, 0) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common(0x2822c000, 7132, 7, 0x00001012, -1, 0x0) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common() return: 0x0 (0x2822c000) Aug 23 21:50:10 bsam kernel: linux(875): mmap(0, 4096, 3, 0x00000022, -1, 0) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common(0, 4096, 7, 0x00001002, -1, 0x0) Aug 23 21:50:10 bsam kernel: -> linux_mmap_common() return: 0x0 (0x2822e000) Aug 23 21:50:10 bsam kernel: linux(875): set_thread_area(-1, 2822e6c0, fffff, 1, 0, 0, 1, 0, 1 Aug 23 21:50:10 bsam kernel: ) Aug 23 21:50:10 bsam kernel: Segment created in set_thread_area: lobase: 22e6c0, hibase: 28, lolimit: ffff, hilimit: f, type: 18, dpl: 3, p: 1, xx: 1, def32: 1, gran: 1 Aug 23 21:50:10 bsam kernel: pid 875 (bash), uid 0: exited on signal 11 (core dumped) ----- This is -CURRENT amd64 as of yesterday. Some linux_ipc() code is reverted, but this fact shouldn't change the result. 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 Wed Aug 23 18:31:55 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 78BBE16A4E5 for ; Wed, 23 Aug 2006 18:31:55 +0000 (UTC) (envelope-from jes@jes-2.demon.nl) Received: from post-23.mail.nl.demon.net (post-23.mail.nl.demon.net [194.159.73.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 98BAA43D7D for ; Wed, 23 Aug 2006 18:31:47 +0000 (GMT) (envelope-from jes@jes-2.demon.nl) Received: from jes-1.demon.nl ([83.160.144.201]:12937 helo=jes-2.demon.nl) by post-23.mail.nl.demon.net with esmtp (Exim 4.51) id 1GFxVz-000O3C-3L; Wed, 23 Aug 2006 18:31:47 +0000 Received: from jes by jes-2.demon.nl with local (Exim 4.34 (FreeBSD)) id 1GFxVy-0009GL-RX; Wed, 23 Aug 2006 20:31:46 +0200 Date: Wed, 23 Aug 2006 20:31:46 +0200 From: Jim Segrave To: Alexander Leidinger Message-ID: <20060823183146.GD14759@jes-2.demon.nl> References: <200608220730.k7M7UMbm036179@freefall.freebsd.org> <68219662@bsam.ru> <20060822155206.wnofa44ha8s0sok0@netchild.homeip.net> <59246999@serv3.int.kfs.ru> <20060822180941.h3kwmrrdycwwwswo@netchild.homeip.net> <20060822214853.GA83595@jes-2.demon.nl> <20060823101053.xhmqal89c8wk408c@netchild.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060823101053.xhmqal89c8wk408c@netchild.homeip.net> User-Agent: Mutt/1.4.2.2i Organisation: Demon Netherlands Cc: freebsd-emulation@FreeBSD.org Subject: Re: ports/102034: emulators/linux_base-fc4 library problems with RELENG_6_1 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jes@jes-2.demon.nl List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Aug 2006 18:31:55 -0000 On Wed 23 Aug 2006 (10:10 +0200), Alexander Leidinger wrote: > Quoting Jim Segrave (from Tue, 22 Aug 2006 > 23:48:54 +0200): > > >As it happens, nothing was referring to /usr/lib/libpthread.so.0, so I > >deleted it and now linux ports behave normally, for which I am most > >appreciative. > > > >I am puzzled though - /usr/compat/linux/lib/libpthread.0 is installed > >as part of linux_base-fc4 and is symlinked to > >/usr/compat/linux/lib/libpthread-2.3.6.so > > > >I thought that the linux emulation, barring abuse of LD_PATH or > >LD_PRELOAD would always try to resolve out of /compat/linux/lib or > >/compat/linux/usr/lib, so the existence of a FreeBSD libptread.0 would > >not have any effect. Why would a linux app ever even see the FreeBSD > >library of the same name? > > Because it doesn't abuse LD_* stuff. :-) > > If the kernel detects a Linux-brand (man brandelf) of an ELF > executable, it uses the linux-compatibility syscall table instead of > the FreeBSD native syscall table. The linux syscalls which do access > files first prefix the absolute path of files with /compat/linux. If > this lookup is successful, everything is ok. If not, the file without > a /compat/linux prefix is looked up (most probably a FreeBSD native > one). For looking up libs, you also have to take the search order of > library directories into account. libpthread is in /lib for FC4 and in > /usr/lib for FreeBSD. It seems FC4 (or our port) is searching in > /usr/lib before searching in /lib. So it first finds the old FreeBSD > native one, instead of the linux one. That sounds like this sort of problem is going to recur with other libraries in the future. I think you have to look in all the /compat/linux hiding places for libraries before looking in the rest of the world or you've got an accident waiting to happen :) -- Jim Segrave jes@jes-2.demon.nl From owner-freebsd-emulation@FreeBSD.ORG Thu Aug 24 17:24:57 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 A848616A4E6; Thu, 24 Aug 2006 17:24:57 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 549A743D78; Thu, 24 Aug 2006 17:24:51 +0000 (GMT) (envelope-from linimon@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 k7OHOpGt081122; Thu, 24 Aug 2006 17:24:51 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k7OHOplC081118; Thu, 24 Aug 2006 17:24:51 GMT (envelope-from linimon) Date: Thu, 24 Aug 2006 17:24:51 GMT From: Mark Linimon Message-Id: <200608241724.k7OHOplC081118@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-emulation@FreeBSD.org Cc: Subject: Re: ports/102474: linux_base-fc-4_8 appears broken, does not allow to run Linux binaries X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Aug 2006 17:24:57 -0000 Synopsis: linux_base-fc-4_8 appears broken, does not allow to run Linux binaries Responsible-Changed-From-To: freebsd-bugs->freebsd-emulation Responsible-Changed-By: linimon Responsible-Changed-When: Thu Aug 24 17:24:23 UTC 2006 Responsible-Changed-Why: Ports PR. http://www.freebsd.org/cgi/query-pr.cgi?pr=102474 From owner-freebsd-emulation@FreeBSD.ORG Thu Aug 24 19:50: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 C290216A63F for ; Thu, 24 Aug 2006 19:50: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 9D24043D9C for ; Thu, 24 Aug 2006 19:50:23 +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 k7OJoM6G007915 for ; Thu, 24 Aug 2006 19:50:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k7OJoM86007914; Thu, 24 Aug 2006 19:50:22 GMT (envelope-from gnats) Date: Thu, 24 Aug 2006 19:50:22 GMT Message-Id: <200608241950.k7OJoM86007914@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: Boris Samorodov Cc: Subject: Re: ports/102474: linux_base-fc-4_8 appears broken, does not allow to run Linux binaries X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Boris Samorodov List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Aug 2006 19:50:32 -0000 The following reply was made to PR ports/102474; it has been noted by GNATS. From: Boris Samorodov To: bug-followup@FreeBSD.org, markus@mhoenicka.de Cc: Subject: Re: ports/102474: linux_base-fc-4_8 appears broken, does not allow to run Linux binaries Date: Thu, 24 Aug 2006 23:43:23 +0400 If you've read /usr/ports/UPDATING (20060616: AFFECTS users of emulation/linux_base-*) and your "printenv | grep LD_" shows nothing please put ktrace.out of "ktrace -i " somewere at http:// or ftp:// and send me a link by email. WBR -- bsam From owner-freebsd-emulation@FreeBSD.ORG Thu Aug 24 20:00:47 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 4430D16A504; Thu, 24 Aug 2006 20:00:47 +0000 (UTC) (envelope-from bsam@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DCDFF43D5A; Thu, 24 Aug 2006 20:00:46 +0000 (GMT) (envelope-from bsam@FreeBSD.org) Received: from freefall.freebsd.org (bsam@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k7OK0kgX008658; Thu, 24 Aug 2006 20:00:46 GMT (envelope-from bsam@freefall.freebsd.org) Received: (from bsam@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k7OK0kIv008639; Thu, 24 Aug 2006 20:00:46 GMT (envelope-from bsam) Date: Thu, 24 Aug 2006 20:00:46 GMT From: Boris Samorodov Message-Id: <200608242000.k7OK0kIv008639@freefall.freebsd.org> To: markus@mhoenicka.de, bsam@FreeBSD.org, freebsd-emulation@FreeBSD.org Cc: Subject: Re: ports/102474: linux_base-fc-4_8 appears broken, does not allow to run Linux binaries X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Aug 2006 20:00:47 -0000 Synopsis: linux_base-fc-4_8 appears broken, does not allow to run Linux binaries State-Changed-From-To: open->feedback State-Changed-By: bsam State-Changed-When: Thu Aug 24 20:00:06 UTC 2006 State-Changed-Why: Awaiting for a feedback. http://www.freebsd.org/cgi/query-pr.cgi?pr=102474 From owner-freebsd-emulation@FreeBSD.ORG Thu Aug 24 20:30:27 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 E431F16A4DA for ; Thu, 24 Aug 2006 20:30:27 +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 973B543D53 for ; Thu, 24 Aug 2006 20:30:27 +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 k7OKURG8010794 for ; Thu, 24 Aug 2006 20:30:27 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k7OKURJR010793; Thu, 24 Aug 2006 20:30:27 GMT (envelope-from gnats) Date: Thu, 24 Aug 2006 20:30:27 GMT Message-Id: <200608242030.k7OKURJR010793@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: "Markus Hoenicka" Cc: Subject: Re: ports/102474: linux_base-fc-4_8 appears broken, does not allow to run Linux binaries X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Markus Hoenicka List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Aug 2006 20:30:28 -0000 The following reply was made to PR ports/102474; it has been noted by GNATS. From: "Markus Hoenicka" To: Boris Samorodov Cc: bug-followup@FreeBSD.org Subject: Re: ports/102474: linux_base-fc-4_8 appears broken, does not allow to run Linux binaries Date: Thu, 24 Aug 2006 22:28:05 +0200 Boris, this is the additional info pertaining to the section you mentioned in UPDATING: - I did not modify any relevant sysctls: yeti# sysctl -h compat.linux.osname compat.linux.osname: Linux yeti# sysctl -h compat.linux.osrelease compat.linux.osrelease: 2.4.2 - I did not set any LD_* variables: yeti# printenv|grep LD_ yeti# The ktrace output is available at: http://refdb.sourceforge.net/stuff/ktrace.out Thanks for looking into this. Markus Boris Samorodov writes: > If you've read /usr/ports/UPDATING (20060616: AFFECTS users of > emulation/linux_base-*) and your "printenv | grep LD_" shows nothing > please put ktrace.out of "ktrace -i " somewere at > http:// or ftp:// and send me a link by email. > > WBR > -- > bsam > -- Markus Hoenicka markus.hoenicka@cats.de (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de From owner-freebsd-emulation@FreeBSD.ORG Thu Aug 24 21:10:43 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 3D4D516A524 for ; Thu, 24 Aug 2006 21:10:43 +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 2D9A643D60 for ; Thu, 24 Aug 2006 21:10:39 +0000 (GMT) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([83.239.48.170]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id k7OLAJib076064; Fri, 25 Aug 2006 01:10:29 +0400 (MSD) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1GGMRm-0000Nn-E6; Fri, 25 Aug 2006 01:09:06 +0400 To: "Markus Hoenicka" References: <17646.3029.176290.711490@yeti.mininet> From: Boris Samorodov Date: Fri, 25 Aug 2006 01:09:06 +0400 In-Reply-To: <17646.3029.176290.711490@yeti.mininet> (Markus Hoenicka's message of "Thu, 24 Aug 2006 22:28:05 +0200") Message-ID: <80657181@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: freebsd-emulation@FreeBSD.org Subject: Re: ports/102474: linux_base-fc-4_8 appears broken, does not allow to run Linux binaries X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Aug 2006 21:10:43 -0000 On Thu, 24 Aug 2006 22:28:05 +0200 Markus Hoenicka wrote: > The ktrace output is available at: > http://refdb.sourceforge.net/stuff/ktrace.out >From your ktrace.out: ----- 17593 915resolution NAMI "/compat/linux/usr/lib/libc.so.6" 17593 915resolution NAMI "/usr/lib/libc.so.6" 17593 915resolution RET open 3 17593 915resolution CALL read(0x3,0xbfbfdeb4,0x200) 17593 915resolution GIO fd 3 read 512 bytes ----- What is the file /usr/lib/libc.so.6? This file shouldn't exist. Remove it and try once more... 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 Thu Aug 24 21:28:17 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 1159516A4DF for ; Thu, 24 Aug 2006 21:28:17 +0000 (UTC) (envelope-from markus.hoenicka@mhoenicka.de) Received: from rrzmta2.rz.uni-regensburg.de (rrzmta2.rz.uni-regensburg.de [132.199.1.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 973E643D49 for ; Thu, 24 Aug 2006 21:28:16 +0000 (GMT) (envelope-from markus.hoenicka@mhoenicka.de) Received: from rrzmta2.rz.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 632326956C; Thu, 24 Aug 2006 23:28:24 +0200 (CEST) Received: from yeti.mininet (rrzras2-50.rz.uni-regensburg.de [132.199.209.50]) by rrzmta2.rz.uni-regensburg.de (Postfix) with ESMTP id 2FFD469566; Thu, 24 Aug 2006 23:28:22 +0200 (CEST) X-Mailer: emacs 21.3.1 (via feedmail 8 I); VM 7.19 under Emacs 21.3.1 From: "Markus Hoenicka" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17646.6613.28038.72832@yeti.mininet> Date: Thu, 24 Aug 2006 23:27:49 +0200 To: Boris Samorodov In-Reply-To: <80657181@bsam.ru> References: <17646.3029.176290.711490@yeti.mininet> <80657181@bsam.ru> Cc: freebsd-emulation@FreeBSD.org Subject: Re: ports/102474: linux_base-fc-4_8 appears broken, does not allow to run Linux binaries X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Aug 2006 21:28:17 -0000 Hi, Boris Samorodov writes: > What is the file /usr/lib/libc.so.6? This file shouldn't exist. Remove > it and try once more... > Indeed, /usr/lib/libc.so.6 was a stale symlink to /usr/lib/libc.so.5 which does not exist. Don't ask me where this symlink came from. The timestamp indicates that it may have been from the original 4.x installation on that box, unless I did something really bad and really stupid back then. After removing the symlink, 915resolution works ok. However, the other failure that I've reported still exists: yeti# /compat/linux/usr/bin/ldd /compat/linux/sbin/ldconfig /compat/linux/usr/bin/ldd: /lib/ld-linux.so.2: not found /compat/linux/lib/ld-linux.so.2 does exist, but /lib/ld-linux.so.2 doesn't. Is that command indeed supposed to work? regards, Markus -- Markus Hoenicka markus.hoenicka@cats.de (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de From owner-freebsd-emulation@FreeBSD.ORG Thu Aug 24 21:39: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 E173716A4E5 for ; Thu, 24 Aug 2006 21:39:24 +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 7E4C943D69 for ; Thu, 24 Aug 2006 21:39:08 +0000 (GMT) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([83.239.48.170]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id k7OLcm0g078380; Fri, 25 Aug 2006 01:38:58 +0400 (MSD) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1GGMtL-0000R6-P9; Fri, 25 Aug 2006 01:37:35 +0400 To: "Markus Hoenicka" References: <17646.3029.176290.711490@yeti.mininet> <80657181@bsam.ru> <17646.6613.28038.72832@yeti.mininet> From: Boris Samorodov Date: Fri, 25 Aug 2006 01:37:35 +0400 In-Reply-To: <17646.6613.28038.72832@yeti.mininet> (Markus Hoenicka's message of "Thu, 24 Aug 2006 23:27:49 +0200") Message-ID: <14575472@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: freebsd-emulation@FreeBSD.org Subject: Re: ports/102474: linux_base-fc-4_8 appears broken, does not allow to run Linux binaries X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Aug 2006 21:39:25 -0000 On Thu, 24 Aug 2006 23:27:49 +0200 Markus Hoenicka wrote: > Boris Samorodov writes: > > What is the file /usr/lib/libc.so.6? This file shouldn't exist. Remove > > it and try once more... > > > Indeed, /usr/lib/libc.so.6 was a stale symlink to /usr/lib/libc.so.5 > which does not exist. Don't ask me where this symlink came from. The > timestamp indicates that it may have been from the original 4.x > installation on that box, unless I did something really bad and really > stupid back then. > After removing the symlink, 915resolution works ok. However, the other > failure that I've reported still exists: OK. That's a little bit better. ;-) > yeti# /compat/linux/usr/bin/ldd /compat/linux/sbin/ldconfig > /compat/linux/usr/bin/ldd: /lib/ld-linux.so.2: not found > /compat/linux/lib/ld-linux.so.2 does exist, but /lib/ld-linux.so.2 > doesn't. Is that command indeed supposed to work? I can't reproduce it: ----- # uname -a FreeBSD bsam.ru 6.1-STABLE FreeBSD 6.1-STABLE #0: Sat Aug 19 00:13:01 MSD 2006 bsam@bsam.ru:/usr/obj/usr/src/sys/GENERIC i386 # /compat/linux/usr/bin/ldd /compat/linux/sbin/ldconfig # ----- Can you give me a link to ktrace.out for "ktrace -i /compat/linux/usr/bin/ldd /compat/linux/sbin/ldconfig"? 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 Thu Aug 24 21:48:53 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 5ABBB16A4DA for ; Thu, 24 Aug 2006 21:48:53 +0000 (UTC) (envelope-from markus.hoenicka@mhoenicka.de) Received: from rrzmta1.rz.uni-regensburg.de (rrzmta1.rz.uni-regensburg.de [132.199.1.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DE2A43D7E for ; Thu, 24 Aug 2006 21:48:39 +0000 (GMT) (envelope-from markus.hoenicka@mhoenicka.de) Received: from rrzmta1.rz.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 975261BFF22; Thu, 24 Aug 2006 23:48:48 +0200 (CEST) Received: from yeti.mininet (rrzras2-50.rz.uni-regensburg.de [132.199.209.50]) by rrzmta1.rz.uni-regensburg.de (Postfix) with ESMTP id 29B051BF962; Thu, 24 Aug 2006 23:48:42 +0200 (CEST) X-Mailer: emacs 21.3.1 (via feedmail 8 I); VM 7.19 under Emacs 21.3.1 From: "Markus Hoenicka" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17646.7832.330245.660064@yeti.mininet> Date: Thu, 24 Aug 2006 23:48:08 +0200 To: Boris Samorodov In-Reply-To: <14575472@bsam.ru> References: <17646.3029.176290.711490@yeti.mininet> <80657181@bsam.ru> <17646.6613.28038.72832@yeti.mininet> <14575472@bsam.ru> Cc: freebsd-emulation@FreeBSD.org Subject: Re: ports/102474: linux_base-fc-4_8 appears broken, does not allow to run Linux binaries X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Aug 2006 21:48:53 -0000 Hi, Boris Samorodov writes: > OK. That's a little bit better. ;-) > Very much so! I've now also installed acroread which works without a hitch. > Can you give me a link to ktrace.out for > "ktrace -i /compat/linux/usr/bin/ldd /compat/linux/sbin/ldconfig"? > > Yes, please have a look at: http://refdb.sourceforge.net/stuff/ldd/ktrace.out regards, Markus -- Markus Hoenicka markus.hoenicka@cats.de (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de From owner-freebsd-emulation@FreeBSD.ORG Thu Aug 24 22:30:12 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 00D3B16A4DE for ; Thu, 24 Aug 2006 22:30:11 +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 1ED3043D4C for ; Thu, 24 Aug 2006 22:30:10 +0000 (GMT) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([83.239.48.146]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id k7OMTnpX083111; Fri, 25 Aug 2006 02:29:59 +0400 (MSD) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1GGNgi-0001Ur-G8; Fri, 25 Aug 2006 02:28:36 +0400 To: "Markus Hoenicka" References: <17646.3029.176290.711490@yeti.mininet> <80657181@bsam.ru> <17646.6613.28038.72832@yeti.mininet> <14575472@bsam.ru> <17646.7832.330245.660064@yeti.mininet> From: Boris Samorodov Date: Fri, 25 Aug 2006 02:28:36 +0400 In-Reply-To: <17646.7832.330245.660064@yeti.mininet> (Markus Hoenicka's message of "Thu, 24 Aug 2006 23:48:08 +0200") Message-ID: <48492411@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: Alexander Leidinger , freebsd-emulation@FreeBSD.org Subject: Re: ports/102474: linux_base-fc-4_8 appears broken, does not allow to run Linux binaries X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Aug 2006 22:30:12 -0000 On Thu, 24 Aug 2006 23:48:08 +0200 Markus Hoenicka wrote: > Boris Samorodov writes: > > Can you give me a link to ktrace.out for > > "ktrace -i /compat/linux/usr/bin/ldd /compat/linux/sbin/ldconfig"? > Yes, please have a look at: > http://refdb.sourceforge.net/stuff/ldd/ktrace.out Aha, /compat/linux/usr/bin/ldd is a script. Can't say for sure should it work or not but something strange does exist: ----- 24546 ktrace RET ktrace 0 24546 ktrace CALL execve(0xbfbfe85e,0xbfbfe75c,0xbfbfe768) 24546 ktrace NAMI "/compat/linux/usr/bin/ldd" 24546 ktrace NAMI "/bin/sh" 24546 ktrace NAMI "/libexec/ld-elf.so.1" 24546 sh RET execve 0 ----- Alexander, can you comment on this behaviour? 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 Thu Aug 24 23:10:36 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 4976216A4DD for ; Thu, 24 Aug 2006 23:10:36 +0000 (UTC) (envelope-from jhein@timing.com) Received: from Daffy.timing.com (w.timing.com [206.168.13.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F9EE43D49 for ; Thu, 24 Aug 2006 23:10:35 +0000 (GMT) (envelope-from jhein@timing.com) Received: from gromit.timing.com (gromit.timing.com [206.168.13.209]) by Daffy.timing.com (8.13.1/8.13.1) with ESMTP id k7ONAYJt042649; Thu, 24 Aug 2006 17:10:34 -0600 (MDT) (envelope-from jhein@timing.com) Received: from gromit.timing.com (localhost [127.0.0.1]) by gromit.timing.com (8.13.6/8.13.6) with ESMTP id k7ONARpb057623; Thu, 24 Aug 2006 17:10:27 -0600 (MDT) (envelope-from jhein@gromit.timing.com) Received: (from jhein@localhost) by gromit.timing.com (8.13.6/8.13.6/Submit) id k7ONAQ59057620; Thu, 24 Aug 2006 17:10:26 -0600 (MDT) (envelope-from jhein) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17646.12770.712906.640034@gromit.timing.com> Date: Thu, 24 Aug 2006 17:10:26 -0600 From: John E Hein To: Boris Samorodov In-Reply-To: <48492411@bsam.ru> References: <17646.3029.176290.711490@yeti.mininet> <80657181@bsam.ru> <17646.6613.28038.72832@yeti.mininet> <14575472@bsam.ru> <17646.7832.330245.660064@yeti.mininet> <48492411@bsam.ru> X-Mailer: VM 7.19 under Emacs 21.3.1 X-Virus-Scanned: ClamAV version 0.87.1, clamav-milter version 0.87 on Daffy.timing.com X-Virus-Status: Clean Cc: Alexander Leidinger , freebsd-emulation@freebsd.org, Markus Hoenicka Subject: Re: ports/102474: linux_base-fc-4_8 appears broken, does not allow to run Linux binaries X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Aug 2006 23:10:36 -0000 Boris Samorodov wrote at 02:28 +0400 on Aug 25, 2006: > Aha, /compat/linux/usr/bin/ldd is a script. Can't say for sure should > it work or not but something strange does exist: > ----- > 24546 ktrace RET ktrace 0 > 24546 ktrace CALL execve(0xbfbfe85e,0xbfbfe75c,0xbfbfe768) > 24546 ktrace NAMI "/compat/linux/usr/bin/ldd" > 24546 ktrace NAMI "/bin/sh" > 24546 ktrace NAMI "/libexec/ld-elf.so.1" > 24546 sh RET execve 0 ^^^^ you probably get something different if you use linux_kdump? As far as ldd goes, it calls ld-linux.so.2 (yes, the lib is executable) which is a sym link to ld-2.3.6.so file /compat/linux/lib/ld-2.3.6.so /compat/linux/lib/ld-2.3.6.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped Note the improper brandelf if it were to be run as an executable (should be GNU/Linux, not SYSV). You could copy ld-2.3.6.so to somewhere else, brandelf -t Linux it (I wouldn't do that to the real /compat/linux/lib/ld-2.3.6.so), and tell the ldd script to use that version. It would probably be best to run the script with bash rather than FreeBSD's sh. I suspect there are bash-specific idioms in that script. I tried that and ld-2.3.6.so returns funky results (not surprising)... /tmp/ld-2.3.6.so --verify /compat/linux/bin/bash ; echo $? 1 On a real linux box: /lib/ld-2.3.6.so --verify /bin/bash ; echo status: $? 6 status: 0 To get /compat/linux/lib/ld-linux.so.2 (and thus /compat/linux/usr/bin/ldd) working in the emulated environment would probably take some hacking. I vaguely recall this being discussed before? To the OP, why not just use native FreeBSD ldd? ldd /compat/linux/bin/bash /compat/linux/bin/bash: libtermcap.so.2 => /lib/libtermcap.so.2 (0x28109000) libdl.so.2 => /lib/libdl.so.2 (0x2810e000) libc.so.6 => /lib/obsolete/linuxthreads/libc.so.6 (0x28112000) /lib/ld-linux.so.2 (0x280e9000) From owner-freebsd-emulation@FreeBSD.ORG Fri Aug 25 03:12:16 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 3A2EC16A4DE; Fri, 25 Aug 2006 03:12:16 +0000 (UTC) (envelope-from admin@intron.ac) Received: from intron.ac (unknown [210.51.165.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4390A43D46; Fri, 25 Aug 2006 03:12:15 +0000 (GMT) (envelope-from admin@intron.ac) Received: from localhost (localhost [127.0.0.1]) (uid 1003) by intron.ac with local; Fri, 25 Aug 2006 11:12:10 +0800 id 00108807.44EE6A8A.00008655 From: "Intron is my alias on the Internet" To: freebsd-emulation@freebsd.org, freebsd-current@freebsd.org Date: Fri, 25 Aug 2006 11:12:10 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312"; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Cc: Subject: Linuxulator: Unbreak Mozilla, Firefox and RealPlayer 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: Fri, 25 Aug 2006 03:12:16 -0000 Debugging is somewhat MUCH MORE DIFFICULT than rewriting. Here is the minimum patch that can only unbreak Mozilla 1.7.12 (GTK 1), Firefox 1.0.7 and RealPlayer 10.0.7.785 (playing video) (sysctl compat.linux.osrelease=2.6.16). It doesn't mean problems of clone(2) have been fixed. Actually, clone(2), set_thread_area(2) and get_thread_area(2) are mis-interpreted. Adobe Reader 7.0.8 hasn't been completely unbroken yet. Problems around it seem to be more complicated. My patch (against /sys/i386/linux/linux_machdep.c of CVS revision 1.53): http://ftp.intron.ac/tmp/linux_machdep.c.1.53.diff ------------------------------------------------------------------------ From Beijing, China From owner-freebsd-emulation@FreeBSD.ORG Fri Aug 25 06:23:34 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 B3CC216A4E0; Fri, 25 Aug 2006 06:23: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 B264943D79; Fri, 25 Aug 2006 06:23:16 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5FD71.dip.t-dialin.net [84.165.253.113]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k7P6558l035555; Fri, 25 Aug 2006 08:05:05 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k7P6NKb8073210; Fri, 25 Aug 2006 08:23:20 +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; Fri, 25 Aug 2006 08:23:20 +0200 Message-ID: <20060825082320.ygobmy4doo0sowsg@netchild.homeip.net> X-Priority: 3 (Normal) Date: Fri, 25 Aug 2006 08:23:20 +0200 From: Alexander Leidinger To: Boris Samorodov References: <17646.3029.176290.711490@yeti.mininet> <80657181@bsam.ru> <17646.6613.28038.72832@yeti.mininet> <14575472@bsam.ru> <17646.7832.330245.660064@yeti.mininet> <48492411@bsam.ru> In-Reply-To: <48492411@bsam.ru> 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.2) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: freebsd-emulation@freebsd.org, freebsd-gnats-submit@freebsd.org, Markus Hoenicka Subject: Re: ports/102474: linux_base-fc-4_8 appears broken, does not allow to run Linux binaries 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: Fri, 25 Aug 2006 06:23:34 -0000 Quoting Boris Samorodov (from Fri, 25 Aug 2006 02:28:36 +0400)= : > On Thu, 24 Aug 2006 23:48:08 +0200 Markus Hoenicka wrote: >> Boris Samorodov writes: > >> > Can you give me a link to ktrace.out for >> > "ktrace -i /compat/linux/usr/bin/ldd /compat/linux/sbin/ldconfig"? > >> Yes, please have a look at: > >> http://refdb.sourceforge.net/stuff/ldd/ktrace.out > > Aha, /compat/linux/usr/bin/ldd is a script. Can't say for sure should > it work or not but something strange does exist: > ----- > 24546 ktrace RET ktrace 0 > 24546 ktrace CALL execve(0xbfbfe85e,0xbfbfe75c,0xbfbfe768) > 24546 ktrace NAMI "/compat/linux/usr/bin/ldd" > 24546 ktrace NAMI "/bin/sh" > 24546 ktrace NAMI "/libexec/ld-elf.so.1" > 24546 sh RET execve 0 > ----- > > Alexander, can you comment on this behaviour? Thanks! The kernel contains code to detect if a linux program is a script and =20 contains "#!" at the beginning. If it detects this, it tries to start =20 the linux version of the interpreter. At least it should do that. If =20 the above isn't a cut-down version of the ktrace, and if the linux ldd =20 does contain "#!" as the first two characters of the file (I can't =20 check ATM), then there's something wrong here. Regarding the lib problem in the PR: FreeBSD 6.x and fc4 contain a =20 libc.so.6. So the order of the ld path (/compat/linux/etc/ld.so.conf =20 or how it is spelled) may matter. I don't have a 6.x system to test =20 this, so someone has to play around with it and report here (don't =20 forget to rerun the linux ldconfig with the '-R /compat/linux' option =20 after each change). If this doesn't solve the problem, I need to see =20 the complete ktrace of a failing program which tries to link with =20 libc.so.6. Bye, Alexander. --=20 58: Shareware installieren Die System Clock um drei Monate zur=C3=BCckstellen (Peter Berlich= ) 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 Fri Aug 25 06:29:32 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 5B02616A504 for ; Fri, 25 Aug 2006 06:29:32 +0000 (UTC) (envelope-from markus.hoenicka@mhoenicka.de) Received: from webmailv3.ispgateway.de (webmailv3.ispgateway.de [80.67.16.113]) by mx1.FreeBSD.org (Postfix) with ESMTP id D408143D4C for ; Fri, 25 Aug 2006 06:29:23 +0000 (GMT) (envelope-from markus.hoenicka@mhoenicka.de) Received: from localhost (webmailv3.ispgateway.de [127.0.0.1]) by webmailv3.ispgateway.de (8.12.8/8.12.8) with ESMTP id k7P6TKrl027367; Fri, 25 Aug 2006 08:29:21 +0200 Received: from pc51997.klinik.uni-regensburg.de (pc51997.klinik.uni-regensburg.de [132.199.174.149]) by domainfactory-webmail.de (IMP) with HTTP for <472582@localhost>; Fri, 25 Aug 2006 08:29:20 +0200 Message-ID: <1156487360.44ee98c084a10@www.domainfactory-webmail.de> Date: Fri, 25 Aug 2006 08:29:20 +0200 From: Markus Hoenicka To: John E Hein References: <17646.3029.176290.711490@yeti.mininet> <80657181@bsam.ru> <17646.6613.28038.72832@yeti.mininet> <14575472@bsam.ru> <17646.7832.330245.660064@yeti.mininet> <48492411@bsam.ru> <17646.12770.712906.640034@gromit.timing.com> In-Reply-To: <17646.12770.712906.640034@gromit.timing.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.8 X-Originating-IP: 132.199.174.149 Cc: Alexander Leidinger , freebsd-emulation@freebsd.org Subject: Re: ports/102474: linux_base-fc-4_8 appears broken, does not allow to run Linux binaries 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: Fri, 25 Aug 2006 06:29:32 -0000 Hi, John E Hein was heard to say: > To the OP, why not just use native FreeBSD ldd? > > ldd /compat/linux/bin/bash > /compat/linux/bin/bash: > libtermcap.so.2 => /lib/libtermcap.so.2 (0x28109000) > libdl.so.2 => /lib/libdl.so.2 (0x2810e000) > libc.so.6 => /lib/obsolete/linuxthreads/libc.so.6 (0x28112000) > /lib/ld-linux.so.2 (0x280e9000) > You probably missed the start of all this. I originally tried to get 915resolution (a Linux binary available as a port in sysutils) running on my box. This app failed with an error message which indicated a problem with the linux emulation. I then tried to find out which libraries 915resolution wants to load. Upon this I found out that /compat/linux/usr/bin/ldd gives even stranger error messages. It is not that I badly need /compat/linux/usr/bin/ldd. It is just one of the Linux apps that behaved like something is wrong with the linux emulation. Hence I reported it too. BTW Boris has already helped me to fix the original problem in less than half a day (thanks again!!). 915resolution and acroread run without problems now. As far as I'm concerned as a FreeBSD user, I'm all set. However, if you guys feel there is something wrong in the linux emulation beyond my original problem, I'll be happy to provide further debug information. regards, Markus -- Markus Hoenicka markus.hoenicka@cats.de (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de From owner-freebsd-emulation@FreeBSD.ORG Fri Aug 25 06:30:28 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 7115316A4E0 for ; Fri, 25 Aug 2006 06:30:28 +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 1EA2D43D5E for ; Fri, 25 Aug 2006 06:30:24 +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 k7P6UOWc066527 for ; Fri, 25 Aug 2006 06:30:24 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k7P6UONw066525; Fri, 25 Aug 2006 06:30:24 GMT (envelope-from gnats) Date: Fri, 25 Aug 2006 06:30:24 GMT Message-Id: <200608250630.k7P6UONw066525@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: Alexander Leidinger Cc: Subject: Re: ports/102474: linux_base-fc-4_8 appears broken, does not allow to run Linux binaries X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alexander Leidinger List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Aug 2006 06:30:28 -0000 The following reply was made to PR ports/102474; it has been noted by GNATS. From: Alexander Leidinger To: Boris Samorodov Cc: Markus Hoenicka , freebsd-gnats-submit@freebsd.org, freebsd-emulation@freebsd.org Subject: Re: ports/102474: linux_base-fc-4_8 appears broken, does not allow to run Linux binaries Date: Fri, 25 Aug 2006 08:23:20 +0200 Quoting Boris Samorodov (from Fri, 25 Aug 2006 02:28:36 +0400)= : > On Thu, 24 Aug 2006 23:48:08 +0200 Markus Hoenicka wrote: >> Boris Samorodov writes: > >> > Can you give me a link to ktrace.out for >> > "ktrace -i /compat/linux/usr/bin/ldd /compat/linux/sbin/ldconfig"? > >> Yes, please have a look at: > >> http://refdb.sourceforge.net/stuff/ldd/ktrace.out > > Aha, /compat/linux/usr/bin/ldd is a script. Can't say for sure should > it work or not but something strange does exist: > ----- > 24546 ktrace RET ktrace 0 > 24546 ktrace CALL execve(0xbfbfe85e,0xbfbfe75c,0xbfbfe768) > 24546 ktrace NAMI "/compat/linux/usr/bin/ldd" > 24546 ktrace NAMI "/bin/sh" > 24546 ktrace NAMI "/libexec/ld-elf.so.1" > 24546 sh RET execve 0 > ----- > > Alexander, can you comment on this behaviour? Thanks! The kernel contains code to detect if a linux program is a script and =20 contains "#!" at the beginning. If it detects this, it tries to start =20 the linux version of the interpreter. At least it should do that. If =20 the above isn't a cut-down version of the ktrace, and if the linux ldd =20 does contain "#!" as the first two characters of the file (I can't =20 check ATM), then there's something wrong here. Regarding the lib problem in the PR: FreeBSD 6.x and fc4 contain a =20 libc.so.6. So the order of the ld path (/compat/linux/etc/ld.so.conf =20 or how it is spelled) may matter. I don't have a 6.x system to test =20 this, so someone has to play around with it and report here (don't =20 forget to rerun the linux ldconfig with the '-R /compat/linux' option =20 after each change). If this doesn't solve the problem, I need to see =20 the complete ktrace of a failing program which tries to link with =20 libc.so.6. Bye, Alexander. --=20 58: Shareware installieren Die System Clock um drei Monate zur=C3=BCckstellen (Peter Berlich= ) 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 Fri Aug 25 08:36: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 0D0CA16A4DE; Fri, 25 Aug 2006 08:36:39 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.10.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4EF7F43D4C; Fri, 25 Aug 2006 08:36:37 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.7/8.13.7) with ESMTP id k7P8aT3s092794 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Fri, 25 Aug 2006 10:36:29 +0200 (CEST) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.7/8.13.3/Submit) id k7P8aTSq092793; Fri, 25 Aug 2006 10:36:29 +0200 (CEST) Date: Fri, 25 Aug 2006 10:36:28 +0200 From: Divacky Roman To: Alexander Leidinger Message-ID: <20060825083628.GA92621@stud.fit.vutbr.cz> References: <17646.3029.176290.711490@yeti.mininet> <80657181@bsam.ru> <17646.6613.28038.72832@yeti.mininet> <14575472@bsam.ru> <17646.7832.330245.660064@yeti.mininet> <48492411@bsam.ru> <20060825082320.ygobmy4doo0sowsg@netchild.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060825082320.ygobmy4doo0sowsg@netchild.homeip.net> User-Agent: Mutt/1.4.2i X-Scanned-By: MIMEDefang 2.54 on 147.229.10.14 Cc: cejkar@fit.vutbr.cz, freebsd-emulation@freebsd.org, freebsd-gnats-submit@freebsd.org, Markus Hoenicka Subject: Re: ports/102474: linux_base-fc-4_8 appears broken, does not allow to run Linux binaries 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: Fri, 25 Aug 2006 08:36:39 -0000 On Fri, Aug 25, 2006 at 08:23:20AM +0200, Alexander Leidinger wrote: > Quoting Boris Samorodov (from Fri, 25 Aug 2006 02:28:36 > +0400): > > >On Thu, 24 Aug 2006 23:48:08 +0200 Markus Hoenicka wrote: > >>Boris Samorodov writes: > > > >> > Can you give me a link to ktrace.out for > >> > "ktrace -i /compat/linux/usr/bin/ldd /compat/linux/sbin/ldconfig"? > > > >>Yes, please have a look at: > > > >>http://refdb.sourceforge.net/stuff/ldd/ktrace.out > > > >Aha, /compat/linux/usr/bin/ldd is a script. Can't say for sure should > >it work or not but something strange does exist: > >----- > > 24546 ktrace RET ktrace 0 > > 24546 ktrace CALL execve(0xbfbfe85e,0xbfbfe75c,0xbfbfe768) > > 24546 ktrace NAMI "/compat/linux/usr/bin/ldd" > > 24546 ktrace NAMI "/bin/sh" > > 24546 ktrace NAMI "/libexec/ld-elf.so.1" > > 24546 sh RET execve 0 > >----- > > > >Alexander, can you comment on this behaviour? Thanks! > > The kernel contains code to detect if a linux program is a script and > contains "#!" at the beginning. If it detects this, it tries to start > the linux version of the interpreter. At least it should do that. If > the above isn't a cut-down version of the ktrace, and if the linux ldd > does contain "#!" as the first two characters of the file (I can't > check ATM), then there's something wrong here. > > Regarding the lib problem in the PR: FreeBSD 6.x and fc4 contain a > libc.so.6. So the order of the ld path (/compat/linux/etc/ld.so.conf > or how it is spelled) may matter. I don't have a 6.x system to test > this, so someone has to play around with it and report here (don't > forget to rerun the linux ldconfig with the '-R /compat/linux' option > after each change). If this doesn't solve the problem, I need to see > the complete ktrace of a failing program which tries to link with > libc.so.6. it might be unrelated but I have reports that libmaping doesnt work in this case when you have the same named library. the problem is in system linker. dont remember details I CC: cejkar@fit.vutbr.cz who reported me this problem. roman From owner-freebsd-emulation@FreeBSD.ORG Fri Aug 25 08:40:42 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 6CE2016A4DF for ; Fri, 25 Aug 2006 08:40:42 +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 5413C43D7D for ; Fri, 25 Aug 2006 08:40: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 k7P8eP24078350 for ; Fri, 25 Aug 2006 08:40:25 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k7P8eOAC078349; Fri, 25 Aug 2006 08:40:24 GMT (envelope-from gnats) Date: Fri, 25 Aug 2006 08:40:24 GMT Message-Id: <200608250840.k7P8eOAC078349@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: Divacky Roman Cc: Subject: Re: ports/102474: linux_base-fc-4_8 appears broken, does not allow to run Linux binaries X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Divacky Roman List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Aug 2006 08:40:42 -0000 The following reply was made to PR ports/102474; it has been noted by GNATS. From: Divacky Roman To: Alexander Leidinger Cc: Boris Samorodov , freebsd-emulation@freebsd.org, freebsd-gnats-submit@freebsd.org, Markus Hoenicka , cejkar@fit.vutbr.cz Subject: Re: ports/102474: linux_base-fc-4_8 appears broken, does not allow to run Linux binaries Date: Fri, 25 Aug 2006 10:36:28 +0200 On Fri, Aug 25, 2006 at 08:23:20AM +0200, Alexander Leidinger wrote: > Quoting Boris Samorodov (from Fri, 25 Aug 2006 02:28:36 > +0400): > > >On Thu, 24 Aug 2006 23:48:08 +0200 Markus Hoenicka wrote: > >>Boris Samorodov writes: > > > >> > Can you give me a link to ktrace.out for > >> > "ktrace -i /compat/linux/usr/bin/ldd /compat/linux/sbin/ldconfig"? > > > >>Yes, please have a look at: > > > >>http://refdb.sourceforge.net/stuff/ldd/ktrace.out > > > >Aha, /compat/linux/usr/bin/ldd is a script. Can't say for sure should > >it work or not but something strange does exist: > >----- > > 24546 ktrace RET ktrace 0 > > 24546 ktrace CALL execve(0xbfbfe85e,0xbfbfe75c,0xbfbfe768) > > 24546 ktrace NAMI "/compat/linux/usr/bin/ldd" > > 24546 ktrace NAMI "/bin/sh" > > 24546 ktrace NAMI "/libexec/ld-elf.so.1" > > 24546 sh RET execve 0 > >----- > > > >Alexander, can you comment on this behaviour? Thanks! > > The kernel contains code to detect if a linux program is a script and > contains "#!" at the beginning. If it detects this, it tries to start > the linux version of the interpreter. At least it should do that. If > the above isn't a cut-down version of the ktrace, and if the linux ldd > does contain "#!" as the first two characters of the file (I can't > check ATM), then there's something wrong here. > > Regarding the lib problem in the PR: FreeBSD 6.x and fc4 contain a > libc.so.6. So the order of the ld path (/compat/linux/etc/ld.so.conf > or how it is spelled) may matter. I don't have a 6.x system to test > this, so someone has to play around with it and report here (don't > forget to rerun the linux ldconfig with the '-R /compat/linux' option > after each change). If this doesn't solve the problem, I need to see > the complete ktrace of a failing program which tries to link with > libc.so.6. it might be unrelated but I have reports that libmaping doesnt work in this case when you have the same named library. the problem is in system linker. dont remember details I CC: cejkar@fit.vutbr.cz who reported me this problem. roman From owner-freebsd-emulation@FreeBSD.ORG Fri Aug 25 08:48:08 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 AB49916A4DA; Fri, 25 Aug 2006 08:48:08 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.10.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 63AC443D58; Fri, 25 Aug 2006 08:48:02 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.7/8.13.7) with ESMTP id k7P8ltxl093729 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Fri, 25 Aug 2006 10:47:55 +0200 (CEST) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.7/8.13.3/Submit) id k7P8ltt1093728; Fri, 25 Aug 2006 10:47:55 +0200 (CEST) Date: Fri, 25 Aug 2006 10:47:55 +0200 From: Divacky Roman To: Intron is my alias on the Internet Message-ID: <20060825084755.GA93151@stud.fit.vutbr.cz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i X-Scanned-By: MIMEDefang 2.54 on 147.229.10.14 Cc: freebsd-emulation@freebsd.org, freebsd-current@freebsd.org Subject: Re: Linuxulator: Unbreak Mozilla, Firefox and RealPlayer 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: Fri, 25 Aug 2006 08:48:08 -0000 On Fri, Aug 25, 2006 at 11:12:10AM +0800, Intron is my alias on the Internet wrote: > Debugging is somewhat MUCH MORE DIFFICULT than rewriting. > > Here is the minimum patch that can only unbreak Mozilla 1.7.12 (GTK 1), > Firefox 1.0.7 and RealPlayer 10.0.7.785 (playing video) > (sysctl compat.linux.osrelease=2.6.16). > > It doesn't mean problems of clone(2) have been fixed. Actually, clone(2), > set_thread_area(2) and get_thread_area(2) are mis-interpreted. > > Adobe Reader 7.0.8 hasn't been completely unbroken yet. Problems around > it seem to be more complicated. > > My patch (against /sys/i386/linux/linux_machdep.c of CVS revision 1.53): > > http://ftp.intron.ac/tmp/linux_machdep.c.1.53.diff + p2->p_pptr = td->td_proc->p_pptr; I already did this but differently: if (args->flags & (CLONE_PARENT|CLONE_THREAD)) { struct linux_getppid_args gpa; struct proc *pp; (void) linux_getppid(td, &gpa); pp = pfind(td->td_retval[0]); if (pp == NULL) { printf("shit\n"); return 0; } PROC_LOCK(p2); p2->p_pptr = pp; PROC_UNLOCK(p2); PROC_UNLOCK(pp); } also, linux also sets pgrp with CLONE_THREAD. can you pls explain me the set_thread_area() changes? also.. dont forget to update both instances of setting up TLS (ie. in CLONE_SETTLS and in set_thread_area() syscall) I have some more fixes uncommited which might fix the acroread. thnx for the work! roman From owner-freebsd-emulation@FreeBSD.ORG Fri Aug 25 10:25:29 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 1572516A4DA; Fri, 25 Aug 2006 10:25:29 +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 4168943D49; Fri, 25 Aug 2006 10:25:27 +0000 (GMT) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([83.239.48.148]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id k7PAP6YJ020590; Fri, 25 Aug 2006 14:25:16 +0400 (MSD) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1GGYqp-0000iY-TQ; Fri, 25 Aug 2006 14:23:47 +0400 To: Alexander Leidinger References: <17646.3029.176290.711490@yeti.mininet> <80657181@bsam.ru> <17646.6613.28038.72832@yeti.mininet> <14575472@bsam.ru> <17646.7832.330245.660064@yeti.mininet> <48492411@bsam.ru> <20060825082320.ygobmy4doo0sowsg@netchild.homeip.net> From: Boris Samorodov Date: Fri, 25 Aug 2006 14:23:47 +0400 In-Reply-To: <20060825082320.ygobmy4doo0sowsg@netchild.homeip.net> (Alexander Leidinger's message of "Fri, 25 Aug 2006 08:23:20 +0200") Message-ID: <69933964@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: freebsd-emulation@freebsd.org, freebsd-gnats-submit@freebsd.org, Markus Hoenicka Subject: Re: ports/102474: linux_base-fc-4_8 appears broken, does not allow to run Linux binaries 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: Fri, 25 Aug 2006 10:25:29 -0000 On Fri, 25 Aug 2006 08:23:20 +0200 Alexander Leidinger wrote: > Quoting Boris Samorodov (from Fri, 25 Aug 2006 02:28:36 +0400): > > On Thu, 24 Aug 2006 23:48:08 +0200 Markus Hoenicka wrote: > >> Boris Samorodov writes: > > > >> > Can you give me a link to ktrace.out for > >> > "ktrace -i /compat/linux/usr/bin/ldd /compat/linux/sbin/ldconfig"? > > > >> Yes, please have a look at: > > > >> http://refdb.sourceforge.net/stuff/ldd/ktrace.out > > > > Aha, /compat/linux/usr/bin/ldd is a script. Can't say for sure should > > it work or not but something strange does exist: > > ----- > > 24546 ktrace RET ktrace 0 > > 24546 ktrace CALL execve(0xbfbfe85e,0xbfbfe75c,0xbfbfe768) > > 24546 ktrace NAMI "/compat/linux/usr/bin/ldd" > > 24546 ktrace NAMI "/bin/sh" > > 24546 ktrace NAMI "/libexec/ld-elf.so.1" > > 24546 sh RET execve 0 > > ----- > > > > Alexander, can you comment on this behaviour? Thanks! > The kernel contains code to detect if a linux program is a script and > contains "#!" at the beginning. If it detects this, it tries to start > the linux version of the interpreter. At least it should do that. If > the above isn't a cut-down version of the ktrace, and if the linux ldd It is a cut-down version of ktrace. I expected that a linux shell should be execed, but not a native one. And later this shell is trying to find /lib/ld-linux.so.2 and boils out! > does contain "#!" as the first two characters of the file (I can't > check ATM), then there's something wrong here. Yep: ----- # uname -a FreeBSD bsam.ru 6.1-STABLE FreeBSD 6.1-STABLE #0: Sat Aug 19 00:13:01 MSD 2006 bsam@bsam.ru:/usr/obj/usr/src/sys/GENERIC i386 # head -1 /compat/linux/usr/bin/ldd #! /bin/sh ----- > Regarding the lib problem in the PR: FreeBSD 6.x and fc4 contain a > libc.so.6. So the order of the ld path (/compat/linux/etc/ld.so.conf > or how it is spelled) may matter. I don't have a 6.x system to test > this, so someone has to play around with it and report here (don't > forget to rerun the linux ldconfig with the '-R /compat/linux' option > after each change). If this doesn't solve the problem, I need to see > the complete ktrace of a failing program which tries to link with > libc.so.6. The lib problem is already fixed (non-standard file /usr/lib/libc.so.6 existed at the submitter's machine). Thanks for your help. 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 Fri Aug 25 10:30:27 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 1449816A4DA for ; Fri, 25 Aug 2006 10:30:27 +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 B41A943D53 for ; Fri, 25 Aug 2006 10:30:26 +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 k7PAUQ20083479 for ; Fri, 25 Aug 2006 10:30:26 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k7PAUQDK083478; Fri, 25 Aug 2006 10:30:26 GMT (envelope-from gnats) Date: Fri, 25 Aug 2006 10:30:26 GMT Message-Id: <200608251030.k7PAUQDK083478@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: Boris Samorodov Cc: Subject: Re: ports/102474: linux_base-fc-4_8 appears broken, does not allow to run Linux binaries X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Boris Samorodov List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Aug 2006 10:30:27 -0000 The following reply was made to PR ports/102474; it has been noted by GNATS. From: Boris Samorodov To: Alexander Leidinger Cc: Markus Hoenicka , freebsd-gnats-submit@freebsd.org, freebsd-emulation@freebsd.org Subject: Re: ports/102474: linux_base-fc-4_8 appears broken, does not allow to run Linux binaries Date: Fri, 25 Aug 2006 14:23:47 +0400 On Fri, 25 Aug 2006 08:23:20 +0200 Alexander Leidinger wrote: > Quoting Boris Samorodov (from Fri, 25 Aug 2006 02:28:36 +0400): > > On Thu, 24 Aug 2006 23:48:08 +0200 Markus Hoenicka wrote: > >> Boris Samorodov writes: > > > >> > Can you give me a link to ktrace.out for > >> > "ktrace -i /compat/linux/usr/bin/ldd /compat/linux/sbin/ldconfig"? > > > >> Yes, please have a look at: > > > >> http://refdb.sourceforge.net/stuff/ldd/ktrace.out > > > > Aha, /compat/linux/usr/bin/ldd is a script. Can't say for sure should > > it work or not but something strange does exist: > > ----- > > 24546 ktrace RET ktrace 0 > > 24546 ktrace CALL execve(0xbfbfe85e,0xbfbfe75c,0xbfbfe768) > > 24546 ktrace NAMI "/compat/linux/usr/bin/ldd" > > 24546 ktrace NAMI "/bin/sh" > > 24546 ktrace NAMI "/libexec/ld-elf.so.1" > > 24546 sh RET execve 0 > > ----- > > > > Alexander, can you comment on this behaviour? Thanks! > The kernel contains code to detect if a linux program is a script and > contains "#!" at the beginning. If it detects this, it tries to start > the linux version of the interpreter. At least it should do that. If > the above isn't a cut-down version of the ktrace, and if the linux ldd It is a cut-down version of ktrace. I expected that a linux shell should be execed, but not a native one. And later this shell is trying to find /lib/ld-linux.so.2 and boils out! > does contain "#!" as the first two characters of the file (I can't > check ATM), then there's something wrong here. Yep: ----- # uname -a FreeBSD bsam.ru 6.1-STABLE FreeBSD 6.1-STABLE #0: Sat Aug 19 00:13:01 MSD 2006 bsam@bsam.ru:/usr/obj/usr/src/sys/GENERIC i386 # head -1 /compat/linux/usr/bin/ldd #! /bin/sh ----- > Regarding the lib problem in the PR: FreeBSD 6.x and fc4 contain a > libc.so.6. So the order of the ld path (/compat/linux/etc/ld.so.conf > or how it is spelled) may matter. I don't have a 6.x system to test > this, so someone has to play around with it and report here (don't > forget to rerun the linux ldconfig with the '-R /compat/linux' option > after each change). If this doesn't solve the problem, I need to see > the complete ktrace of a failing program which tries to link with > libc.so.6. The lib problem is already fixed (non-standard file /usr/lib/libc.so.6 existed at the submitter's machine). Thanks for your help. 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 Fri Aug 25 11:30:35 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 3BF8D16A4DD; Fri, 25 Aug 2006 11:30:35 +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 7116943D49; Fri, 25 Aug 2006 11:30:31 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5FD71.dip.t-dialin.net [84.165.253.113]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k7PBCGAW036532; Fri, 25 Aug 2006 13:12:17 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k7PBUZiA017400; Fri, 25 Aug 2006 13:30:35 +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; Fri, 25 Aug 2006 13:30:34 +0200 Message-ID: <20060825133034.jglu4yf9j400sosw@netchild.homeip.net> X-Priority: 3 (Normal) Date: Fri, 25 Aug 2006 13:30:34 +0200 From: Alexander Leidinger To: Divacky Roman References: <20060825084755.GA93151@stud.fit.vutbr.cz> In-Reply-To: <20060825084755.GA93151@stud.fit.vutbr.cz> 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.2) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: freebsd-emulation@freebsd.org, freebsd-current@freebsd.org Subject: Re: Linuxulator: Unbreak Mozilla, Firefox and RealPlayer 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: Fri, 25 Aug 2006 11:30:35 -0000 Quoting Divacky Roman (from Fri, 25 Aug 2006 10:47:55 +0200): > I have some more fixes uncommited which might fix the acroread. For the curious: http://www.leidinger.net/FreeBSD/linuxolator/013_linuxolator_final_uncommitted.diff Bye, Alexander. -- In any country there must be people who have to die. They are the sacrifices any nation has to make to achieve law and order. -- Idi Amin Dada 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 Fri Aug 25 14:48:32 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 F11E616A4E0; Fri, 25 Aug 2006 14:48:32 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 38B0D43D6D; Fri, 25 Aug 2006 14:48:25 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.6/8.13.6) with ESMTP id k7PEmJ7K076037; Fri, 25 Aug 2006 10:48:19 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-current@freebsd.org Date: Fri, 25 Aug 2006 10:28:55 -0400 User-Agent: KMail/1.9.1 References: <20060825084755.GA93151@stud.fit.vutbr.cz> In-Reply-To: <20060825084755.GA93151@stud.fit.vutbr.cz> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200608251028.55915.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [192.168.0.1]); Fri, 25 Aug 2006 10:48:19 -0400 (EDT) X-Virus-Scanned: ClamAV 0.88.3/1728/Fri Aug 25 01:55:58 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: freebsd-emulation@freebsd.org Subject: Re: Linuxulator: Unbreak Mozilla, Firefox and RealPlayer 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: Fri, 25 Aug 2006 14:48:33 -0000 On Friday 25 August 2006 04:47, Divacky Roman wrote: > On Fri, Aug 25, 2006 at 11:12:10AM +0800, Intron is my alias on the Internet wrote: > > Debugging is somewhat MUCH MORE DIFFICULT than rewriting. > > > > Here is the minimum patch that can only unbreak Mozilla 1.7.12 (GTK 1), > > Firefox 1.0.7 and RealPlayer 10.0.7.785 (playing video) > > (sysctl compat.linux.osrelease=2.6.16). > > > > It doesn't mean problems of clone(2) have been fixed. Actually, clone(2), > > set_thread_area(2) and get_thread_area(2) are mis-interpreted. > > > > Adobe Reader 7.0.8 hasn't been completely unbroken yet. Problems around > > it seem to be more complicated. > > > > My patch (against /sys/i386/linux/linux_machdep.c of CVS revision 1.53): > > > > http://ftp.intron.ac/tmp/linux_machdep.c.1.53.diff > > + p2->p_pptr = td->td_proc->p_pptr; > > I already did this but differently: > > if (args->flags & (CLONE_PARENT|CLONE_THREAD)) { > struct linux_getppid_args gpa; > struct proc *pp; > > (void) linux_getppid(td, &gpa); > pp = pfind(td->td_retval[0]); > if (pp == NULL) { > printf("shit\n"); > return 0; > } > PROC_LOCK(p2); > p2->p_pptr = pp; > PROC_UNLOCK(p2); > PROC_UNLOCK(pp); > } > > also, linux also sets pgrp with CLONE_THREAD. Umm, if you want to reparent a proc you should use the proc_reparent() function instead of just hacking on p_pptr. You also need to hold the proctree_lock when modifying p_pptr anyway. -- John Baldwin From owner-freebsd-emulation@FreeBSD.ORG Fri Aug 25 15:14: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 05D2A16A4ED; Fri, 25 Aug 2006 15:14:47 +0000 (UTC) (envelope-from admin@intron.ac) Received: from intron.ac (unknown [210.51.165.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6404A43D49; Fri, 25 Aug 2006 15:14:46 +0000 (GMT) (envelope-from admin@intron.ac) Received: from localhost (localhost [127.0.0.1]) (uid 1003) by intron.ac with local; Fri, 25 Aug 2006 23:14:45 +0800 id 00108800.44EF13E5.0000AA1D References: <20060825084755.GA93151@stud.fit.vutbr.cz> <20060825133034.jglu4yf9j400sosw@netchild.homeip.net> In-Reply-To: <20060825133034.jglu4yf9j400sosw@netchild.homeip.net> From: "Intron is my alias on the Internet" To: freebsd-emulation@freebsd.org, freebsd-current@freebsd.org Date: Fri, 25 Aug 2006 23:14:44 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312"; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Cc: Subject: Problems of New Linuxulator I Have Known 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: Fri, 25 Aug 2006 15:14:47 -0000 1. Many options of clone(2) are not correctly implemented, some of which may cause application crash when it wants to clone memory-independent process. 2. TLS (Thread Local Storage) support in clone(2), set_thread_area(2) and get_thread_area(2) doesn't conform to Linux 2.6.x, which can damage stack of Linux application using NPTL (Native POSIX Threads Library). Of course, to obtain the conformation, FreeBSD native GDT must be rearranged. But Linux NPTL is quite essential for modern Linux applications. 3. wakeup_one(9) instead of wakeup(9) should be used for futex(2) to wake up a single sleeping thread. 4. Some options of clock_gettime(2) actually can be implemented, though FreeBSD native implementation is different from Linux's. 5. Code style problems: member naming of structure, macro naming, function naming, encapsulation for queue(3) and so on. In a word, may ORACLE 10g for Linux be able to run under FreeBSD soon. ------------------------------------------------------------------------ From Beijing, China Alexander Leidinger wrote: > Quoting Divacky Roman (from Fri, 25 Aug 2006 > 10:47:55 +0200): > >> I have some more fixes uncommited which might fix the acroread. > > For the curious: > http://www.leidinger.net/FreeBSD/linuxolator/013_linuxolator_final_uncommi > tted.diff > > Bye, > Alexander. > > -- > In any country there must be people who have to die. They are the > sacrifices any nation has to make to achieve law and order. > -- Idi Amin Dada > > 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 Fri Aug 25 18:10: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 01E0916A4E0; Fri, 25 Aug 2006 18:10:38 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.10.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 522A943D53; Fri, 25 Aug 2006 18:10:36 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.7/8.13.7) with ESMTP id k7PIAUSn015345 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Fri, 25 Aug 2006 20:10:30 +0200 (CEST) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.7/8.13.3/Submit) id k7PIAUek015344; Fri, 25 Aug 2006 20:10:30 +0200 (CEST) Date: Fri, 25 Aug 2006 20:10:29 +0200 From: Divacky Roman To: Intron is my alias on the Internet Message-ID: <20060825181029.GA15247@stud.fit.vutbr.cz> References: <20060825084755.GA93151@stud.fit.vutbr.cz> <20060825133034.jglu4yf9j400sosw@netchild.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i X-Scanned-By: MIMEDefang 2.54 on 147.229.10.14 Cc: freebsd-emulation@freebsd.org, freebsd-current@freebsd.org Subject: Re: Problems of New Linuxulator I Have Known 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: Fri, 25 Aug 2006 18:10:38 -0000 On Fri, Aug 25, 2006 at 11:14:44PM +0800, Intron is my alias on the Internet wrote: > 1. Many options of clone(2) are not correctly implemented, some of > which may cause application crash when it wants to clone > memory-independent process. like? > 2. TLS (Thread Local Storage) support in clone(2), set_thread_area(2) > and get_thread_area(2) doesn't conform to Linux 2.6.x, which can > damage stack of Linux application using NPTL (Native POSIX Threads > Library). > > Of course, to obtain the conformation, FreeBSD native GDT must be > rearranged. But Linux NPTL is quite essential for modern Linux > applications. what do you mean that doesnt conform? TLS in linux is implemented using GDT. the only difference between fbsd and linux I can think of is that linux supports 3 gdt entries while fbsd just one. > 3. wakeup_one(9) instead of wakeup(9) should be used for futex(2) to > wake up a single sleeping thread. yes... I agree > 4. Some options of clock_gettime(2) actually can be implemented, though > FreeBSD native implementation is different from Linux's. I might look at it > 5. Code style problems: member naming of structure, macro naming, > function naming, encapsulation for queue(3) and so on. in my code or in the imported code? > In a word, may ORACLE 10g for Linux be able to run under FreeBSD soon. nice :) From owner-freebsd-emulation@FreeBSD.ORG Sat Aug 26 02:07:20 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 8304F16A4DE; Sat, 26 Aug 2006 02:07:20 +0000 (UTC) (envelope-from admin@intron.ac) Received: from intron.ac (unknown [210.51.165.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 87FD243D45; Sat, 26 Aug 2006 02:07:19 +0000 (GMT) (envelope-from admin@intron.ac) Received: from localhost (localhost [127.0.0.1]) (uid 1003) by intron.ac with local; Sat, 26 Aug 2006 10:07:18 +0800 id 00108800.44EFACD6.0000C97F References: <20060825084755.GA93151@stud.fit.vutbr.cz> <200608251028.55915.jhb@freebsd.org> In-Reply-To: <200608251028.55915.jhb@freebsd.org> From: "Intron is my alias on the Internet" To: John Baldwin Date: Sat, 26 Aug 2006 10:07:17 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312"; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Cc: freebsd-emulation@freebsd.org, freebsd-current@freebsd.org Subject: Re: Linuxulator: Unbreak Mozilla, Firefox and RealPlayer 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, 26 Aug 2006 02:07:20 -0000 John Baldwin wrote: > On Friday 25 August 2006 04:47, Divacky Roman wrote: > > Umm, if you want to reparent a proc you should use the proc_reparent() > function instead of just hacking on p_pptr. You also need to hold > the proctree_lock when modifying p_pptr anyway. > > -- > John Baldwin > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" Thank you for your reminder. I have updated my patch: http://ftp.intron.ac/tmp/linux_machdep.c.1.53-2.diff ------------------------------------------------------------------------ From Beijing, China From owner-freebsd-emulation@FreeBSD.ORG Sat Aug 26 03:16: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 22F8516A4DA; Sat, 26 Aug 2006 03:16:26 +0000 (UTC) (envelope-from admin@intron.ac) Received: from intron.ac (unknown [210.51.165.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id D571243D46; Sat, 26 Aug 2006 03:16:24 +0000 (GMT) (envelope-from admin@intron.ac) Received: from localhost (localhost [127.0.0.1]) (uid 1003) by intron.ac with local; Sat, 26 Aug 2006 11:16:23 +0800 id 00108801.44EFBD07.0000CCD4 References: <20060825084755.GA93151@stud.fit.vutbr.cz> <20060825133034.jglu4yf9j400sosw@netchild.homeip.net> <20060825181029.GA15247@stud.fit.vutbr.cz> In-Reply-To: <20060825181029.GA15247@stud.fit.vutbr.cz> From: "Intron is my alias on the Internet" To: freebsd-emulation@freebsd.org, freebsd-current@freebsd.org Date: Sat, 26 Aug 2006 11:16:23 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312"; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Cc: Subject: Re: Problems of New Linuxulator I Have Known 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, 26 Aug 2006 03:16:26 -0000 Divacky Roman wrote: > On Fri, Aug 25, 2006 at 11:14:44PM +0800, Intron is my alias on the Internet wrote: >> 1. Many options of clone(2) are not correctly implemented, some of >> which may cause application crash when it wants to clone >> memory-independent process. > > like? CLONE_FS CLONE_STOPPED CLONE_VFORK CLONE_SYSVSEM Implementation of CLONE_PTRACE and CLONE_UNTRACED can be delayed, though they are useful, too. > >> 2. TLS (Thread Local Storage) support in clone(2), set_thread_area(2) >> and get_thread_area(2) doesn't conform to Linux 2.6.x, which can >> damage stack of Linux application using NPTL (Native POSIX Threads >> Library). >> >> Of course, to obtain the conformation, FreeBSD native GDT must be >> rearranged. But Linux NPTL is quite essential for modern Linux >> applications. > > what do you mean that doesnt conform? TLS in linux is implemented using > GDT. the only difference between fbsd and linux I can think of is that > linux supports 3 gdt entries while fbsd just one. > Linux hardcodes TLS entry number ranging from 6 to 8 for i386, or from 12 to 14 for amd64. But FreeBSD allows only entry number 3. I'm afraid Linux application checks entry number by macros GDT_ENTRY_TLS_MIN and GDT_ENTRY_TLS_MAX to judge whether the calling is successful. In GNU/Linux distribution, these two macros are defined in /usr/include/asm/segment.h, and in Linux kernel source the file is linux-2.6.17.11/include/asm-i386/segment.h or linux-2.6.17.11/include/asm-x86_64/segment.h >> 3. wakeup_one(9) instead of wakeup(9) should be used for futex(2) to >> wake up a single sleeping thread. > > yes... I agree > >> 4. Some options of clock_gettime(2) actually can be implemented, though >> FreeBSD native implementation is different from Linux's. > > I might look at it > >> 5. Code style problems: member naming of structure, macro naming, >> function naming, encapsulation for queue(3) and so on. > > in my code or in the imported code? Most of them are in NetBSD code. > >> In a word, may ORACLE 10g for Linux be able to run under FreeBSD soon. > > nice :) So far, Linuxulator is quite undependable. Kernel panic arises from time to time. In this case, shaky running of ORACLE 10g is meaningless. We have to continue our effects. Can you publicize your testing programs for those Linux system calls? ------------------------------------------------------------------------ From Beijing, China From owner-freebsd-emulation@FreeBSD.ORG Sat Aug 26 07:27:20 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 1AB5C16A4DD; Sat, 26 Aug 2006 07:27:20 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.10.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8BABE43D45; Sat, 26 Aug 2006 07:27:18 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.7/8.13.7) with ESMTP id k7Q7RCoL055366 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sat, 26 Aug 2006 09:27:12 +0200 (CEST) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.7/8.13.3/Submit) id k7Q7R9Eh055363; Sat, 26 Aug 2006 09:27:09 +0200 (CEST) Date: Sat, 26 Aug 2006 09:27:09 +0200 From: Divacky Roman To: Intron is my alias on the Internet Message-ID: <20060826072709.GA55105@stud.fit.vutbr.cz> References: <20060825084755.GA93151@stud.fit.vutbr.cz> <20060825133034.jglu4yf9j400sosw@netchild.homeip.net> <20060825181029.GA15247@stud.fit.vutbr.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i X-Scanned-By: MIMEDefang 2.54 on 147.229.10.14 Cc: freebsd-emulation@freebsd.org, freebsd-current@freebsd.org Subject: Re: Problems of New Linuxulator I Have Known 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, 26 Aug 2006 07:27:20 -0000 On Sat, Aug 26, 2006 at 11:16:23AM +0800, Intron is my alias on the Internet wrote: > Divacky Roman wrote: > > >On Fri, Aug 25, 2006 at 11:14:44PM +0800, Intron is my alias on the > >Internet wrote: > >>1. Many options of clone(2) are not correctly implemented, some of > >> which may cause application crash when it wants to clone > >> memory-independent process. > > > >like? > > CLONE_FS this one is only for kernel threads. I doubt we will ever support linux kernel threads :) > CLONE_STOPPED this should be very easy to add, I didnt see any use of that so I didnt implement that so far, but it should be very easy > CLONE_VFORK I tend to believe this is used only for vfork() implementation but if not this is also quite trivial to implement (take a look at my linux_vfork() implementation) > CLONE_SYSVSEM this might be a bit trickier because I know nothing about sysvsem, but judging from the code its not a big thing > Implementation of CLONE_PTRACE and CLONE_UNTRACED can be delayed, > though they are useful, too. I am getting panics when trying to use linux-strace, this is worth investigating > > > >>2. TLS (Thread Local Storage) support in clone(2), set_thread_area(2) > >> and get_thread_area(2) doesn't conform to Linux 2.6.x, which can > >> damage stack of Linux application using NPTL (Native POSIX Threads > >> Library). > >> > >> Of course, to obtain the conformation, FreeBSD native GDT must be > >> rearranged. But Linux NPTL is quite essential for modern Linux > >> applications. > > > >what do you mean that doesnt conform? TLS in linux is implemented using > >GDT. the only difference between fbsd and linux I can think of is that > >linux supports 3 gdt entries while fbsd just one. > > > > Linux hardcodes TLS entry number ranging from 6 to 8 for i386, or from > 12 to 14 for amd64. But FreeBSD allows only entry number 3. I'm afraid > Linux application checks entry number by macros GDT_ENTRY_TLS_MIN and > GDT_ENTRY_TLS_MAX to judge whether the calling is successful. > In GNU/Linux distribution, these two macros are defined in > /usr/include/asm/segment.h, and in Linux kernel source the file is > linux-2.6.17.11/include/asm-i386/segment.h or > linux-2.6.17.11/include/asm-x86_64/segment.h I've never seen an app that would check this. Also this thing should be setup by threading library and we can easily check it there. I dont think this is a real problem. The glibc doesnt check this (it just uses whatever we supply it) and there should be no other user. > >>3. wakeup_one(9) instead of wakeup(9) should be used for futex(2) to > >> wake up a single sleeping thread. > > > >yes... I agree I plan to do this once everything else is resolved because I really want to shrink the gap between my p4/uncommited linuxolator and what is in src. > >>5. Code style problems: member naming of structure, macro naming, > >> function naming, encapsulation for queue(3) and so on. > > > >in my code or in the imported code? > > Most of them are in NetBSD code. this is imported code and we want it to stay the same to easy possible future imports. if you found something bad in my code pls tell me (I'd prefer icq) > So far, Linuxulator is quite undependable. Kernel panic arises from time > to time. In this case, shaky running of ORACLE 10g is meaningless. > We have to continue our effects. pls, can you share the panics with me? > Can you publicize your testing programs for those Linux system calls? I am sure this is of your interest: www.stud.fit.vutbr.cz/~xdivac02/futex.c we dont pass this even with your patches thnx for your work! roman From owner-freebsd-emulation@FreeBSD.ORG Sat Aug 26 08:04:17 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 D53AE16A4DA; Sat, 26 Aug 2006 08:04:17 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.10.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0020B43D46; Sat, 26 Aug 2006 08:04:16 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.7/8.13.7) with ESMTP id k7Q84BTg056787 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sat, 26 Aug 2006 10:04:11 +0200 (CEST) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.7/8.13.3/Submit) id k7Q84BpL056786; Sat, 26 Aug 2006 10:04:11 +0200 (CEST) Date: Sat, 26 Aug 2006 10:04:11 +0200 From: Divacky Roman To: Intron is my alias on the Internet Message-ID: <20060826080410.GA56721@stud.fit.vutbr.cz> References: <20060825084755.GA93151@stud.fit.vutbr.cz> <200608251028.55915.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i X-Scanned-By: MIMEDefang 2.54 on 147.229.10.14 Cc: freebsd-emulation@freebsd.org, freebsd-current@freebsd.org, John Baldwin Subject: Re: Linuxulator: Unbreak Mozilla, Firefox and RealPlayer 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, 26 Aug 2006 08:04:18 -0000 On Sat, Aug 26, 2006 at 10:07:17AM +0800, Intron is my alias on the Internet wrote: > John Baldwin wrote: > > >On Friday 25 August 2006 04:47, Divacky Roman wrote: > > > >Umm, if you want to reparent a proc you should use the proc_reparent() > >function instead of just hacking on p_pptr. You also need to hold > >the proctree_lock when modifying p_pptr anyway. > > > >-- > >John Baldwin > >_______________________________________________ > >freebsd-current@freebsd.org mailing list > >http://lists.freebsd.org/mailman/listinfo/freebsd-current > >To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > > Thank you for your reminder. I have updated my patch: > > http://ftp.intron.ac/tmp/linux_machdep.c.1.53-2.diff this is wrong 1) you dont PROC_LOCK(p2) 2) you have to lock proctree_lock instead of allproc_lock are you satisfied with this patch? www.stud.fit.vutbr.cz/~xdivac02/linux-fix.patch From owner-freebsd-emulation@FreeBSD.ORG Sat Aug 26 08:37:21 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 9732216A4DA; Sat, 26 Aug 2006 08:37:21 +0000 (UTC) (envelope-from admin@intron.ac) Received: from intron.ac (unknown [210.51.165.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F66C43D45; Sat, 26 Aug 2006 08:37:20 +0000 (GMT) (envelope-from admin@intron.ac) Received: from localhost (localhost [127.0.0.1]) (uid 1003) by intron.ac with local; Sat, 26 Aug 2006 16:37:19 +0800 id 00108801.44F0083F.0000DC13 References: <20060825084755.GA93151@stud.fit.vutbr.cz> <200608251028.55915.jhb@freebsd.org> <20060826080410.GA56721@stud.fit.vutbr.cz> In-Reply-To: <20060826080410.GA56721@stud.fit.vutbr.cz> From: "Intron is my alias on the Internet" To: freebsd-emulation@freebsd.org, freebsd-current@freebsd.org Date: Sat, 26 Aug 2006 16:37:19 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312"; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Cc: Subject: Re: Linuxulator: Unbreak Mozilla, Firefox and RealPlayer 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, 26 Aug 2006 08:37:21 -0000 Divacky Roman wrote: > On Sat, Aug 26, 2006 at 10:07:17AM +0800, Intron is my alias on the Internet wrote: >> John Baldwin wrote: >> >> >On Friday 25 August 2006 04:47, Divacky Roman wrote: >> > >> >Umm, if you want to reparent a proc you should use the proc_reparent() >> >function instead of just hacking on p_pptr. You also need to hold >> >the proctree_lock when modifying p_pptr anyway. >> > >> >-- >> >John Baldwin >> >_______________________________________________ >> >freebsd-current@freebsd.org mailing list >> >http://lists.freebsd.org/mailman/listinfo/freebsd-current >> >To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >> >> Thank you for your reminder. I have updated my patch: >> >> http://ftp.intron.ac/tmp/linux_machdep.c.1.53-2.diff > > this is wrong > > 1) you dont PROC_LOCK(p2) > > 2) you have to lock proctree_lock instead of allproc_lock > > are you satisfied with this patch? > > www.stud.fit.vutbr.cz/~xdivac02/linux-fix.patch This problem has confused me for a long time. The lock allproc_lock is more conservative than either p2->p_mtx or proctree_lock. It is the real protector of process tree. Actually, p2 should be protected from its birth to leaving the function linux_clone(). You may commit your patch to test. ------------------------------------------------------------------------ From Beijing, China From owner-freebsd-emulation@FreeBSD.ORG Sat Aug 26 10:32:43 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 16B7216A4DA; Sat, 26 Aug 2006 10:32:43 +0000 (UTC) (envelope-from admin@intron.ac) Received: from intron.ac (unknown [210.51.165.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67642442D7; Sat, 26 Aug 2006 10:06:49 +0000 (GMT) (envelope-from admin@intron.ac) Received: from localhost (localhost [127.0.0.1]) (uid 1003) by intron.ac with local; Sat, 26 Aug 2006 18:06:47 +0800 id 0010880D.44F01D37.0000E216 References: <20060825084755.GA93151@stud.fit.vutbr.cz> <200608251028.55915.jhb@freebsd.org> <20060826072759.GB55105@stud.fit.vutbr.cz> In-Reply-To: <20060826072759.GB55105@stud.fit.vutbr.cz> From: "Intron is my alias on the Internet" To: freebsd-emulation@freebsd.org, freebsd-current@freebsd.org Date: Sat, 26 Aug 2006 18:06:47 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312"; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Cc: Subject: Re: Linuxulator: Unbreak Mozilla, Firefox and RealPlayer 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, 26 Aug 2006 10:32:43 -0000 Divacky Roman wrote: > On Sat, Aug 26, 2006 at 10:07:17AM +0800, Intron is my alias on the Internet wrote: >> John Baldwin wrote: >> >> >On Friday 25 August 2006 04:47, Divacky Roman wrote: >> > >> >Umm, if you want to reparent a proc you should use the proc_reparent() >> >function instead of just hacking on p_pptr. You also need to hold >> >the proctree_lock when modifying p_pptr anyway. >> > >> >-- >> >John Baldwin >> >_______________________________________________ >> >freebsd-current@freebsd.org mailing list >> >http://lists.freebsd.org/mailman/listinfo/freebsd-current >> >To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >> >> Thank you for your reminder. I have updated my patch: >> >> http://ftp.intron.ac/tmp/linux_machdep.c.1.53-2.diff > > pls can you explain me this change: > - /* this is taken from i386 version of cpu_set_user_tls() */ > - critical_enter(); > - /* set %gs */ > + /* Set %gs of child */ > td2->td_pcb->pcb_gsd = sd; > - PCPU_GET(fsgs_gdt)[1] = sd; > - load_gs(GSEL(GUGS_SEL, SEL_UPL)); > - critical_exit(); > + td2->td_pcb->pcb_gs = GSEL(GUGS_SEL, SEL_UPL); > > > thnx! > > roman > The new descriptor of new TLS should be handed to new thread, and it shouldn't override current thread's TLS descriptor. When you commit the patch, please remove the line: td2->td_pcb->pcb_gs = GSEL(GUGS_SEL, SEL_UPL); This kernel directive ensures %gs pointing to TLS in new thread. But in fact, genuine Linux kernel doesn't meddle register value of userland thread/process. Let userland GNU LIBC be. ------------------------------------------------------------------------ From Beijing, China