NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/41288: FreeBSD emulation stop working
The following reply was made to PR kern/41288; it has been noted by GNATS.
From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: kern/41288: FreeBSD emulation stop working
Date: Wed, 31 Mar 2010 03:01:33 +0000
(send to gnats-admin instead of gnats-bugs)
------
From: Takahiro Kambe <taca%back-street.net@localhost>
To: gnats-admin%netbsd.org@localhost
Subject: Re: kern/41288: FreeBSD emulation stop working
Date: Fri, 26 Mar 2010 00:46:18 +0900 (JST)
I found that this problem happened by processing shared libraries of
FreeBSD.
Here is dynamic linked program:
% ktrace -di -t A ./motd
2080 1 ktrace EMUL "netbsd"
2080 1 ktrace RET ktrace 0
2080 1 ktrace CALL execve(0xbfbffca8,0xbfbfeb7c,0xbfbfeb84)
2080 1 ktrace NAMI "./motd"
2080 1 ktrace CSW stop kernel
2080 1 ktrace CSW resume kernel
2080 1 ktrace ARG "./motd"
2080 1 ktrace ENV "XMODIFIERS=@im=uim"
2080 1 ktrace ENV "PWD=/data/tmp/freebsd228"
...
2080 1 ktrace ENV "PAGER=less"
2080 1 ktrace ENV "EDITOR=vi"
2080 1 ktrace ENV "_=/usr/bin/ktrace"
2080 1 motd NAMI "/emul/freebsd"
2080 1 motd EMUL "freebsd"
2080 1 motd RET syscall JUSTRETURN
2080 1 motd CALL open(0x109c,0,0)
2080 1 motd NAMI "/emul/freebsd/usr/libexec/ld.so"
2080 1 motd RET open 3, -1077937132/0xbfbffc14
2080 1 motd PSIG SIGSEGV SIG_DFL: code=SEGV_MAPERR, addr=0x3,
trap=6)
2080 1 motd NAMI "motd.core"
2080 1 motd CSW stop kernel
2080 1 motd CSW resume kernel
2080 1 motd CSW stop kernel
2080 1 motd CSW resume kernel
[2] 2743 segmentation fault (core dumped) ktrace -id -t A ./motd
When the same program which statically linked on FreeBSD:
% ktrace -id -t A ./motd.static
% kdump
3323 1 ktrace EMUL "netbsd"
3323 1 ktrace RET ktrace 0
3323 1 ktrace CALL execve(0xbfbffca4,0xbfbfeb78,0xbfbfeb80)
3323 1 ktrace NAMI "./motd.static"
3323 1 ktrace ARG "./motd.static"
3323 1 ktrace ENV "XMODIFIERS=@im=uim"
3323 1 ktrace ENV "PWD=/data/tmp/freebsd228"
...
3323 1 ktrace ENV "PAGER=less"
3323 1 ktrace ENV "EDITOR=vi"
3323 1 ktrace ENV "_=/usr/bin/ktrace"
3323 1 motd.static NAMI "/emul/freebsd"
3323 1 motd.static EMUL "freebsd"
3323 1 motd.static RET syscall JUSTRETURN
3323 1 motd.static CALL open(0x10c0,0,0)
3323 1 motd.static NAMI "/emul/freebsd/etc/motd"
3323 1 motd.static RET open 3, 8284/0x205c
3323 1 motd.static CALL close(3)
3323 1 motd.static RET close 0, 8284/0x205c
3323 1 motd.static CALL exit(0)
This program simply open /etc/motd, close it and end.
--
Takahiro Kambe <taca%back-street.net@localhost>
Home |
Main Index |
Thread Index |
Old Index