From owner-freebsd-current@FreeBSD.ORG Mon Jan 8 18:55:12 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1F57216A407 for ; Mon, 8 Jan 2007 18:55:12 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with SMTP id BCAC313C457 for ; Mon, 8 Jan 2007 18:55:11 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 25702 invoked by uid 399); 8 Jan 2007 18:28:31 -0000 Received: from localhost (HELO ?192.168.0.5?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 8 Jan 2007 18:28:31 -0000 X-Originating-IP: 127.0.0.1 Message-ID: <45A28D4D.9030507@FreeBSD.org> Date: Mon, 08 Jan 2007 10:28:29 -0800 From: Doug Barton Organization: http://www.freebsd.org/ User-Agent: Thunderbird 1.5.0.8 (X11/20061215) MIME-Version: 1.0 To: Divacky Roman References: <20070108165157.GA94941@stud.fit.vutbr.cz> <57417212@srv.sem.ipt.ru> <20070108180014.GA4540@stud.fit.vutbr.cz> In-Reply-To: <20070108180014.GA4540@stud.fit.vutbr.cz> X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Boris Samorodov , current@freebsd.org Subject: Re: broken linuxulator in -current as of Jan 8 17:51:45 CET X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jan 2007 18:55:12 -0000 Divacky Roman wrote: > On Mon, Jan 08, 2007 at 08:32:03PM +0300, Boris Samorodov wrote: >> On Mon, 8 Jan 2007 17:51:57 +0100 Divacky Roman wrote: >> >>> can someone confirm that running for example /bin/ls >>> in linux compat doesnt work. here it goes like: >>> witten ~# /compat/linux/bin/ls >>> /compat/linux/bin/ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF file OS ABI invalid >> I don't have -current ATM, but if you won't find an error at your >> config, I'll definitely do. > > I didnt change anything... it just stopped working :( I am doing > non-fbsd work these days so I really cannot imagine what changed > >>> I cannot see what can be wrong. I tried to backout all changes that >>> alexander commited yesterday but it didnt help. is it regression >>> local to my machine or is the problem -current wide? >> /usr/ports/UPDATING (20060616: AFFECTS users of emulation/linux_base-*) >> has some advices how to find and diagnose the culprit. The most >> typical case here is changing the standard way of library searching >> (i.e. LD_* paths, etc.). > > I dont have anything like that set... it looks like a bug in kernel/linux_base > because the trace looks like: > > Jan 8 18:57:59 witten kernel: linux(1582): open(/lib/tls/librt.so.1, 0x0, 0x0) > Jan 8 18:57:59 witten kernel: linux(1582): open returns error 2 > Jan 8 18:57:59 witten kernel: linux(1582): open(/compat/linux/lib/librt.so.1, 0x0, 0x0) > Jan 8 18:57:59 witten kernel: linux(1582): open returns error 0 > Jan 8 18:57:59 witten kernel: linux(1582): open(/usr/lib/tls/librt.so.1, 0x0, 0x0) > Jan 8 18:57:59 witten kernel: linux(1582): open returns error 2 > Jan 8 18:57:59 witten kernel: linux(1582): open(/usr/lib/librt.so.1, 0x0, 0x0) > Jan 8 18:57:59 witten kernel: linux(1582): open returns error 0 > Jan 8 18:57:59 witten kernel: linux(1582): exit_group(127) > > ie. it opens the right library but IGNORES it and the iterates through the rest > and then stops on fbsd library saying that its not compatible... > > from within jail it works (because it must stop at the correct library). I tried > to reinstall fc4 base but it didnt help. I see this behaviour on both fc4 and gentoo > base. I even tried to cvsup to yesterdays sources (when it worked for me) but it > didnt help either.. I am really hopeless ;( Don't give up hope Roman. :) If it's of any use, I updated yesterday, and I get the following behavior. As a regular user, or as root, and without chroot, I get: /compat/linux/bin/ls /compat/linux/bin/ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF file OS ABI invalid As root, with chroot, I get: chroot /compat/linux /bin/ls bin etc lib media mnt opt proc sbin selinux srv sys usr var hth, Doug -- This .signature sanitized for your protection