[Bug 866650] New: spamd: Use of each() on hash after insertion without resetting hash iterator results in undefined behavior, Perl interpreter
https://bugzilla.novell.com/show_bug.cgi?id=866650 https://bugzilla.novell.com/show_bug.cgi?id=866650#c0 Summary: spamd: Use of each() on hash after insertion without resetting hash iterator results in undefined behavior, Perl interpreter Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: carlos.e.r@opensuse.org QAContact: qa-bugs@suse.de Found By: --- Blocker: --- Each time I retrieve mails, passing through spamd/spamc pair, I see this in the warning log: <2.4> 2014-03-03 16:29:26 Telcontar spamd 3567 - - message repeated 19 times: [ Use of each() on hash after insertion without resetting hash iterator results in undefined behavior, Perl interpreter: 0x10d0010 at /usr/lib/perl5/vendor_perl/5.18.1/Mail/SpamAssassin/AsyncLoop.pm line 363.] <2.4> 2014-03-03 16:29:27 Telcontar spamd 3567 - - Use of each() on hash after insertion without resetting hash iterator results in undefined behavior, Perl interpreter: 0x10d0010 at /usr/lib/perl5/vendor_perl/5.18.1/Mail/SpamAssassin/AsyncLoop.pm line 363, <GEN345> line 122. <2.4> 2014-03-03 16:29:27 Telcontar spamd 3568 - - message repeated 20 times: [ Use of each() on hash after insertion without resetting hash iterator results in undefined behavior, Perl interpreter: 0x10d0010 at /usr/lib/perl5/vendor_perl/5.18.1/Mail/SpamAssassin/AsyncLoop.pm line 363.] <2.4> 2014-03-03 16:29:27 Telcontar spamd 3567 - - message repeated 2 times: [ Use of each() on hash after insertion without resetting hash iterator results in undefined behavior, Perl interpreter: 0x10d0010 at /usr/lib/perl5/vendor_perl/5.18.1/Mail/SpamAssassin/AsyncLoop.pm line 363, <GEN345> line 122.] <2.4> 2014-03-03 16:29:27 Telcontar spamd 3567 - - Use of each() on hash after insertion without resetting hash iterator results in undefined behavior, Perl interpreter: 0x10d0010 at /usr/lib/perl5/vendor_perl/5.18.1/Mail/SpamAssassin/AsyncLoop.pm line 363. <2.4> 2014-03-03 16:29:27 Telcontar spamd 3568 - - Use of each() on hash after insertion without resetting hash iterator results in undefined behavior, Perl interpreter: 0x10d0010 at /usr/lib/perl5/vendor_perl/5.18.1/Mail/SpamAssassin/AsyncLoop.pm line 363, <GEN204> line 122. There is at least one report per email filtered, and it is very bothersome as it goes to the system warning log. Hundreds of entries. That code section is this: /usr/lib/perl5/vendor_perl/5.18.1/Mail/SpamAssassin/AsyncLoop.pm lines 361-397/558 72% while (my($key,$ent) = each %$pending) { my $id = $ent->{id}; if (defined $ent->{poll_callback}) { # call a "poll_callback" if exists # be nice, provide fresh info to a callback routine $ent->{status} = 'FINISHED' if exists $self->{finished}->{$id}; # a callback might call set_response_packet() or report_id_complete() # dbg("async: calling poll_callback on key $key"); $ent->{poll_callback}->($ent); } It comes from an openSUSE package: cer@Telcontar:~> rpm -qf /usr/lib/perl5/vendor_perl/5.18.1/Mail/SpamAssassin/AsyncLoop.pm perl-Mail-SpamAssassin-3.3.2-37.1.2.x86_64 cer@Telcontar:~> rpm -qfi /usr/lib/perl5/vendor_perl/5.18.1/Mail/SpamAssassin/AsyncLoop.pm Name : perl-Mail-SpamAssassin Packager : http://bugs.opensuse.org Vendor : openSUSE In the mail list they told me that there is a patch here: <https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6937> You have more data on the mail list, here: <http://lists.opensuse.org/opensuse/2014-03/msg00073.html> I can not give you more information than that, I don't know perl myself. One comment (see mail list, I only post it for your consideration, I know nothing about it) says: Perl-5.18 Incompatible Features on by default --------------------------------------------- perl-5.18 released with an incompatible feature turned on by default -- "experimental warnings". Additionally, some, previously documented features were deprecated to 'experimental' statul, meaning, "not for use in released code". -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=866650 https://bugzilla.novell.com/show_bug.cgi?id=866650#c Xiyuan Liu <xyliu@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xyliu@suse.com AssignedTo|bnc-team-screening@forge.pr |varkoly@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com