Subject: Re: is building suse91 on a non-COMPAT_LINUX kernel supposed to die gracefully?
To: Hisashi T Fujinaka <htodd@twofifty.com>
From: Christos Zoulas <christos@zoulas.com>
List: tech-pkg
Date: 07/15/2005 08:59:59
On Jul 14, 9:46pm, htodd@twofifty.com (Hisashi T Fujinaka) wrote:
-- Subject: Re: is building suse91 on a non-COMPAT_LINUX kernel supposed to d
| I don't know if this is correct, but:
|
|
| 2557 ktruss emul(netbsd)
| 2557 ktruss fcntl(0x4, 0x3, 0) = 1
| 2557 ktruss fcntl(0x4, 0x4, 0x1) = 0
| 2557 ldconfig emul(netbsd)
| 2557 ldconfig execve("/usr/pkg/emul/linux/sbin/ldconfig", 0xbfbfe754, 0xbfbfe764) JUSTRETURN
| 2557 ldconfig settimeofday(0xbfbfe540, 0) Err#1 EPERM
| 2557 ldconfig open("ƒøÿ‰Ãt!¸@", 0x80ae0f1, 0) Err#2 ENOENT
| 2557 ldconfig read(0x804c99c, 0x2, 0xbfbfe6d0) Err#9 EBADF
| 2557 ldconfig close(0x2) = 0
| 2557 ldconfig write(0xbfbfe6d0, 0, 0) Err#9 EBADF
| <the last line is repeated over 1,500,000 times>
This shows that we actually try to run the linux binary as a NetBSD one.
The netbsd probe function is supposed to stop that. Can you add some
debugging in kern_exec.c and see why it succeeds?
christos