Subject: Re: execve call from Linux emul to NetBSD native problem ?
To: None <tech-kern@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-kern
Date: 11/24/2003 13:27:22
In article <1069676526.3fc1f7ee92b47@imp3-a.free.fr>, <10.50@free.fr> wrote:
>Hello,
>
>I am a bit puzzled.
>Since I have replaced Opera 7.11 by 7.22, running under Linux
>emulation, I cannot run any plain application from the browser. I just
>get a message : Cannot open "", each time Opera forks. Here is the
>ktrace -i output :
>
> 16616 opera NAMI "/emul/linux/usr/pkg/bin/acroread5"
> 16616 opera NAMI "/emul/linux"
> 16616 opera NAMI "/emul/linux/usr/pkg/bin/acroread5"
> 16616 opera NAMI "/bin/sh"
> 16616 opera NAMI "/libexec/ld.elf_so"
> 16616 sh EMUL "netbsd"
> 16616 sh RET execve JUSTRETURN
> 16616 sh CALL mmap(0,0x8000,0x3,0x1002,0xffffffff,0,0,0)
> 16616 sh RET mmap 1208406016/0x4806d000
> 16616 sh CALL open(0x480697e8,0,0x3)
> 16616 sh NAMI "/etc/ld.so.conf"
> 16616 sh RET open 3
> 16616 sh CALL __fstat13(0x3,0xbfbff33c)
> 16616 sh RET __fstat13 0
> 16616 sh CALL mmap(0,0x6f,0x3,0x2,0x3,0,0,0)
> 16616 sh RET mmap 1208438784/0x48075000
> 16616 sh CALL close(0x3)
> 16616 sh RET close 0
> 16616 sh CALL munmap(0x48075000,0x6f)
> 16616 sh RET munmap 0
> 16616 sh CALL open(0x48071020,0,0x8)
> 16616 sh RET open -1 errno 2 No such file or directory
> 16616 sh CALL write(0x2,0xbfbff27c,0xe)
> 16616 sh GIO fd 2 wrote 14 bytes
> "Cannot open \"\""
> 16616 sh RET write 14/0xe
>
>It seems that ld_elf.so tries to read something (but what ?) that has
>a wrong name, does not find it, and then gives up.
Yeah, but why isn't the open followed by NAMI? It seems it does not even
bother to look it up...
christos