*BSD News Article 11361


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA1659 ; Tue, 23 Feb 93 14:52:20 EST
Newsgroups: comp.os.386bsd.bugs,comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!menudo.uh.edu!uuneo!sugar!karl
From: karl@NeoSoft.com (Karl Lehenbauer)
Subject: Patch to fix signal 6 aborts (HUGE values are too huge)
Organization: NeoSoft Communications Services -- (713) 684-5900
Date: Thu, 18 Feb 1993 07:15:32 GMT
Message-ID: <C2Mutx.LKq@sugar.neosoft.com>
Lines: 46

This is an unofficial patch.  It is *not* part of the official 
unofficial patchkit maintained by Jordan Hubbard (jkh@whisker.lotus.ie)
and previously by Nate Williams.

If you apply this patch you need your own backout plan.  Further you can
expect with reasonable certainty that this patch or one like it will come
out through the official unofficial patchkit.

If you need it now and can't wait, though, use it.  As always, we are not
responsible for whatever this patch does or fails to do to your system.

PATCH:          MAX_DOUBLE AND HUGE_VAL ARE TOO HUGE. (SIGNAL 6 ABORTS)
AUTHOR:         Nick Handel (nhandel@NeoSoft.com)
AUTHOR:         Peter da Silva (peter@NeoSoft.com)
AUTHOR:         Daniel Poirot (poirot@aio.jsc.nasa.gov)
DESCRIPTION:
The MAX_DOUBLE and HUGE_VAL values are too big, big enough in HUGE_VAL's
case that you automatically get an abort signal on any attempt to compare
it to another value, resulting in "trap 6" messages and the like.

I heard something about bugs in atof and the like, so these are probably
not the final word, but they get a lot more stuff to compile and run.

*** /usr/include/machine/float.h.pre-neosoft	Thu Feb 18 00:02:39 1993
--- /usr/include/machine/float.h	Thu Feb 11 00:05:31 1993
***************
*** 53,59 ****
  #define DBL_MIN		2.225073858507201E-308
  #define DBL_MIN_10_EXP	-307
  #define DBL_MAX_EXP	1024
! #define DBL_MAX		1.797693134862316E+308
  #define DBL_MAX_10_EXP	308
  
  #define LDBL_MANT_DIG	DBL_MANT_DIG
--- 53,59 ----
  #define DBL_MIN		2.225073858507201E-308
  #define DBL_MIN_10_EXP	-307
  #define DBL_MAX_EXP	1024
! #define DBL_MAX		1.797693134862315E+308
  #define DBL_MAX_10_EXP	308
  
  #define LDBL_MANT_DIG	DBL_MANT_DIG
-- 
-- Email info@NeoSoft.com for info on getting interactive Internet access.
"I didn't have time to write a short letter, so I wrote a long one instead."
-- Twain