Hello
OpenBSD 4.0, i386, trying to copy from a 2007 Gentoo Linux.
I made sure there is kern.emul.linux=1 in /etc/sysctl.conf and the machine is
rebooted. Then I installed the Redhat package. Then I wanted to make the "yes"
program work. I copied all the libraries from the Linux to /emul/linux/...:
[EMAIL PROTECTED] ~ $ ldd `which yes`
linux-gate.so.1 => (0xffffe000)
libc.so.6 => /lib/libc.so.6 (0xb7e37000)
/lib/ld-linux.so.2 (0xb7f65000)
There is no file named *linux-gate* so I didn't copy this one. ld-linux.so.2 is
copied, it's symlink dereference too, has the same length. The same holds for
the libc. Then I made sure ld-2.4.so, ld.so.cache and ld.so.conf
are copied and have the same length.
Now when I run ./yes in my home directory under the user clock, I get
Bad system call (core dumped). I tried under root, the same.
#0 0x4ca55282 in ?? ()
No symbol table info available.
#1 0x00000208 in ?? ()
No symbol table info available.
#2 0x00000001 in ?? ()
No symbol table info available.
#3 0x4ae90fdc in ?? ()
No symbol table info available.
#4 0x4ae963e0 in ?? ()
No symbol table info available.
#5 0xffffffff in ?? ()
No symbol table info available.
#6 0x51a7bab0 in ?? ()
No symbol table info available.
#7 0x000fffff in ?? ()
No symbol table info available.
#8 0x00000051 in ?? ()
No symbol table info available.
#9 0x4ca6cfbc in ?? ()
No symbol table info available.
#10 0x4ca6d6c0 in ?? ()
No symbol table info available.
#11 0xcf7ca108 in ?? ()
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#12 0xcf7ca300 in ?? ()
No symbol table info available.
#13 0x4ca56872 in ?? ()
No symbol table info available.
#14 0x00000000 in ?? ()
No symbol table info available.
[EMAIL PROTECTED]:~$ kdump
23719 ktrace RET ktrace 0
23719 ktrace CALL execve(0xcf7d33a7,0xcf7d3234,0xcf7d323c)
23719 ktrace NAMI "./ktrace.out"
23719 ktrace RET execve -1 errno 13 Permission denied
23719 ktrace CALL mprotect(0x89e16000,0x1000,0x3)
23719 ktrace RET mprotect 0
23719 ktrace CALL mprotect(0x89e16000,0x1000,0x1)
23719 ktrace RET mprotect 0
23719 ktrace CALL write(0x2,0xcf7d2850,0x8)
23719 ktrace GIO fd 2 wrote 8 bytes
"ktrace: "
23719 ktrace RET write 8
23719 ktrace CALL write(0x2,0xcf7d2870,0x1d)
23719 ktrace GIO fd 2 wrote 29 bytes
"exec of './ktrace.out' failed"
23719 ktrace RET write 29/0x1d
23719 ktrace CALL write(0x2,0x3c0021b8,0x2)
23719 ktrace GIO fd 2 wrote 2 bytes
": "
23719 ktrace RET write 2
23719 ktrace CALL issetugid()
23719 ktrace RET issetugid 0
23719 ktrace CALL open(0xcf7d2c20,0,0)
23719 ktrace NAMI "/usr/share/nls/C/libc.cat"
23719 ktrace RET open 3
23719 ktrace CALL fstat(0x3,0xcf7d2b80)
23719 ktrace RET fstat 0
23719 ktrace CALL mmap(0,0xe5a,0x1,0x1,0x3,0,0,0)
23719 ktrace RET mmap 2118168576/0x7e40b000
23719 ktrace CALL close(0x3)
23719 ktrace RET close 0
23719 ktrace CALL readlink(0x3c0021e4,0xcf7d2ac0,0x3f)
23719 ktrace NAMI "/etc/malloc.conf"
23719 ktrace RET readlink -1 errno 2 No such file or directory
23719 ktrace CALL issetugid()
23719 ktrace RET issetugid 0
23719 ktrace CALL mmap(0,0x1000,0x3,0x1002,0xffffffff,0,0,0)
23719 ktrace RET mmap -2083209216/0x83d4c000
23719 ktrace CALL mmap(0,0x1000,0x3,0x1002,0xffffffff,0,0,0)
23719 ktrace RET mmap -2114424832/0x81f87000
23719 ktrace CALL mmap(0,0x1000,0x3,0x1002,0xffffffff,0,0,0)
23719 ktrace RET mmap -2057961472/0x85560000
23719 ktrace CALL mmap(0,0x1000,0x3,0x1002,0xffffffff,0,0,0)
23719 ktrace RET mmap -1972555776/0x8a6d3000
23719 ktrace CALL mmap(0,0x1000,0x3,0x1002,0xffffffff,0,0,0)
23719 ktrace RET mmap -1949962240/0x8bc5f000
23719 ktrace CALL munmap(0x7e40b000,0xe5a)
23719 ktrace RET munmap 0
23719 ktrace CALL write(0x2,0xcf7d2850,0x12)
23719 ktrace GIO fd 2 wrote 18 bytes
"Permission denied
"
23719 ktrace RET write 18/0x12
23719 ktrace CALL munmap(0x89e16000,0x1000)
23719 ktrace RET munmap 0
23719 ktrace CALL exit(0x1)
I checked /etc/malloc.conf on the Linux system but it doesn't exist.
Is there some extra command I have to type so that the Linux emulation
gets enabled completely?
CL<