Subject: Linux emulation problems
To: None <netbsd-help@netbsd.org, netbsd-users@netbsd.org>
From: Brian de Alwis <bsd@cs.ubc.ca>
List: netbsd-users
Date: 05/31/2000 22:48:17
I've just installed a new system with 1.4.2, and installed
a freshly compiled kernel (a GENERIC variant, stripping out
some of the unneeded pseudo-devices). COMPAT_LINUX is there
as is EXEC_ELF32. I've installed all the /usr/pkgsrc/emulators/suse_*
packages.
But I'm having two problems which seems to be related to
unimplemented system calls. I can't even run the Linux bash
(/emul/linux/bin/bash), which it smells really fishy! It dumps core
due to a `Bad system call':
fifty:/emul/linux/bin[21](2)$ ../usr/bin/lddlibc5 ./bash
libncurses.so.4 => /lib/libncurses.so.4 (0x480d4000)
libdl.so.2 => /lib/libdl.so.2 (0x4811d000)
libc.so.6 => /lib/libc.so.6 (0x48120000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x480b9000)
fifty:/emul/linux/bin[22](2)$ ./bash
Bad system call
fifty:/emul/linux/bin[23](2)$
Here's the end of the ktrace of the execution:
9805 bash RET getuid 1859/0x743
9805 bash CALL #164 (unimplemented setresuid)
9805 bash PSIG SIGSYS SIG_DFL
9805 bash NAMI "bash.core"
Now I *know* this works: I've a nearly identical system at home,
which runs this with no problem.
Since one of my goals for this system is to run VisualAge for Java
for Linux, I gave it a try. Running it produces a bunch of warnings:
Warning: NULL ArgVal in XtGetValues
Warning: NULL ArgVal in XtGetValues
Warning: NULL ArgVal in XtGetValues
Warning: NULL ArgVal in XtGetValues
Warning: NULL ArgVal in XtGetValues
Warning: NULL ArgVal in XtGetValues
Warning: NULL ArgVal in XtGetValues
Warning: NULL ArgVal in XtGetValues
Warning: NULL ArgVal in XtGetValues
Warning: NULL ArgVal in XtGetValues
Warning: NULL ArgVal in XtGetValues
Warning: NULL ArgVal in XtGetValues
X Error: BadColor (invalid Colormap parameter)
and then a core dump. A kdump shows a similar happening:
1078 ide CALL read(0x7,0xbfbfcdd4,0x20)
1078 ide RET read 32/0x20
1078 ide CALL pipe(0xbfbfcf6c)
1078 ide RET pipe 0
1078 ide CALL #120 (unimplemented clone)
1078 ide PSIG SIGSYS SIG_DFL
1078 ide NAMI "ide.core"
Am I missing something? In the meantime I'll see if these on my
working home. Should I not be using the suse_linux-6.3 package?
(Some of the FAQs and compat_linux(8) page imply that 6.1 is
better).
Help?
--
"Maybe this world is another planet's Hell." - Aldous Huxley