sarg: getword loop detected (bug in utils.c, name_month function?)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Server papercuts |
Invalid
|
Undecided
|
Unassigned | ||
Debian |
Fix Released
|
Unknown
|
|||
Gentoo Linux |
Fix Released
|
Medium
|
|||
sarg (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
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@BOH-
SARG: Init
SARG: Loading configuration from: /etc/squid/
SARG: TAG: language English
SARG: TAG: access_log /var/log/
SARG: TAG: title "Squid User Access Reports"
SARG: TAG: font_face Tahoma,
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/
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: TAG: exclude_hosts /etc/squid/
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_
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: 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: TAG: long_url no
SARG: TAG: date_time_by bytes
SARG: TAG: charset Latin1
SARG: TAG: show_successful
SARG: TAG: show_read_
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_
SARG: TAG: download_suffix "zip,arj,
SARG: Loading exclude file from: /etc/squid/
SARG: Loading exclude file from: /etc/squid/
SARG: Parameters:
SARG:
SARG: Hostname or IP address (-a) =
SARG: Useragent log (-b) =
SARG: Exclude file (-c) = /etc/squid/
SARG: Date from-until (-d) =
SARG: Email address to send reports (-e) =
SARG: Config file (-f) = /etc/squid/
SARG: Date format (-g) = USA (mm/dd/yyyy)
SARG: IP report (-i) = No
SARG: Input log (-l) = /var/log/
SARG: Resolve IP Address (-n) = No
SARG: Output dir (-o) = /var/www/
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: Reading access log file: /var/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=
SARG: Period: 2010Feb01-2010Feb01
SARG: pre-sorting files
SARG: (util) dirname=
SARG: (util) wdir=/var/
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/
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: Reading access log file: /var/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=
SARG: Period: 2010Feb01-2010Feb01
SARG: pre-sorting files
SARG: (util) dirname=
SARG: (util) wdir=/var/
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://
http://<email address hidden>
Changed in gentoo: | |
status: | Unknown → Fix Released |
Changed in debian: | |
status: | Unknown → Fix Released |
Changed in gentoo: | |
importance: | Unknown → Medium |
This bug is fixed upstream in ssarg 2.2.6 - http:// sarg.sourceforg e.net/sarg. ChangeLog. txt
What's the process for getting the sarg in Ubuntu updated to 2.2.6? is there anything I can do to help?