From owner-freebsd-ports Tue Dec 14 13:53:22 1999 Delivered-To: freebsd-ports@freebsd.org Received: from kci.kciLink.com (kci.kciLink.com [204.117.82.1]) by hub.freebsd.org (Postfix) with ESMTP id CE3CF1512B for ; Tue, 14 Dec 1999 13:53:19 -0800 (PST) (envelope-from khera@kciLink.com) Received: from onceler.kcilink.com (onceler.kciLink.com [204.117.82.2]) by kci.kciLink.com (Postfix) with ESMTP id DEB96E8B0; Tue, 14 Dec 1999 16:53:14 -0500 (EST) Received: (from khera@localhost) by onceler.kcilink.com (8.9.3/8.9.3) id QAA64678; Tue, 14 Dec 1999 16:53:14 -0500 (EST) (envelope-from khera@kci.kcilink.com) From: Vivek Khera MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14422.48202.807583.537595@onceler.kcilink.com> Date: Tue, 14 Dec 1999 16:53:14 -0500 (EST) To: freebsd-ports@freebsd.org, jimduchek@ou.edu Subject: patch to gaim 0.9.10 port for FreeBSD 3.4-RC X-Mailer: VM 6.72 under 21.1 (patch 8) "Bryce Canyon" XEmacs Lucid Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The port of gaim 0.9.10 to FreeBSD-stable from cvsup earlier today crashes with a SIGFPE error a few seconds after startup. I traced it down to a call to log(x) where x=0. The following patch corrects this problem: *** #buddy.c~ Tue Dec 14 16:42:14 1999 --- src/buddy.c Tue Dec 14 16:42:14 1999 *************** *** 202,208 **** pct = last_lag_us/100000; ! pct = 25 * log(pct); if (pct < 0) pct = 0; --- 202,208 ---- pct = last_lag_us/100000; ! pct = 25 * log(pct+1.0); if (pct < 0) pct = 0; Curiously, this problem did not affect Linux nor BSD/OS 4.0.1, only FreeBSD-stable. Thanks! -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vivek Khera, Ph.D. Khera Communications, Inc. Internet: khera@kciLink.com Rockville, MD +1-301-545-6996 PGP & MIME spoken here http://www.kciLink.com/home/khera/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message