NetBSD-Bugs archive

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

bin/40715: ktruss output clearly wrong



>Number:         40715
>Category:       bin
>Synopsis:       ktruss output clearly wrong
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 22 19:50:00 +0000 2009
>Originator:     Jasper Wallace
>Release:        5.0 RC2
>Organization:
>Environment:
NetBSD meep-meep 5.0_RC2 NetBSD 5.0_RC2 (MEEP-MEEP) #1: Thu Feb 19 14:36:43 GMT 
2009  root@meep-meep:/usr/obj/sys/arch/i386/compile/MEEP-MEEP i386

>Description:
While trying to work out why root can't login or be su'd to under load i was 
ktrussing the shell i was su'ing from, and i see things like this:

 11800      1 su       setpriority(0, 0, 0)        = 0
 11800      1 su       readlink("/etc/localtime", 0xbfbfd087, 0x3fb) Err#22 
EINVAL
 11800      1 su       setuid(0)                   = 0
 11800      1 su       execve("/var/run/log", 0xbfbfe3cc, 0xbb91a080) Err#35 
EAGAIN
 11800      1 su       write(0x2, 0xbfbfcd40, 0x4) = 4
       "su: "
 11800      1 su       write(0x2, 0xbfbfcd70, 0x12) = 18
       "/usr/local/bin/zsh"
 11800      1 su       write(0x2, 0xbbbac07f, 0x2) = 2
       ": "
 11800      1 su       issetugid()                 = 1
 11800      1 su       issetugid()                 = 1
 11800      1 su       open("/tmp", 0, 0xbbbfee40) Err#2 ENOENT
 11800      1 su       open("/usr/share/nls/nls.alias.db", 0, 0xbfbfc7c8) = 6
 11800      1 su       fcntl(0x6, 0x2, 0x1)        = 0


/etc/localtime does exist, is a link and does point to something valid.


>How-To-Repeat:
ktruss -ip pid and look for wierdness.

>Fix:
n/a



Home | Main Index | Thread Index | Old Index