You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2005/08/17 05:08:28 UTC

[Bug 4536] New: avoid breakage when a "warn" event happens before Mail::SA::Logger is loaded

http://bugzilla.spamassassin.org/show_bug.cgi?id=4536

           Summary: avoid breakage when a "warn" event happens before
                    Mail::SA::Logger is loaded
           Product: Spamassassin
           Version: 3.1.0
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Libraries
        AssignedTo: dev@spamassassin.apache.org
        ReportedBy: jm@jmason.org


if there's a warn-level event during class loading, before Mail::SA::Logger is
loaded, the current code dies with a useless message:

Undefined subroutine &main::log_message called at ./spamassassin line 33.
Compilation failed in require at ./spamassassin line 81.
BEGIN failed--compilation aborted at ./spamassassin line 81.

patch to follow.

btw, sa-learn does not use Mail::SA::Logger.  should it?



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 4536] [review] avoid breakage when a "warn" event happens before Mail::SA::Logger is loaded

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4536





------- Additional Comments From duncf@debian.org  2005-08-19 16:04 -------
+1



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

[Bug 4536] [review] avoid breakage when a "warn" event happens before Mail::SA::Logger is loaded

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4536


jm@jmason.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #3079 is|0                           |1
           obsolete|                            |




------- Additional Comments From jm@jmason.org  2005-08-16 20:33 -------
Created an attachment (id=3080)
 --> (http://bugzilla.spamassassin.org/attachment.cgi?id=3080&action=view)
fix r2

duh.  yep, the hazards of using a small terminal window! here's the subset that
fixes the bug...



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

[Bug 4536] [review] avoid breakage when a "warn" event happens before Mail::SA::Logger is loaded

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4536


duncf@debian.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Status Whiteboard|needs 2 votes               |needs 1 vote






------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

[Bug 4536] [review] avoid breakage when a "warn" event happens before Mail::SA::Logger is loaded

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4536


sidney@sidney.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Status Whiteboard|needs 1 vote                |




------- Additional Comments From sidney@sidney.com  2005-08-19 16:39 -------
+1




------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

[Bug 4536] [review] avoid breakage when a "warn" event happens before Mail::SA::Logger is loaded

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4536


jm@jmason.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From jm@jmason.org  2005-08-19 20:04 -------
233992.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

[Bug 4536] [review] avoid breakage when a "warn" event happens before Mail::SA::Logger is loaded

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4536


parkerm@pobox.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dev@spamassassin.apache.org






------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

[Bug 4536] avoid breakage when a "warn" event happens before Mail::SA::Logger is loaded

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4536


jm@jmason.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|dev@spamassassin.apache.org |jm@jmason.org
             Status|NEW                         |ASSIGNED




------- Additional Comments From jm@jmason.org  2005-08-16 20:08 -------
Created an attachment (id=3079)
 --> (http://bugzilla.spamassassin.org/attachment.cgi?id=3079&action=view)
fix

please vote.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 4536] [review] avoid breakage when a "warn" event happens before Mail::SA::Logger is loaded

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4536





------- Additional Comments From parkerm@pobox.com  2005-08-16 20:27 -------
Seems to be more than that in this patch.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.