Subject: pkg/6953: top crashes on machines without swap
To: None <gnats-bugs@gnats.netbsd.org>
From: Dave Huang <khym@bga.com>
List: netbsd-bugs
Date: 02/06/1999 15:18:25
>Number:         6953
>Category:       pkg
>Synopsis:       top crashes on machines without swap
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb  6 13:20:04 1999
>Last-Modified:
>Originator:     Dave Huang
>Organization:
Name: Dave Huang     |   Mammal, mammal / their names are called /
INet: khym@bga.com   |   they raise a paw / the bat, the cat /
FurryMUCK: Dahan     |   dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 23 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++
>Release:        February 5, 1999
>Environment:
	
System: NetBSD fluff.metonymy.com 1.3I NetBSD 1.3I (FLUFF) #10: Fri Feb 5 03:13:04 CST 1999 khym@dahan.metonymy.com:/usr/src.local/sys/arch/i386/compile/FLUFF i386


>Description:
	The top-3.5beta7 package crashes on machines that don't have
any swap space configured.
>How-To-Repeat:
>Fix:
--- patch-ab.orig	Sat Feb  6 15:12:05 1999
+++ patch-ab	Sat Feb  6 15:12:18 1999
@@ -382,7 +382,7 @@
 +
 +    memory_stats[4] = memory_stats[5] = 0;
 +
-+    sep = NULL;
++    seporig = NULL;
 +    do {
 +	nswap = swapctl(SWAP_NSWAP, 0, 0);
 +	if (nswap < 1)

>Audit-Trail:
>Unformatted: