Subject: pkg/4584: top broken on alpha
To: None <>
From: Hubert Feyrer <>
List: netbsd-bugs
Date: 11/26/1997 22:54:39
>Number:         4584
>Category:       pkg
>Synopsis:       top broken on alpha
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 26 14:05:02 1997
>Originator:     Hubert Feyrer
Hubert Feyrer <>
>Release:        1.3_ALPHA
System: NetBSD miyu 1.3A NetBSD 1.3A (MIYU) #1: Thu Nov 13 23:35:12 MET 1997 feyrer@miyu:/data/cvs/src/sys/arch/i386/compile/MIYU i386

	top breaks on 1.3_ALPHA machines, as reported on current-users:

	> theta# ./top
	> Floating exception (core dumped)
	> theta# gdb top top.core
	> ...
	> Core was generated by `top'.
	> Program terminated with signal 8, Floating point exception.
	> #0  0x120008860 in format_next_process () at machine.c:513
	> 513         sprintf(fmt,

	cd /usr/pkgsrc/*/top ; make install ; top

	None know, but here's an answer I received after my posting to

Date: Wed, 19 Nov 1997 12:03:30 -0800 (PST)
From: the Riz <>
To: Hubert Feyrer <>
Cc: current-users@NetBSD.ORG
Subject: Re: pkgsrc/sysutils/top breaks on alpha


I looked into this a few weeks ago, before my time ran short.  What I found
was that the kernel value 'hz' on the Alpha returns zero, producing a
divide by zero error when formatting the output string.  That's where I
left it, cuz I know little about the kernel.  


Jeff Rizzo