[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#402866: marked as done (amavis-stats: log's state file isn't checked for silly value.)



Your message dated 
with message-id <20100920214919.28465.63934.mass-bugs-close@merkel.debian.org>
and subject line amavis-stats removed from Debian unstable
has caused the Debian Bug report #402866,
regarding amavis-stats: log's state file isn't checked for silly value.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
402866: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=402866
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: amavis-stats
Version: 0.1.12-7.2
Severity: normal

Hello,

Due to some reason i haven't identified(*), amavis-stats' state-file
contained an incorrect offset value, which points to the middle a of
a line of the log file.
Therefore, when amavis-stats tries to parse the line, it dies with 
error message (then mailed by Cron Daemon) :

[..]
amavis-stats: parseFile (/var/log/mail.info, 235, 63385)
amavis-stats: lock /var/lock/amavis-stats removed
amavis-stats: Unknown month "" (current locale is "C")

# head -n 2  /var/log/mail.info
Dec 10 06:55:01 slxmrml1 amavis[4168]: (04168-04) Passed CLEAN,
[64.56.70.119] <info@XXXXXXXXXXXXXXXXX.com> -> <XXXXXXXX@XXXX.name>,
mail_id: sA+RmInUjoa3, Hits: -, queued_as: 250 OK id=1GtHeP-0002GK-RE,
306 ms
Dec 10 07:02:32 slxmrml1 amavis[4787]: (04787-04) Passed CLEAN,
<logcheck@XXXXX.XX> -> <root@XXXXX.XX>, Message-ID:
<E1GtHlg-0002Yi-0f@WWWWWWWWWWWWWWWWWWW.be>, mail_id: DVSRaN2MiRd9, Hits:
-, queued_as: 250 OK id=1GtHlg-0002Yo-BG, 258 ms

note : offset 235 is right after "Dec 10 07:02:32 slxmrml1" but before
"amavis[4168]" so, the test /usr/bin/amavis-stats line 624 :
	if ($line =~ /amavis.*?\[\d+\]:/) {
is valid !

I guess it should be safer to make sure that the offset is right after
an "\n" when the state file is loaded.

regards,

Franklin


(*) I have recently upgraded to Etch, but i'm not sure it's related..
it my just be a race condition.


-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-486
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages amavis-stats depends on:
ii  adduser                       3.100      Add and remove users and groups
ii  debconf [debconf-2.0]         1.5.8      Debian configuration management sy
ii  librrds-perl                  1.2.15-0.2 Time-series data storage and displ
ii  rrdtool                       1.2.15-0.2 Time-series data storage and displ
ii  wwwconfig-common              0.0.48     Debian web auto configuration

Versions of packages amavis-stats recommends:
ii  amavisd-new [amavis]          1:2.4.2-5  Interface between MTA and virus sc

-- debconf information:
* amavis-stats/stay_on_purge: false
* amavis-stats/config_apache: None


--- End Message ---
--- Begin Message ---
Version: 0.1.22+dfsg-2+rm

amavis-stats has been removed from Debian unstable: http://bugs.debian.org/596609

Closing its bugs with a Version higher than the last unstable upload.

More information about this script at:
  http://git.debian.org/?p=users/morph/mass-bugs-close.git;a=blob_plain;f=README;hb=HEAD


--- End Message ---

Reply to: