[Bug 515402] [NEW] sarg: getword loop detected (bug in utils.c, name_month function?)

Dave Hope dave at davehope.co.uk
Mon Feb 1 09:14:44 UTC 2010


Public bug reported:

Binary package hint: sarg

sarg fails when processing an out the box access.log from squdi3:

Package: sarg, Version: 2.2.5-2
Package: squid3, Version: 3.0.STABLE18-1


root at BOH-INF-MON01:/tmp# sarg -z -x
SARG: Init
SARG: Loading configuration from: /etc/squid/sarg.conf
SARG: TAG: language English
SARG: TAG: access_log /var/log/squid3/access.log
SARG: TAG: title "Squid User Access Reports"
SARG: TAG: font_face Tahoma,Verdana,Arial
SARG: TAG: header_color darkblue
SARG: TAG: header_bgcolor blanchedalmond
SARG: TAG: font_size 9px
SARG: TAG: background_color white
SARG: TAG: text_color #000000
SARG: TAG: text_bgcolor lavender
SARG: TAG: title_color green
SARG: TAG: temporary_dir /tmp
SARG: TAG: output_dir /var/www/squid-reports
SARG: TAG: resolve_ip no
SARG: TAG: user_ip no
SARG: TAG: topuser_sort_field BYTES reverse
SARG: TAG: user_sort_field BYTES reverse
SARG: TAG: exclude_users /etc/squid/sarg.users
SARG: TAG: exclude_hosts /etc/squid/sarg.hosts
SARG: TAG: date_format u
SARG: TAG: lastlog 0
SARG: TAG: remove_temp_files yes
SARG: TAG: index yes
SARG: TAG: index_tree file
SARG: TAG: overwrite_report yes
SARG: TAG: records_without_userid ip
SARG: TAG: use_comma yes
SARG: TAG: mail_utility mailx
SARG: TAG: topsites_num 100
SARG: TAG: topsites_sort_order CONNECT D
SARG: TAG: index_sort_order D
SARG: TAG: exclude_codes /etc/squid/sarg.exclude_codes
SARG: TAG: max_elapsed 28800000
SARG: TAG: report_type topusers topsites sites_users users_sites date_time denied auth_failures site_user_time_date down
SARG: TAG: usertab /etc/squid/sarg.usertab
SARG: TAG: long_url no
SARG: TAG: date_time_by bytes
SARG: TAG: charset Latin1
SARG: TAG: show_successful_message no
SARG: TAG: show_read_statistics no
SARG: TAG: topuser_fields NUM DATE_TIME USERID CONNECT BYTES %BYTES IN-CACHE-OUT USED_TIME MILISEC %TIME TOTAL AVERAGE
SARG: TAG: user_report_fields CONNECT BYTES %BYTES IN-CACHE-OUT USED_TIME MILISEC %TIME TOTAL AVERAGE
SARG: TAG: topuser_num 0
SARG: TAG: site_user_time_date_type table
SARG: TAG: download_suffix "zip,arj,bzip,gz,ace,doc,iso,adt,bin,cab,com,dot,drv$,lha,lzh,mdb,mso,ppt,rtf,src,shs,sys,exe
SARG: Loading exclude file from: /etc/squid/sarg.hosts
SARG: Loading exclude file from: /etc/squid/sarg.users
SARG: Parameters:
SARG:
SARG:              Hostname or IP address (-a) =
SARG:                       Useragent log (-b) =
SARG:                        Exclude file (-c) = /etc/squid/sarg.hosts
SARG:                     Date from-until (-d) =
SARG:       Email address to send reports (-e) =
SARG:                         Config file (-f) = /etc/squid/sarg.conf
SARG:                         Date format (-g) = USA (mm/dd/yyyy)
SARG:                           IP report (-i) = No
SARG:                           Input log (-l) = /var/log/squid3/access.log
SARG:                  Resolve IP Address (-n) = No
SARG:                          Output dir (-o) = /var/www/squid-reports/
SARG:    Use Ip Address instead of userid (-p) = No
SARG:                       Accessed site (-s) =
SARG:                                Time (-t) =
SARG:                                User (-u) =
SARG:                       Temporary dir (-w) = /tmp
SARG:                      Debug messages (-x) = Yes
SARG:                    Process messages (-z) = Yes
SARG:
SARG: sarg version: 2.2.5 Mar-03-2008
SARG: Maximum file descriptor: cur=1024 max=1024, changed to cur=20000 max=20000
SARG: Loading User table: /etc/squid/sarg.usertab
SARG: Reading access log file: /var/log/squid3/access.log
SARG: (util) tbuf=2010Feb01
SARG: (util) period=2010Feb01-
SARG:    Records read: 22966, written: 22965, excluded: 1
SARG: Squid log format
SARG: (util) data=02/01/2010
SARG: (util) tbuf=2010Feb01
SARG: (util) period=2010Feb01-2010Feb01
SARG: Period: 2010Feb01-2010Feb01
SARG: pre-sorting files
SARG: (util) dirname=/var/www/squid-reports/2010Feb01-2010Feb01
SARG: (util) wdir=/var/www/squid-reports/2010Feb01-2010Feb01
SARG: Making period file
SARG: Making file: /tmp/sarg/10.5.8.1
SARG: Making file: /tmp/sarg/10.5.6.14
...removed...
SARG: Making file: /tmp/sarg/10.5.6.20
SARG:                  Resolve IP Address (-n) = No
SARG:                          Output dir (-o) = /var/www/squid-reports/
SARG:    Use Ip Address instead of userid (-p) = No
SARG:                       Accessed site (-s) =
SARG:                                Time (-t) =
SARG:                                User (-u) =
SARG:                       Temporary dir (-w) = /tmp
SARG:                      Debug messages (-x) = Yes
SARG:                    Process messages (-z) = Yes
SARG:
SARG: sarg version: 2.2.5 Mar-03-2008
SARG: Maximum file descriptor: cur=1024 max=1024, changed to cur=20000 max=20000
SARG: Loading User table: /etc/squid/sarg.usertab
SARG: Reading access log file: /var/log/squid3/access.log
SARG: (util) tbuf=2010Feb01
SARG: (util) period=2010Feb01-
SARG:    Records read: 22966, written: 22965, excluded: 1
SARG: Squid log format
SARG: (util) data=02/01/2010
SARG: (util) tbuf=2010Feb01
SARG: (util) period=2010Feb01-2010Feb01
SARG: Period: 2010Feb01-2010Feb01
SARG: pre-sorting files
SARG: (util) dirname=/var/www/squid-reports/2010Feb01-2010Feb01
SARG: (util) wdir=/var/www/squid-reports/2010Feb01-2010Feb01
SARG: Making period file
SARG: Making file: /tmp/sarg/10.5.8.1
SARG: Making file: /tmp/sarg/10.5.6.14
SARG: Making file: /tmp/sarg/10.5.6.61
...removed...
SARG: getword loop detected.
SARG: searching for 'x20'
SARG: Maybe you have a broken record or garbage in your access.log file.


This seems to have been fixed by Gentoo and Debian recently:
http://bugs.gentoo.org/show_bug.cgi?id=263802
http://www.mail-archive.com/debian-bugs-closed@lists.debian.org/msg262206.html

** Affects: sarg (Ubuntu)
     Importance: Undecided
         Status: New

-- 
sarg: getword loop detected (bug in utils.c, name_month function?)
https://bugs.launchpad.net/bugs/515402
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list