Skip Menu |
 
rt.cpan.org will be shut down on March 1st, 2021.

This queue is for tickets about the Math-BigInt CPAN distribution.

Report information
The Basics
Id: 80182
Status: resolved
Priority: 0/
Queue: Math-BigInt

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

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Attachments


From dwheeler [...] cpan.org Sun Oct 14 18: 26:42 2012
CC: jdb [...] cpan.org
MIME-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
X-Spam-Status: No, score=-5.65 tagged_above=-99.9 required=10 tests=[AWL=1.250, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_HI=-5] autolearn=ham
X-Mailer: Apple Mail (2.1499)
X-Spam-Flag: NO
Message-ID: <26C39A95-9703-4757-AB58-6F203338D3DA [...] cpan.org>
content-type: text/plain; charset="utf-8"
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -5.65
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 2F3592408BA for <cpan-bug+Math-BigInt [...] hipster.bestpractical.com>; Sun, 14 Oct 2012 18:26:42 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Aj6Ba7vqRGXU for <cpan-bug+Math-BigInt [...] hipster.bestpractical.com>; Sun, 14 Oct 2012 18:26:40 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 32D0C2408B9 for <bug-Math-BigInt [...] rt.cpan.org>; Sun, 14 Oct 2012 18:26:40 -0400 (EDT)
Received: (qmail 22998 invoked by uid 103); 14 Oct 2012 22:26:39 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 14 Oct 2012 22:26:39 -0000
Received: from b-pb-sasl-quonix.pobox.com (HELO smtp.pobox.com) (208.72.237.35) by 16.mx.develooper.com (qpsmtpd/0.84/v0.84-167-g4ed6cab) with ESMTP; Sun, 14 Oct 2012 15:26:36 -0700
Received: from smtp.pobox.com (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id 957C1804D; Sun, 14 Oct 2012 18:26:33 -0400 (EDT)
Received: from b-pb-sasl-quonix.pobox.com (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id 8347B804C; Sun, 14 Oct 2012 18:26:33 -0400 (EDT)
Received: from [10.0.1.4] (unknown [50.137.40.254]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by b-sasl-quonix.pobox.com (Postfix) with ESMTPSA id DFD2E8049; Sun, 14 Oct 2012 18:26:31 -0400 (EDT)
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] pobox.com
Delivered-To: cpan-bug+Math-BigInt [...] hipster.bestpractical.com
Subject: "overload arg '..' is invalid" Warning
Return-Path: <dwheeler [...] cpan.org>
X-RT-Mail-Extension: math-bigint
X-Original-To: cpan-bug+Math-BigInt [...] hipster.bestpractical.com
X-Spam-Check-BY: 16.mx.develooper.com
Dkim-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from :content-type:content-transfer-encoding:subject:date:message-id :cc:to:mime-version; s=sasl; bh=4Xn3C/2K5Evchgfx9YFoyGB30tA=; b= S7USx9bztu2rJ1e71KgUKGX3MedE49LY6fc/yqOHD5qoVDJ5Tr+qZuLcvGGLKusp nE1AO7hjZIkjycwfWWfbqPPu2jzw0PiOLu2JOBBggnC31oWW7yIjiahva2f1XAa9 J30oEQusVoFTMMXGMjgxz3gtUq0hL0p6TQ8kd2Q1YQ8=
Date: Sun, 14 Oct 2012 15:26:30 -0700
X-Spam-Level:
To: bug-Math-BigInt [...] rt.cpan.org
X-Pobox-Relay-ID: 3546E736-164E-11E2-B613-BB652E706CDE-76319746!b-pb-sasl-quonix.pobox.com
Content-Transfer-Encoding: quoted-printable
From: "David E. Wheeler" <dwheeler [...] cpan.org>
X-RT-Original-Encoding: us-ascii
Content-Length: 2588
Download (untitled) / with headers
text/plain 2.5k
The CPAN release of Math::BigInt can emit overloading warnings in some situations when loaded by File::Spec::Win32. Example failures: http://ppm4.activestate.com/MSWin32-x86/5.16/1600/D/DW/DWHEELER/App-Sqitch-0.938.d/log-20121013T031855.txt Sample stack trace: # overload arg '..' is invalid at C:\cpanfly-5.16\var\megalib/Math/BigInt.pm line 153. # at C:/Perl-5.16/lib/overload.pm line 41. # overload::OVERLOAD('Math::BigInt', '=', 'CODE(0x24cc674)', '+=', 'CODE(0x24cc734)', '-=', 'CODE(0x24cc7f4)', '*=', 'CODE(0x24cc9c4)', ...) called at C:/Perl-5.16/lib/overload.pm line 59 # overload::import('overload', '=', 'CODE(0x24cc674)', '+=', 'CODE(0x24cc734)', '-=', 'CODE(0x24cc7f4)', '*=', 'CODE(0x24cc9c4)', ...) called at C:\cpanfly-5.16\var\megalib/Math/BigInt.pm line 153 # Math::BigInt::BEGIN() called at C:\cpanfly-5.16\var\megalib/Math/BigInt.pm line 153 # eval {...} called at C:\cpanfly-5.16\var\megalib/Math/BigInt.pm line 153 # require Math/BigInt.pm called at C:\cpanfly-5.16\var\megalib/Win32API/File.pm line 23 # Win32API::File::BEGIN() called at C:\cpanfly-5.16\var\megalib/Math/BigInt.pm line 153 # eval {...} called at C:\cpanfly-5.16\var\megalib/Math/BigInt.pm line 153 # require Win32API/File.pm called at C:\cpanfly-5.16\var\megalib/File/Spec/Win32.pm line 92 # eval {...} called at C:\cpanfly-5.16\var\megalib/File/Spec/Win32.pm line 92 # File::Spec::Win32::case_tolerant('File::Spec') called at C:\cpanfly-5.16\var\megalib/Pod/Find.pm line 481 # Pod::Find::pod_where('HASH(0x24a9eec)', 'sqitchcommands') called at C:\cpanfly-5.16\var\cpan\build\App-Sqitch-0.938-PNTiYK\blib\lib/App/Sqitch/Command/help.pm line 25 # App::Sqitch::Command::help::find_and_show('App::Sqitch::Command::help=HASH(0x249f7f4)', 'sqitchcommands') called at C:\cpanfly-5.16\var\cpan\build\App-Sqitch-0.938-PNTiYK\blib\lib/App/Sqitch/Command/help.pm line 19 # App::Sqitch::Command::help::execute('App::Sqitch::Command::help=HASH(0x249f7f4)') called at t/help.t line 30 When I inquired with the PPM folks Jan Dubois replied: Show quoted text
> So the issue seems to be triggered only by the code in the App::Sqitch > test. > > Math::BigInt is used by Win32API::File on 32-bit Windows to deal with > 64-bit file offsets, so this issue will only be triggered on Windows. > I don't understand why this isn't a problem with 5.14 though, as it > also has the latest Math::BigInt installed. The problem is also not > triggered by simply loading Win32API::File. So it probably won't > show up in many cpantesters results.
So I guess something is different in the CPAN release? Thanks, David
MIME-Version: 1.0
In-Reply-To: <26C39A95-9703-4757-AB58-6F203338D3DA [...] cpan.org>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <26C39A95-9703-4757-AB58-6F203338D3DA [...] cpan.org>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-1366-1350278928-1382.80182-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
RT-Send-CC: perl5-porters [...] perl.org
Content-Length: 3179
Download (untitled) / with headers
text/plain 3.1k
On Sun Oct 14 18:26:43 2012, DWHEELER wrote: Show quoted text
> The CPAN release of Math::BigInt can emit overloading warnings in some > situations when loaded by File::Spec::Win32. Example failures: > > http://ppm4.activestate.com/MSWin32-x86/5.16/1600/D/DW/DWHEELER/App- > Sqitch-0.938.d/log-20121013T031855.txt > > Sample stack trace: > > # overload arg '..' is invalid at C:\cpanfly- > 5.16\var\megalib/Math/BigInt.pm line 153. > # at C:/Perl-5.16/lib/overload.pm line 41. > # overload::OVERLOAD('Math::BigInt', '=', 'CODE(0x24cc674)', '+=', > 'CODE(0x24cc734)', '-=', 'CODE(0x24cc7f4)', '*=', > 'CODE(0x24cc9c4)', ...) called at C:/Perl-5.16/lib/overload.pm line > 59 > # overload::import('overload', '=', 'CODE(0x24cc674)', '+=', > 'CODE(0x24cc734)', '-=', 'CODE(0x24cc7f4)', '*=', > 'CODE(0x24cc9c4)', ...) called at C:\cpanfly- > 5.16\var\megalib/Math/BigInt.pm line 153 > # Math::BigInt::BEGIN() called at C:\cpanfly- > 5.16\var\megalib/Math/BigInt.pm line 153 > # eval {...} called at C:\cpanfly-5.16\var\megalib/Math/BigInt.pm > line 153 > # require Math/BigInt.pm called at C:\cpanfly- > 5.16\var\megalib/Win32API/File.pm line 23 > # Win32API::File::BEGIN() called at C:\cpanfly- > 5.16\var\megalib/Math/BigInt.pm line 153 > # eval {...} called at C:\cpanfly-5.16\var\megalib/Math/BigInt.pm > line 153 > # require Win32API/File.pm called at C:\cpanfly- > 5.16\var\megalib/File/Spec/Win32.pm line 92 > # eval {...} called at C:\cpanfly-5.16\var\megalib/File/Spec/Win32.pm > line 92 > # File::Spec::Win32::case_tolerant('File::Spec') called at > C:\cpanfly-5.16\var\megalib/Pod/Find.pm line 481 > # Pod::Find::pod_where('HASH(0x24a9eec)', 'sqitchcommands') called at > C:\cpanfly-5.16\var\cpan\build\App-Sqitch-0.938- > PNTiYK\blib\lib/App/Sqitch/Command/help.pm line 25 > # >
App::Sqitch::Command::help::find_and_show('App::Sqitch::Command::help=HASH(0x249f7f4)' , Show quoted text
> 'sqitchcommands') called at C:\cpanfly-5.16\var\cpan\build\App- > Sqitch-0.938-PNTiYK\blib\lib/App/Sqitch/Command/help.pm line 19 > # > App::Sqitch::Command::help::execute('App::Sqitch::Command::help=HASH(0x249f7f4)') > called at t/help.t line 30 > > > When I inquired with the PPM folks Jan Dubois replied: >
> > So the issue seems to be triggered only by the code in the
> App::Sqitch
> > test. > > > > Math::BigInt is used by Win32API::File on 32-bit Windows to deal
> with
> > 64-bit file offsets, so this issue will only be triggered on
> Windows.
> > I don't understand why this isn't a problem with 5.14 though, as it > > also has the latest Math::BigInt installed. The problem is also not > > triggered by simply loading Win32API::File. So it probably won't > > show up in many cpantesters results.
> > So I guess something is different in the CPAN release?
The latest CPAN release is still 1.997. Perl 5.15.7 and higher include 1.998, whose only difference from 1.997 is the suppression of this warning (perl commit 5e0688b6067a) and the version number. So it looks as though we need a new CPAN release. (The same applies to bignum, BTW, as I recently fixed a serious bug in its global overrides.)
MIME-Version: 1.0
In-Reply-To: <rt-3.8.HEAD-1366-1350278928-1382.80182-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <26C39A95-9703-4757-AB58-6F203338D3DA [...] cpan.org> <rt-3.8.HEAD-1366-1350278928-1382.80182-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-17158-1350403613-1590.80182-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 238
Download (untitled) / with headers
text/plain 238b
On 2012-10-15 01:28:48, SPROUT wrote: Show quoted text
> So it looks as though we need a new CPAN release. (The same applies > to bignum, BTW, as I > recently fixed a serious bug in its global overrides.)
Great. Whom can I nag to do so? Thanks, David
MIME-Version: 1.0
In-Reply-To: <rt-3.8.HEAD-17158-1350403613-1590.80182-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <26C39A95-9703-4757-AB58-6F203338D3DA [...] cpan.org> <rt-3.8.HEAD-1366-1350278928-1382.80182-0-0 [...] rt.cpan.org> <rt-3.8.HEAD-17158-1350403613-1590.80182-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-17158-1350404687-1641.80182-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
RT-Send-CC: rafl [...] debian.org, pjacklam [...] online.no, perl5-porters [...] perl.org
Content-Length: 473
Download (untitled) / with headers
text/plain 473b
On Tue Oct 16 12:06:53 2012, DWHEELER wrote: Show quoted text
> On 2012-10-15 01:28:48, SPROUT wrote: >
> > So it looks as though we need a new CPAN release. (The same applies > > to bignum, BTW, as I > > recently fixed a serious bug in its global overrides.)
> > Great. Whom can I nag to do so?
I’m not sure. Porting/Maintainers.pl in the Perl repository says that rafl (Florian Ragwitz) is the maintainer, but the last release was made by Peter J. Acklam. So I am cc’ing both.
MIME-Version: 1.0
In-Reply-To: <rt-3.8.HEAD-17158-1350404687-1641.80182-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <26C39A95-9703-4757-AB58-6F203338D3DA [...] cpan.org> <rt-3.8.HEAD-1366-1350278928-1382.80182-0-0 [...] rt.cpan.org> <rt-3.8.HEAD-17158-1350403613-1590.80182-0-0 [...] rt.cpan.org> <rt-3.8.HEAD-17158-1350404687-1641.80182-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-32367-1351535307-1776.80182-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
From: Mark.Martinec [...] ijs.si
X-RT-Original-Encoding: utf-8
Content-Length: 419
Download (untitled) / with headers
text/plain 419b
As soon as a module Net::DNS::SEC is installed, the "overload arg '..'" warning pops up all over the place (like in half the self-tests of SpamAssassin). Here is a one-liner which demonstrates it (using perl 5.16.0 and Math::BigInt 1.997): $ perl -MNet::DNS -lwe ' $r=Net::DNS::Resolver->new; $r->udppacketsize(2048)' overload arg '..' is invalid at /usr/local/lib/perl5/site_perl/5.16.0/ Math/BigInt.pm line 153.
MIME-Version: 1.0
In-Reply-To: <rt-3.8.HEAD-1366-1350278928-1382.80182-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <26C39A95-9703-4757-AB58-6F203338D3DA [...] cpan.org> <rt-3.8.HEAD-1366-1350278928-1382.80182-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-9078-1359986441-1688.80182-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
From: lidl [...] pix.net
X-RT-Original-Encoding: utf-8
Content-Length: 653
Download (untitled) / with headers
text/plain 653b
On Mon Oct 15 01:28:48 2012, SPROUT wrote: Show quoted text
> The latest CPAN release is still 1.997. Perl 5.15.7 and higher > include 1.998, whose only > difference from 1.997 is the suppression of this warning (perl commit > 5e0688b6067a) and > the version number. > > So it looks as though we need a new CPAN release. (The same applies > to bignum, BTW, as I > recently fixed a serious bug in its global overrides.)
I just ran into this problem this morning on a freshly installed version of perl 5.16.2 (which includes 1.998 of Math-BigInt) and a dependency that loaded the latest Math-BigInt from CPAN (which is still 1.997). So, this problem still exists.
MIME-Version: 1.0
In-Reply-To: <rt-3.8.HEAD-9078-1359986441-1688.80182-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
X-RT-Interface: Web
References: <26C39A95-9703-4757-AB58-6F203338D3DA [...] cpan.org> <rt-3.8.HEAD-1366-1350278928-1382.80182-0-0 [...] rt.cpan.org> <rt-3.8.HEAD-9078-1359986441-1688.80182-0-0 [...] rt.cpan.org>
Content-Type: multipart/mixed; boundary="----------=_1366001128-15082-2"
Message-ID: <rt-4.0.11-15082-1366001128-284.80182-0-0 [...] rt.cpan.org>
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 0
Content-Disposition: inline
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 812
Download (untitled) / with headers
text/plain 812b
On Mon Feb 04 09:00:41 2013, kurtlidl wrote: Show quoted text
> On Mon Oct 15 01:28:48 2012, SPROUT wrote:
> > The latest CPAN release is still 1.997. Perl 5.15.7 and higher > > include 1.998, whose only > > difference from 1.997 is the suppression of this warning (perl commit > > 5e0688b6067a) and > > the version number. > > > > So it looks as though we need a new CPAN release. (The same applies > > to bignum, BTW, as I > > recently fixed a serious bug in its global overrides.)
> > > I just ran into this problem this morning on a freshly installed > version of perl 5.16.2 (which includes 1.998 of Math-BigInt) and > a dependency that loaded the latest Math-BigInt from CPAN (which is > still 1.997). > > So, this problem still exists. >
This bug hit me when i upgraded to Fedora 18. Proposed patch is attached.
MIME-Version: 1.0
Subject: Math_BigInt_pointpoint.patch
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Type: text/x-patch; name="Math_BigInt_pointpoint.patch"
Content-Disposition: inline; filename="Math_BigInt_pointpoint.patch"
Content-Transfer-Encoding: binary
Content-Length: 431
diff -Naur old/lib/Math/BigInt.pm new/lib/Math/BigInt.pm --- old/lib/Math/BigInt.pm 2011-09-03 16:26:41.000000000 +1000 +++ new/lib/Math/BigInt.pm 2013-04-15 14:39:17.890447159 +1000 @@ -60,8 +60,6 @@ '>>=' => sub { $_[0]->brsft($_[1]); }, # not supported by Perl yet -'..' => \&_pointpoint, - '<=>' => sub { my $rc = $_[2] ? ref($_[0])->bcmp($_[1],$_[0]) : $_[0]->bcmp($_[1]);
MIME-Version: 1.0
In-Reply-To: <26C39A95-9703-4757-AB58-6F203338D3DA [...] cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <26C39A95-9703-4757-AB58-6F203338D3DA [...] cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-11489-1396966221-1262.80182-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 6
Fixed.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.