Subject: kern/35478: process cpu usage dumps core on vax -current
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <hbent@cs.oberlin.edu>
List: netbsd-bugs
Date: 01/24/2007 22:10:00
>Number:         35478
>Category:       kern
>Synopsis:       process cpu usage dumps core on vax -current
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 24 22:10:00 +0000 2007
>Originator:     Henry Bent
>Release:        4.99.7
>Organization:
Oberlin College CIT
>Environment:
NetBSD romulus 4.99.7 NetBSD 4.99.7 (ROMULUS) #3: Sun Jan 21 13:20:04 EST 2007 root@hbent3:/usr/obj/src-current/sys/arch/vax/compile/ROMULUS vax
>Description:
/usr/bin/top and /bin/ps -u dump core in a very similar way.  It looks like it is while trying to do CPU usage % calculations.  This was not happening in 2.0-STABLE on the same machine.
>How-To-Repeat:
romulus% gdb top
GNU gdb 5.3nb1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "vax--netbsdelf"...(no debugging symbols found)...
(gdb) run
Starting program: /usr/bin/top

Program received signal SIGILL, Illegal instruction.
0x000164a8 in infnan (34)
(gdb) bt
#0  0x000164a8 in infnan (34)
#1  0x00016070 in log (-2147467149, 0)
#2  0x00014ef5 in machine_init (2147479000)
#3  0x00010774 in main (1, 2147479188, 2147479196)
#4  0x0001016d in ___start (1, 2147479188, 2147479196, 0, 0, 2147483632)
#5  0x000100eb in _start ()

romulus# gdb /bin/ps
GNU gdb 5.3nb1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "vax--netbsdelf"...(no debugging symbols found)...
(gdb) set args u
(gdb) run
Starting program: /bin/ps u

Program received signal SIGILL, Illegal instruction.
0x00013dc8 in infnan (34)
(gdb) bt
#0  0x00013dc8 in infnan (34)
#1  0x00013990 in log (-2147467149, 0)
#2  0x00011a20 in getpcpu (541888)
#3  0x00012ab7 in pscomp (536576, 541888)
#4  0x000414e5 in qsort (536576, 17, 664, 75840)
#5  0x0001331e in main (2, 2147479184, 2147479196)
#6  0x0001016d in ___start (2, 2147479184, 2147479196, 0, 0, 2147483632)
#7  0x000100eb in _start
    (2147475868, 0, 0, 801112064, 2147479104, 2147479060, 78622, 0, 0, 0, 5, 1,
93880, 4, 536576, 17, 664, 75840, 2147479188, 0, 0, 0, 0, 0)
#8  0x00000011 in ??
    (0, 0, 0, -2142912392, 0, -2099310592, 0, -2139651812, 0, -2139652352, 0, -2
139664384, 0, -2143043984, 0, -2139667584, 0, -2140655348, 0, -2139971720, 0, -2
139971720, 0, -2140188800, 0, 1, 20, 22534, 799, 1035, 565, 799, 799, 0, 0, 0, 0
, 0, 2, 3, 4, 5, 20, 31, 0, 0, 0, 0, 0, 0, 0, 0, 0, 65543, 259, 31637, 1, 559954
, 47, 105, 2, 0, 0, 43, 0, 108, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -17
40079104, 0, 0, 0, 0, 0, 0, 0, 339820807, 0, 29552, 0, 0, 0, 0, 0, 1769235822, 1
11, 0, 0, 1953460082, 0, 0, 0, 0, 0, 41, 82, 22, 3, 1, 0, 1169675930, 320000, 0,
 435535, 1, 104031, 0, 0, 0, 0, 0, 0, 0, 0, 93, 0, 50, 0, 0, 0, 0, 0, 0, 0, 81,
0, 81, 0, 0, 0, 77, 0, 12, 0, 0, 0, -1, -1, 22530, 0, 1, 0, 1, 0, 2, 0, 0, 0, 0,
 0, 0, 0, 0, 0, 0, 0, -2142910744, 0, -2099298304, 0, -2139652096, 0, -213965236
8, 0, -2139663264, 0, -2143043984, 0, -2139667360, 0, -2143366904, 0, -213997172
0, 0, -2139971720, 0, -2143363192, 0, 1, 20, 16518, 1035, 788, 565, 1035, 799, 0
, 0, 0, 0, 0, 2, 3, 4, 5, 20, 31, 0, 0, 0, 0, 0, 0, 0, 0, 0, 65543, 259, 3194, 4
, 529927, 8, 306, 11, 0, 0, 301, 0, 144, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
>Fix:
Don't know; sorry.