NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/40314: ktruss(1) reports incorrect filename



>Number:         40314
>Category:       bin
>Synopsis:       ktruss(1) reports incorrect filename
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 01 18:00:00 +0000 2009
>Originator:     Matthias Scheler
>Release:        NetBSD 5.0_BETA 2008-12-28 sources
>Organization:
Matthias Scheler                                  http://zhadum.org.uk/
>Environment:
System: NetBSD colwyn.zhadum.org.uk 5.0_BETA NetBSD 5.0_BETA (COLWYN.64) #0: 
Sun Dec 28 16:23:56 GMT 2008 
tron%colwyn.zhadum.org.uk@localhost:/src/sys/compile/COLWYN.64 amd64
Architecture: x86_64
Machine: amd64
>Description:
"ktruss" reports bogus filenames in when decoding an open(2) system call:

ktruss cat /etc/hosts |& grep open
 26998      1 cat      open("/libexec/ld.elf_so", 0, 0) Err#2 ENOENT
 26998      1 cat      open("/etc/ld.so.conf", 0, 0xff31302d6e722d62) = 3
 26998      1 cat      open("/lib/libc.so.12", 0, 0x1b6) = 3
 26998      1 cat      open("/etc/malloc.conf", 0x4, 0) = 3
 26998      1 cat      open("/usr/lib/i18n", 0, 0xfefefeff332d332d) = 3
 26998      1 cat      open("/usr/lib/i18n/libUTF8.so.4.4", 0, 
0xfefefefefefefeff) Err#2 ENOENT
 26998      1 cat      open("/usr/lib/i18n/libc.so.12", 0, 0x31302d6dff31302d) 
= 3
 26998      1 cat      open("/usr/lib/libc.so.12", 0, 0) = 3

The last open(2) actually opens "/etc/hosts". But it is not the only one
which gets decoded incorrectly.

>How-To-Repeat:
Run "ktruss cat /etc/hosts" and look at the output.

>Fix:
None provided.



Home | Main Index | Thread Index | Old Index