Skip Menu |

This queue is for tickets about the Sys-Syslog CPAN distribution.

Report information
The Basics
Id: 25488
Status: resolved
Priority: 0/
Queue: Sys-Syslog

People
Owner: Nobody in particular
Requestors: imacat [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.18
Fixed in: 0.19

Attachments


Subject: Use of uninitialized value in string eq at Sys/Syslog.pm line 631.
Hi. This is imacat from Taiwan. I have just upgraded to Sys:Syslog 0.18, and got flooded with errors from my cron scripts that use Sys::Syslog. They all says: Use of uninitialized value in string eq at /usr/lib/perl5/5.8.8/i686-linux-thread-multi-64int-ld/Sys/Syslog.pm line 631. After some tests, I found that if the script openlog() and closelog() without any logging, $current_proto will be undef and hence caused this. The demostrative terminal log is below. imacat@leaf ~ % cat /tmp/sys-syslog-test #! /usr/bin/perl -w use Sys::Syslog; openlog("sys-syslog-test", "", LOG_USER); closelog(); imacat@leaf ~ % /tmp/sys-syslog-test Use of uninitialized value in string eq at /usr/lib/perl5/5.8.8/i686-linux-thread-multi-64int-ld/Sys/Syslog.pm line 631. imacat@leaf ~ % I have attached a simple patch. Hope that this helps. Please tell me if I can be of any help, or if there is any question. Thank you.
Subject: Sys-Syslog-0.18-protoundef.diff.asc
Download Sys-Syslog-0.18-protoundef.diff.asc
application/octet-stream 673b

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #25488] Use of uninitialized value in string eq at Sys/Syslog.pm line 631.
Date: Sat, 17 Mar 2007 01:58:51 +0100
To: bug-Sys-Syslog [...] rt.cpan.org
From: Sébastien Aperghis-Tramoni <saper [...] cpan.org>
Show quoted text
> Hi. This is imacat from Taiwan.
Hello Imacat, Show quoted text
> I have just upgraded to Sys:Syslog 0.18, and got flooded with > errors from my cron scripts that use Sys::Syslog. They all says: > > Use of uninitialized value in string eq at > /usr/lib/perl5/5.8.8/i686-linux-thread-multi-64int-ld/Sys/Syslog.pm > line > 631. > > After some tests, I found that if the script openlog() and closelog() > without any logging, $current_proto will be undef and hence caused > this. > The demostrative terminal log is below. > > imacat@leaf ~ % cat /tmp/sys-syslog-test > #! /usr/bin/perl -w > use Sys::Syslog; > openlog("sys-syslog-test", "", LOG_USER); > closelog(); > imacat@leaf ~ % /tmp/sys-syslog-test > Use of uninitialized value in string eq at > /usr/lib/perl5/5.8.8/i686-linux-thread-multi-64int-ld/Sys/Syslog.pm > line > 631. > imacat@leaf ~ % > > I have attached a simple patch. Hope that this helps. Please tell me > if I can be of any help, or if there is any question.
Thanks, applied. I've also commited your example as a regression test with Test::NoWarnings. Thank you for reporting this problem in such a clear and documented way :-) -- Sébastien Aperghis-Tramoni Close the world, txEn eht nepO.
RT-Send-CC: Sébastien Aperghis-Tramoni <saper [...] cpan.org>
On Fri Mar 16 20:59:19 2007, SAPER wrote: Show quoted text
> > Use of uninitialized value in string eq at > > /usr/lib/perl5/5.8.8/i686-linux-thread-multi-64int-ld/Sys/Syslog.pm > > line
Show quoted text
> Thanks, applied. > I've also commited your example as a regression test with > Test::NoWarnings.
This "bug" seems very common, and therefore I request a new release of your popular module.
Subject: Re: [rt.cpan.org #25488] Use of uninitialized value in string eq at Sys/Syslog.pm line 631.
Date: Fri, 25 May 2007 16:30:18 +0200
To: bug-Sys-Syslog [...] rt.cpan.org
From: Sébastien Aperghis-Tramoni <saper [...] cpan.org>
Show quoted text
> This "bug" seems very common, and therefore I request a new release of > your popular module.
I understand that, but the new version is not fully finished as Win32 support still doesn't perfectly work and I'd like to see it working. There are also some issues on OSX that I must check if there are still present or not. -- Sébastien Aperghis-Tramoni Close the world, txEn eht nepO.
This issue has been resolved with Sys::Syslog 0.19 Thanks for reporting this bug. -- Close the world, txEn eht nepO.