Hi
I tried executing it directly, but it doesn't work. My kernel
should have
Linux compat. compiled in. Can I check that at runtime, to be 100%?
Hm, "sysctl emul.linux"? I believe that shouldn't give anything unless
you have it in your kernel.
Btw, I paste here the last part of "ktrace -i opera" as interpreted by
kdump. I cannot attach the file because thunderbird and firefox (both
gtk apps) will crassh when they pop-up the file browser... but that is
another issue!
3698 1 sh GIO fd 3 read 166 bytes
"# $NetBSD: dot.shrc,v 1.3 2007/11/24 11:14:42 pavel Exp
$\n\nif [ -f /etc/shrc ]; then\n . /etc/shrc\nfi\n\ncase \"$-\" in *i*)\
\n # interactive mode settings go here\n ;;\nesac\n"
3698 1 sh RET read 166/0xa6
3698 1 sh CALL __stat50(0x8065f1c,0xbfbfe5bc)
3698 1 sh NAMI "/etc/shrc"
3698 1 sh RET __stat50 0
3698 1 sh CALL open(0x8065efc,0,0xbfbfe648)
3698 1 sh NAMI "/etc/shrc"
3698 1 sh RET open 7
3698 1 sh CALL lseek(7,0,0,0,0)
3698 1 sh RET lseek 0
3698 1 sh CALL read(7,0xbfbfe648,4)
3698 1 sh GIO fd 7 read 4 bytes
"ll()"
3698 1 sh RET read 4
3698 1 sh CALL lseek(7,0,0,0,0)
3698 1 sh RET lseek 0
3698 1 sh CALL fcntl(7,0,0xa)
3698 1 sh RET fcntl 11/0xb
3698 1 sh CALL close(7)
3698 1 sh RET close 0
3698 1 sh CALL fcntl(0xb,2,1)
3698 1 sh RET fcntl 0
3698 1 sh CALL read(0xb,0xbb906800,0x3f8)
3698 1 sh GIO fd 11 read 314 bytes
"ll(){ ls -l ${1+\"$@\"}; }\n\ncase \"$-\" in *i*)\n if
/bin/test -z \"${HOST}\"; then\n HOST=`hostname`\n
fi\n\
PS1=\"${HOST%%.*}$PS1\"\n set -o emacs\n # This
file is used by shells that might not support\n # set -o tabcomplete, \
so check before trying to use it.\n ( set -o tabcomplete
2>/dev/null ) && set -o tabcomplete\n ;;\nesac\n"
3698 1 sh RET read 314/0x13a
3698 1 sh CALL read(0xb,0xbb906800,0x3f8)
3698 1 sh GIO fd 11 read 0 bytes
""
3698 1 sh RET read 0
3698 1 sh CALL close(0xb)
3698 1 sh RET close 0
3698 1 sh CALL read(3,0xbb906400,0x3f8)
3698 1 sh GIO fd 3 read 0 bytes
""
3698 1 sh RET read 0
3698 1 sh CALL close(3)
3698 1 sh RET close 0
3698 1 sh CALL
__sigaction_sigtramp(SIGINT,0,0xbfbfe7d4,0,0)
3698 1 sh RET __sigaction_sigtramp 0
3698 1 sh CALL
__sigaction_sigtramp(SIGINT,0xbfbfe788,0xbfbfe770,0xbbb240a0,2)
3698 1 sh RET __sigaction_sigtramp 0
3698 1 sh CALL
__sigaction_sigtramp(SIGINT,0,0xbfbfe784,0,0)
3698 1 sh RET __sigaction_sigtramp 0
3698 1 sh CALL
__sigaction_sigtramp(SIGINT,0xbfbfe784,0,0xbbb240a0,2)
3698 1 sh RET __sigaction_sigtramp 0
3698 1 sh CALL __sigprocmask14(2,0xbfbfe7ec,0)
3698 1 sh RET __sigprocmask14 0
3698 1 sh CALL
__sigaction_sigtramp(SIGQUIT,0,0xbfbfe7d4,0,0)
3698 1 sh RET __sigaction_sigtramp 0
3698 1 sh CALL
__sigaction_sigtramp(SIGQUIT,0xbfbfe788,0xbfbfe770,0xbbb240a0,2)
3698 1 sh RET __sigaction_sigtramp 0
3698 1 sh CALL __sigprocmask14(2,0xbfbfe7ec,0)
3698 1 sh RET __sigprocmask14 0
3698 1 sh CALL
__sigaction_sigtramp(SIGHUP,0,0xbfbfe7d4,0,0)
3698 1 sh RET __sigaction_sigtramp 0
3698 1 sh CALL
__sigaction_sigtramp(SIGHUP,0xbfbfe788,0xbfbfe770,0xbbb240a0,2)
3698 1 sh RET __sigaction_sigtramp 0
3698 1 sh CALL __sigprocmask14(2,0xbfbfe7ec,0)
3698 1 sh RET __sigprocmask14 0
3698 1 sh CALL
__sigaction_sigtramp(SIGTSTP,0,0xbfbfe7d4,0,0)
3698 1 sh RET __sigaction_sigtramp 0
3698 1 sh CALL
__sigaction_sigtramp(SIGTSTP,0xbfbfe788,0xbfbfe770,0xbbb240a0,2)
3698 1 sh RET __sigaction_sigtramp 0
3698 1 sh CALL __sigprocmask14(2,0xbfbfe7ec,0)
3698 1 sh RET __sigprocmask14 0
3698 1 sh CALL
__sigaction_sigtramp(SIGPIPE,0,0xbfbfe7d4,0,0)
3698 1 sh RET __sigaction_sigtramp 0
3698 1 sh CALL
__sigaction_sigtramp(SIGPIPE,0xbfbfe788,0xbfbfe770,0xbbb240a0,2)
3698 1 sh RET __sigaction_sigtramp 0
3698 1 sh CALL __sigprocmask14(2,0xbfbfe7ec,0)
3698 1 sh RET __sigprocmask14 0
3698 1 sh CALL read(0xa,0x8065960,0x3f8)
3698 1 sh GIO fd 10 read 376 bytes
"#!/bin/sh\n#\n# $NetBSD: opera.sh,v 1.5 2011/01/24 21:46:18
ahoka Exp $\n#\n# This script is used with linux-* emulations to
ensure th\
at opera is\n# started with the proper environment.\n#\n\n#
Fix up LD_LIBRARY_PATH so that /lib is always searched for shared\n#
libra\
ries.\n#\nLD_LIBRARY_PATH=/lib:/usr/lib; export
LD_LIBRARY_PATH\n\nexec /usr/pkg/emul/linux/bin/bash /usr/bin/opera
\"$@\"\n"
3698 1 sh RET read 376/0x178
3698 1 sh CALL execve(0x8065ea4,0x8065ef0,0x8065efc)
3698 1 sh NAMI "/usr/pkg/emul/linux/bin/bash"
3698 1 sh NAMI
"/stand/i386/5.99.44/modules/exec_elf32/exec_elf32.kmod"
3698 1 sh NAMI
"/stand/i386/5.99.44/modules/exec_elf32/exec_elf32.plist"
3698 1 sh NAMI
"/stand/i386/5.99.44/modules/exec_elf64/exec_elf64.kmod"
3698 1 sh NAMI
"/stand/i386/5.99.44/modules/exec_script/exec_script.kmod"
3698 1 sh NAMI
"/stand/i386/5.99.44/modules/exec_script/exec_script.plist"
3698 1 sh NAMI
"/stand/i386/5.99.44/modules/exec_aout/exec_aout.kmod"
3698 1 sh NAMI
"/stand/i386/5.99.44/modules/exec_aout/exec_aout.plist"
3698 1 sh NAMI
"/stand/i386/5.99.44/modules/exec_coff/exec_coff.kmod"
3698 1 sh NAMI
"/stand/i386/5.99.44/modules/exec_ecoff/exec_ecoff.kmod"
3698 1 sh NAMI
"/stand/i386/5.99.44/modules/compat_aoutm68k/compat_aoutm68k.kmod"
3698 1 sh NAMI
"/stand/i386/5.99.44/modules/compat_freebsd/compat_freebsd.kmod"
3698 1 sh NAMI
"/stand/i386/5.99.44/modules/compat_freebsd/compat_freebsd.plist"
3698 1 sh NAMI
"/stand/i386/5.99.44/modules/compat_ibcs2/compat_ibcs2.kmod"
3698 1 sh NAMI
"/stand/i386/5.99.44/modules/compat_ibcs2/compat_ibcs2.plist"
3698 1 sh NAMI
"/stand/i386/5.99.44/modules/compat_irix/compat_irix.kmod"
3698 1 sh NAMI
"/stand/i386/5.99.44/modules/compat_linux/compat_linux.kmod"
3698 1 sh NAMI
"/stand/i386/5.99.44/modules/compat_linux/compat_linux.plist"
3698 1 sh NAMI
"/stand/i386/5.99.44/modules/compat_linux32/compat_linux32.kmod"
3698 1 sh NAMI
"/stand/i386/5.99.44/modules/compat_netbsd32/compat_netbsd32.kmod"
3698 1 sh NAMI
"/stand/i386/5.99.44/modules/compat_sunos/compat_sunos.kmod"
3698 1 sh NAMI
"/stand/i386/5.99.44/modules/compat_sunos32/compat_sunos32.kmod"
3698 1 sh NAMI
"/stand/i386/5.99.44/modules/compat_svr4/compat_svr4.kmod"
3698 1 sh NAMI
"/stand/i386/5.99.44/modules/compat_svr4/compat_svr4.plist"
3698 1 sh NAMI
"/stand/i386/5.99.44/modules/compat_svr4_32/compat_svr4_32.kmod"
3698 1 sh NAMI
"/stand/i386/5.99.44/modules/compat_ultrix/compat_ultrix.kmod"
3698 1 sh NAMI "/usr/pkg/emul/linux/bin/bash"
3698 1 sh NAMI "/emul/svr4"
3698 1 sh NAMI "/lib/ld-linux.so.2"
3698 1 sh RET execve -1 errno 2 No such file or directory
3698 1 sh CALL write(2,0xbb905080,6)
3698 1 sh GIO fd 2 wrote 6 bytes
"exec: "
3698 1 sh RET write 6
3698 1 sh CALL write(2,0xbb905080,0x27)
3698 1 sh GIO fd 2 wrote 39 bytes
"/usr/pkg/emul/linux/bin/bash: not found"
3698 1 sh RET write 39/0x27
3698 1 sh CALL write(2,0xbb905080,1)
3698 1 sh GIO fd 2 wrote 1 bytes
"\n"
3698 1 sh RET write 1
3698 1 sh CALL exit(0x7f)