Re: squid.1.1.9 core dumping on Digital Unix 4.0

From: Duane Wessels <wessels@dont-contact.us>
Date: Tue, 08 Apr 97 08:41:25 -0700

connellm@janus.cqu.edu.au writes:

>I am running squid.1.1.9 on Digital UNIX 4.0b
>
>squid continually core dumps with the following error:-
># ./squid
>Floating exception - core dumped

store.c is missing a cast:

Index: src/store.c
===================================================================
RCS file: /surf1/CVS/squid/src/store.c,v
retrieving revision 1.212.2.12
retrieving revision 1.212.2.13
diff -w -u -r1.212.2.12 -r1.212.2.13
--- store.c 1997/03/28 16:55:44 1.212.2.12
+++ store.c 1997/04/04 16:15:02 1.212.2.13
@@ -2807,7 +2811,7 @@
        return 0;
     x = (double) (store_swap_high - store_swap_size) / (store_swap_high - store_swap_low);
     x = x < 0.0 ? 0.0 : x > 1.0 ? 1.0 : x;
- z = pow(Config.referenceAge, x);
+ z = pow((double) Config.referenceAge, x);
     age = (time_t) (z * 60.0);
     if (age < 60)
        age = 60;

Duane W.
Received on Tue Apr 08 1997 - 08:52:57 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:34:58 MST