Date: Mon, 08 Jan 2007 10:28:29 -0800 From: Doug Barton <dougb@FreeBSD.org> To: Divacky Roman <xdivac02@stud.fit.vutbr.cz> Cc: Boris Samorodov <bsam@ipt.ru>, current@freebsd.org Subject: Re: broken linuxulator in -current as of Jan 8 17:51:45 CET Message-ID: <45A28D4D.9030507@FreeBSD.org> In-Reply-To: <20070108180014.GA4540@stud.fit.vutbr.cz> References: <20070108165157.GA94941@stud.fit.vutbr.cz> <57417212@srv.sem.ipt.ru> <20070108180014.GA4540@stud.fit.vutbr.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45A28D4D.9030507>
