Bug#876418: perl-modules-5.26: "Argument isn't numeric" error from Net::Ping

2017-09-28 Thread Dominic Hargreaves
On Thu, Sep 28, 2017 at 03:28:57PM +0100, Dominic Hargreaves wrote:
> Control: tags -1 + moreinfo
> 
> On Thu, Sep 21, 2017 at 06:52:59PM -0400, Eric Cooper wrote:
> > Package: perl-modules-5.26
> > Version: 5.26.0-8
> > Severity: normal
> > 
> > When I execute a program that uses Net::Ping, I get the following
> > error message:
> > 
> > Argument "2.020_03" isn't numeric in numeric ge (>=) at 
> > /usr/share/perl/5.26/Net/Ping.pm line 1801.
> > 
> > On my machine, the line in question is
> >1799   # address check
> >1800   # new way
> >1801   if ($Socket::VERSION >= 1.94) {
> 
> Hi,
> 
> I was unable to reproduce this with the following script, either
> from the use line or by duplicating the above comparison:
> 
> $ cat test.pl 
> #!/usr/bin/perl
> 
> use Net::Ping;
> use Socket;
> 
> print $Socket::VERSION . "\n";
> print $Socket::VERSION >= 1.94;
> print "\n";
> 
> Please could you confirm whether this script prints any warnings
> for you, and if not, can you provide a reduced version of the program
> that you're running that exhibits this behaviour (ideally one which does
> not require any external dependencies or configuration).

Of course, if you add 'use warnings;' to the test script the warning
shows up. Sorry about that!

I will investigate further.

Dominic.



Bug#876418: perl-modules-5.26: "Argument isn't numeric" error from Net::Ping

2017-09-28 Thread Dominic Hargreaves
Control: tags -1 + moreinfo

On Thu, Sep 21, 2017 at 06:52:59PM -0400, Eric Cooper wrote:
> Package: perl-modules-5.26
> Version: 5.26.0-8
> Severity: normal
> 
> When I execute a program that uses Net::Ping, I get the following
> error message:
> 
> Argument "2.020_03" isn't numeric in numeric ge (>=) at 
> /usr/share/perl/5.26/Net/Ping.pm line 1801.
> 
> On my machine, the line in question is
>1799   # address check
>1800   # new way
>1801   if ($Socket::VERSION >= 1.94) {

Hi,

I was unable to reproduce this with the following script, either
from the use line or by duplicating the above comparison:

$ cat test.pl 
#!/usr/bin/perl

use Net::Ping;
use Socket;

print $Socket::VERSION . "\n";
print $Socket::VERSION >= 1.94;
print "\n";

Please could you confirm whether this script prints any warnings
for you, and if not, can you provide a reduced version of the program
that you're running that exhibits this behaviour (ideally one which does
not require any external dependencies or configuration).

Dominic.



Bug#876418: perl-modules-5.26: "Argument isn't numeric" error from Net::Ping

2017-09-21 Thread Eric Cooper
Package: perl-modules-5.26
Version: 5.26.0-8
Severity: normal

When I execute a program that uses Net::Ping, I get the following
error message:

Argument "2.020_03" isn't numeric in numeric ge (>=) at 
/usr/share/perl/5.26/Net/Ping.pm line 1801.

On my machine, the line in question is
   1799   # address check
   1800   # new way
   1801   if ($Socket::VERSION >= 1.94) {

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing'), (400, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.12.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages perl-modules-5.26 depends on:
ii  dpkg   1.18.24
ii  perl-base  5.26.0-8

Versions of packages perl-modules-5.26 recommends:
ii  perl  5.26.0-8

perl-modules-5.26 suggests no packages.

-- no debconf information