CC: | jdb [...] cpan.org |
Subject: | "overload arg '..' is invalid" Warning |
Date: | Sun, 14 Oct 2012 15:26:30 -0700 |
To: | bug-Math-BigInt [...] rt.cpan.org |
From: | "David E. Wheeler" <dwheeler [...] cpan.org> |
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