At 06:16 PM 11/28/97 +0100, Roberto A. Lumbreras Pastor wrote:
>On Fri, 28 Nov 1997, Leigh Porter wrote:
>(gdb) print (store_swap_high - store_swap_size) / (store_swap_high -
store_swap_low)
>Erroneous arithmetic operation.
>(gdb) step
>
>Program received signal SIGFPE, Arithmetic exception.
>storeExpiredReferenceAge () at store.c:2778
>2778 x = x < 0.0 ? 0.0 : x > 1.0 ? 1.0 : x;
>(gdb)
>
>Yes, I have:
>cache_swap_low 98
>cache_swap_high 98
>
>so objects are erased while others come in. Somebody suggested this
>to avoid expensive expiration periods, and with my pentium box it
>works ok; squid on linux/alpha tries to divide by 0... :-?
Question, are you using the FPU on the pentium under linux, or are you
using the fpu emulator built into linux? You may want to check thru your
kernel compile. I believe the emulated kernel avoids this sort of problem,
while the pentium may not.. you mileage may vary.
should be easy to fix tho *grin*
if (store_swap_high = store_swap_low) {
print (store_swap_high - store_swap_size)
} else {
print (store_swap_high - store_swap_size) / (store_swap_high -
store_swap_low)
}
or something like that *grin*
-=[ Stuart Young (Aka Cefiar) ]=--------------------------------------
| http://amarok.glasswings.com.au/ | cefiar@amarok.glasswings.com.au |
----------------------------------------------------------------------
| Jake and Elwood - The Blues Brothers! |
| "You traded it?! You traded the Blues Mobile for this?" |
| "No. For a microphone." "A microphone? OK I can see that." |
Received on Fri Nov 28 1997 - 16:54:31 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:37:45 MST