SA Bugzilla – Bug 1492
$/ gets undef via Reporter
Last modified: 2003-02-17 00:48:51 UTC
I can't quite figure out where yet, but $/ is getting undefined somewhere in Reporter. Supposedly, Razor resets this, but Reporter is calling enter_helper_run_mode and leave_helper_run_mode which should reset $/ after the run.
It looks like our call to Mail::SpamAssassin::PerMsgStatus::leave_helper_run_mode() is doing it. A quick check shows that the keys in $self disappear when running Razor, so $/ gets set to undef as expected. My assumption is $self changes somehow, but I have no idea how that would happen. Another theory is that somewhere there's a undef $self or $self = {} or something. We need to get this solved before a release since there are potentially third party apps which will have problems with this (such as my handlespam script... ;))
Subject: Re: [SAdev] $/ gets undef via Reporter On Mon, Feb 17, 2003 at 02:02:06AM -0800, bugzilla-daemon@hughes-family.org wrote: > My assumption is $self changes somehow, but I have no idea how that would happen. Another theory is that somewhere there's a undef $self or $self = {} or something. Ok, if we call Mail::SpamAssassin::PerMsgStatus::*_run_mode() directly, the problem exists. If we call a $self->*_run_mode() stub instead, it works, from what I can tell. I'm sure there's a good reason for this, but I'm not seeing it right now.
so -- fixed?
Subject: Re: $/ gets undef via Reporter On Mon, Feb 17, 2003 at 08:21:00AM -0800, bugzilla-daemon@hughes-family.org wrote: > so -- fixed? Maybe. I did it at 5-something AM, wasn't quite thinking straight (just woke up, still not...) In my quick test it was fixed, but let me poke at a few more things and I'll get back to you.
Ok, after some additional testing, I'm relatively confident I can call this fixed. :) I'm still not quite sure why calling it from a stub is different, but I'll worry about that later.