Subject: Re: Re: Re: 'Abort' when using compat_netbsd32
To: Martin Husemann <martin@duskware.de>
From: Joel CARNAT <joel@carnat.net>
List: port-amd64
Date: 08/01/2005 23:02:10
--/NkBOFFp2J2Af1nK
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Mon, Aug 01 2005 - 22:36, Martin Husemann wrote:
> On Mon, Aug 01, 2005 at 10:09:47PM +0200, Joel CARNAT wrote:
> > even the `ls` commad from base.tgz fails running.
> > isn't there anything to mount, like linuxproc for compat_linux that I
> > may be missing ?
>=20
> Try "chroot /emul/netbsd32" and see if that works better (for a test).
>=20
nope :(
$ pwd
/home/ptijo
$ sudo chroot /emul/netbsd32
Abort=20
$ sudo chroot /usr/pkg/emul/netbsd32
Abort=20
I have tried to extract a full base.tgz+etc.tgz in /emul/netbsd32
(removing the link to /usr/pkg/emul/netbsd32) but it's not better.
I'm not sure a ktrace would be usefull, but in case :
$ sudo ktrace chroot /emul/netbsd32
Abort=20
$ kdump
21072 ld.elf EMUL "netbsd"
21072 ld.elf CALL execve(0x7f7fffffe770,0x7f7fffffec48,0x7f7fffffec60)
21072 ld.elf NAMI "/home/ptijo/bin/chroot"
21072 ld.elf RET execve -1 errno 2 No such file or directory
21072 ld.elf CALL execve(0x7f7fffffe770,0x7f7fffffec48,0x7f7fffffec60)
21072 ld.elf NAMI "/bin/chroot"
21072 ld.elf RET execve -1 errno 2 No such file or directory
21072 ld.elf CALL execve(0x7f7fffffe770,0x7f7fffffec48,0x7f7fffffec60)
21072 ld.elf NAMI "/sbin/chroot"
21072 ld.elf RET execve -1 errno 2 No such file or directory
21072 ld.elf CALL execve(0x7f7fffffe770,0x7f7fffffec48,0x7f7fffffec60)
21072 ld.elf NAMI "/usr/bin/chroot"
21072 ld.elf RET execve -1 errno 2 No such file or directory
21072 ld.elf CALL execve(0x7f7fffffe770,0x7f7fffffec48,0x7f7fffffec60)
21072 ld.elf NAMI "/usr/sbin/chroot"
21072 ld.elf NAMI "/usr/libexec/ld.elf_so"
21072 d.elf_ EMUL "netbsd"
21072 d.elf_ RET execve JUSTRETURN
21072 d.elf_ CALL mmap(0,0x8000,3,0x1002,0xffffffff,0,0)
21072 d.elf_ RET mmap 8595181568/0x200501000
21072 d.elf_ CALL open(0x200609bb4,0,0x200609bb4)
21072 d.elf_ NAMI "/etc/ld.so.conf"
21072 d.elf_ RET open -1 errno 2 No such file or directory
21072 d.elf_ CALL open(0x2005020a0,0,0x200503000)
21072 d.elf_ NAMI "/usr/lib/libc.so.12"
21072 d.elf_ RET open 3
21072 d.elf_ CALL __fstat13(3,0x7f7fffffe7d0)
21072 d.elf_ RET __fstat13 0
21072 d.elf_ CALL mmap(0,0x1000,1,1,3,0x7f7f00000000,0)
21072 d.elf_ RET mmap 8595214336/0x200509000
21072 d.elf_ CALL munmap(0x200509000,0x1000)
21072 d.elf_ RET munmap 0
21072 d.elf_ CALL mmap(0,0x1e8000,5,0x14000002,3,0x7f7f00000000,0)
21072 d.elf_ RET mmap 8598323200/0x200800000
21072 d.elf_ CALL mmap(0x2009bb000,0x1c000,3,0x12,3,0x7f7f00000000,0xbb0=
00)
21072 d.elf_ RET mmap 8600137728/0x2009bb000
21072 d.elf_ CALL mmap(0x2009d7000,0x11000,3,0x1012,0xffffffff,0x7f7f000=
00000,0)
21072 d.elf_ RET mmap 8600252416/0x2009d7000
21072 d.elf_ CALL mprotect(0x2008bc000,0xff000,0)
21072 d.elf_ RET mprotect 0
21072 d.elf_ CALL close(3)
21072 d.elf_ RET close 0
21072 d.elf_ CALL mprotect(0x200800000,0xbc000,7)
21072 d.elf_ RET mprotect 0
21072 d.elf_ CALL mprotect(0x200800000,0xbc000,5)
21072 d.elf_ RET mprotect 0
21072 d.elf_ CALL chdir(0x7f7fffffedcf)
21072 d.elf_ NAMI "/emul/netbsd32"
21072 d.elf_ RET chdir 0
21072 d.elf_ CALL chroot(0x40131d)
21072 d.elf_ NAMI "."
21072 d.elf_ RET chroot 0
21072 d.elf_ CALL execve(0x7f7fffffeeb3,0x7f7fffffea80,0x7f7fffffec68)
21072 d.elf_ NAMI "/bin/ksh"
--/NkBOFFp2J2Af1nK
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (NetBSD)
iD8DBQFC7o3S0/VH7L7F7Y4RAtp3AJ91rZ+uVOxS95Rvir8UBY3YUHG5mgCdHMF/
MMaQ69ZYVZKU7AHpOEWYey4=
=0X6I
-----END PGP SIGNATURE-----
--/NkBOFFp2J2Af1nK--