rabins rc14 division by zero

carter at qosient.com carter at qosient.com
Tue Jun 27 10:12:32 EDT 2006


Hmmmmm,  dumps are not good, and I'll get to them possibly tonight, but I suspect I need to more error checking into ragraph.pl.

Carter

Carter Bullard
QoSient LLC
150 E. 57th Street Suite 12D
New York, New York 10022
+1 212 588-9133 Phone
+1 212 588-9134 Fax  

-----Original Message-----
From: Andreas Östling <andreaso at it.su.se>
Date: Tue, 27 Jun 2006 15:50:17 
To:argus-info at lists.andrew.cmu.edu
Subject: [ARGUS] rabins rc14 division by zero


I was trying out ragraph for the first time but got this:
Floating point exception
no data

The Floating point exception message comes from rabins, and you get it 
when using rabins with any other -M mode than 'time', like:

$ ./rabins -r foo.arg
Floating point exception

$ ./rabins -M count 100 -r foo.arg
Floating point exception

$ ./rabins -M time 1m -r foo.arg
<data...>

The bad divison happens in ArgusAlignRecord():
 dsecs = ((start->tv_sec - nadp->startSecs) / nadp->offset) * 
nadp->offset;

The nadp struct is bzeroed on init and nadp->offset remains 0 unless you 
use time as mode. Perhaps it's the same bug as was reported in rc3 a 
couple of weeks ago. I'm not sure what the fix is as I'm not familiar 
with how rabins should work yet.

/Andreas



More information about the argus mailing list