From owner-freebsd-ports Mon Feb 5 14:50:22 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 41CAB37B67D for ; Mon, 5 Feb 2001 14:50:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f15Mo2s96395; Mon, 5 Feb 2001 14:50:02 -0800 (PST) (envelope-from gnats) Received: from mx.databus.com (p101-44.acedsl.com [160.79.101.44]) by hub.freebsd.org (Postfix) with ESMTP id E5CF437B503 for ; Mon, 5 Feb 2001 14:43:33 -0800 (PST) Received: (from barney@localhost) by mx.databus.com (8.11.1/8.11.1) id f15MhUB28915; Mon, 5 Feb 2001 17:43:30 -0500 (EST) (envelope-from barney) Message-Id: <200102052243.f15MhUB28915@mx.databus.com> Date: Mon, 5 Feb 2001 17:43:30 -0500 (EST) From: Barney Wolff Reply-To: barney@databus.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/24884: divide by 0 in healthd Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 24884 >Category: ports >Synopsis: divide by 0 in healthd >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Feb 05 14:50:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Barney Wolff >Release: FreeBSD 4.2-STABLE i386 >Organization: Databus Inc. >Environment: cvsup ports as of 2/4/01, healthd-0.6.4, 4.2-stable as of 2/1/01. >Description: --- getMBinfo.c.orig Mon Feb 5 17:29:58 2001 +++ getMBinfo.c Mon Feb 5 17:18:52 2001 @@ -293,7 +293,7 @@ else *r2 = 1350000 / (n * div2 * FanType2); n=ReadByte(0x2A); - if (n == 255) + if (n == 255 || n == 0) *r3 = 0; else *r3 = 1350000 / (n * div3 * FanType3); >How-To-Repeat: MB is SuperMicro PIIIDRE (dual PIII). healthd run as healthd -S -6 with default healthd.conf, coredumps on startup. Also, I was unable to build the port with make all in /usr/ports/sysutils/healthd - stopped with make: don't know how to make real-build. Stop I had to build it by hand. >Fix: See patch under Description. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message