Subject: Re: compat_linux on amd64 report
To: Wouter Schoot <wouter@schoot.org>
From: Nicolas Joly <njoly@pasteur.fr>
List: port-amd64
Date: 12/22/2005 16:26:15
On Thu, Dec 22, 2005 at 02:37:18PM +0100, Wouter Schoot wrote:
> Wouter Schoot wrote:
> > What linux_compat packages do I need to get it working?
> 
> /usr/pkgsrc/emulators/suse91_base seems to work, but when I try to start
> skype for linux, my machine reboots. I learned that 32 bits linux apps are
> not supported yet, but a warning instead of a reboot would be better :)

I'm getting a kernel panic while tring to run a 32bit linux app with a
GENERIC.MP + COMPAT_LINUX kernel ...

Wow ! Unsupported 32bit binaries should not crash the kernel :-(

njoly@lanfeust [~]> file ls
ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.0.30, dynamically linked (uses shared libs), for GNU/Linux 2.0.30, stripped  
njoly@lanfeust [~]> ./ls
[...PANIC...]

kernel: page fault trap, code=0
Stopped in pid 363.1 (zsh) at   netbsd:exec_read_from+0x36:     movq    0(%rax),
%rax
db{0}> bt
exec_read_from() at netbsd:exec_read_from+0x36
netbsd_elf32_signature() at netbsd:netbsd_elf32_signature+0x61
netbsd32_elf32_probe() at netbsd:netbsd32_elf32_probe+0x34
exec_elf32_makecmds() at netbsd:exec_elf32_makecmds+0x36f
check_exec() at netbsd:check_exec+0x1fd
execve1() at netbsd:execve1+0x164
syscall_plain() at netbsd:syscall_plain+0xfb
--- syscall (number 5313392) ---
0x6c2f2e:

-- 
Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.