NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/39722: ktruss(1) broken for program running under compat (linux,...)
>Number: 39722
>Category: bin
>Synopsis: ktruss(1) broken for program running under compat (linux,...)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Oct 09 12:45:00 +0000 2008
>Originator: Nicolas Joly
>Release: NetBSD 4.99.72
>Organization:
Biological Software and Databanks.
Institut Pasteur, Paris.
>Environment:
System: NetBSD lanfeust.sis.pasteur.fr 4.99.72 NetBSD 4.99.72 (LANFEUST_DEVEL)
#4: Thu Oct 9 13:34:36 CEST 2008
njoly%lanfeust.sis.pasteur.fr@localhost:/local/src/NetBSD/obj.amd64/sys/arch/amd64/compile/LANFEUST_DEVEL
amd64
Architecture: x86_64
Machine: amd64
>Description:
ktruss(1) does not seems to handle gracefully multiple NAMI entries,
which occurs frequently with programs running under compat; such as
linux binaries.
ktruss output:
7590 1 id emul(linux)
7590 1 id execve("/emul/linux/usr/bin/id", 0x7f7fffffda98,
0x7f7fffffdaa8) JUSTRETURN
7590 1 id uname(0x7f7ffffff138) = 0
7590 1 id brk("/emul/linux") = 5263360
7590 1 id mmap("/emul/linux/lib64/ld-linux-x86-64.so.2", 0x1000,
0x3, 0x22, 0xffffffff, 0) = 140187698982912
7590 1 id access(0x7f7ffde11450, 0x4) JUSTRETURN
7590 1 id open(0x7f7ffde131d8, 0, 0x1) = 3
7590 1 id fstat64("/emul/linux/etc/ld.so.preload", 0x7f7fffffe928)
= 0
7590 1 id mmap("/etc/ld.so.preload",
"/emul/linux/etc/ld.so.cache", 0x1, 0x2, 0x3, 0) = 140187698966528
7590 1 id close(0x3) = 0
[...]
ktrace/kdump output:
7682 1 ktrace CALL execve(0x7f7ffffffca3,0x7f7fffffda98,0x7f7fffffdaa8
)
7682 1 ktrace NAMI "/emul/linux/usr/bin/id"
7682 1 ktrace NAMI "/emul/linux"
7682 1 ktrace NAMI "/emul/linux/lib64/ld-linux-x86-64.so.2"
7682 1 id EMUL "linux"
7682 1 id RET syscall -1 errno -2 No such file or directory
7682 1 id CALL uname(0x7f7ffffff138)
7682 1 id RET uname 0
7682 1 id CALL brk(0)
7682 1 id RET brk 5263360/0x505000
7682 1 id CALL mmap(0,0x1000,3,0x22,0xffffffff,0)
7682 1 id RET mmap 140187698982912/0x7f7ffdfff000
7682 1 id CALL access(0x7f7ffde11450,4)
7682 1 id NAMI "/emul/linux/etc/ld.so.preload"
7682 1 id NAMI "/etc/ld.so.preload"
7682 1 id RET access -1 errno -2 No such file or directory
7682 1 id CALL open(0x7f7ffde131d8,0,1)
7682 1 id NAMI "/emul/linux/etc/ld.so.cache"
7682 1 id RET open 3
7682 1 id CALL fstat64(3,0x7f7fffffe928)
7682 1 id RET fstat64 0
7682 1 id CALL mmap(0,0x3236,1,2,3,0)
7682 1 id RET mmap 140187698966528/0x7f7ffdffb000
7682 1 id CALL close(3)
7682 1 id RET close 0
[...]
>How-To-Repeat:
Compare ktruss and ktrace/kdump output for binaries running under compat.
>Fix:
Home |
Main Index |
Thread Index |
Old Index