Floating point exception at month_total_table ()

Bug #349709 reported by Jani Ollikainen
2
Affects Status Importance Assigned to Milestone
AWFFull
New
Undecided
Unassigned

Bug Description

Hi,

Today I noticed this:

# uname -a
Linux domain.tld 2.6.18-92.1.22.el5 #1 SMP Tue Dec 16 11:57:43 EST 2008 x86_64 x86_64 x86_64 GNU/Linux

# LANG=fi_FI.utf8 awffull-3.10.2/src/awffull -p -n mustikka -o mustikka mustikka_1.txt
Floating point exception

# cat mustikka_1.txt
66.249.71.132 mustikkatalli.domain.tld - [27/Mar/2009:07:38:57 +0200] "GET /sitemap.php HTTP/1.1" 200 316 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"

# cat mustikka/awffull.hist
3 2008 769 687 40 4750 28 26 303 70

Strace:
open("usage_200803.html", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
stat("/awffull/awffull.css", 0x7fff87780c60) = -1 ENOENT (No such file or directory)
open("/awffull/awffull.css", O_WRONLY|O_CREAT|O_EXCL, 0644) = -1 ENOENT (No such file or directory)
fstat(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b8526a56000
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1883, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1883, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1883, ...}) = 0
--- SIGFPE (Floating point exception) @ 0 (0) ---
+++ killed by SIGFPE +++

Gdb:
(gdb) run
Starting program: /root/awffull/awffull-3.10.2/src/awffull -p -n mustikka -o mustikka mustikka_1.txt

Program received signal SIGFPE, Arithmetic exception.
0x000000000040e254 in month_total_table ()
(gdb) backtrace
#0 0x000000000040e254 in month_total_table ()
#1 0x000000000041a40c in write_month_html ()
#2 0x0000000000425207 in main ()

Revision history for this message
Steve McInerney (spm) wrote :

Hey Jani,

not suggesting this doesn't need a catch/fix for it or anything:
but did you realise you're reading from a March 2008 history, only; and then running with a March 2009 log file entry.

does that sounds correct?

Cheers!
- Steve

Revision history for this message
Jani Ollikainen (bestis) wrote :

Hi,

Yes it does. I think that the user hadn't have statistics on for a year, or for some reason those weren't generated.

The system where I'm using awffull leaves the statistics once generated even if statistics isn't on for later usage.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.