Skip Menu |

This queue is for tickets about the LWP-UserAgent-Determined CPAN distribution.

Report information
The Basics
Id: 122260
Status: open
Priority: 0/
Queue: LWP-UserAgent-Determined

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

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



Subject: Tests fail: "Not a GLOB reference"
Tests are failing thusly: PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/01_about_verbose.t .... 1/2 Not a GLOB reference at t/01_about_verbose.t line 47. t/01_about_verbose.t .... Dubious, test returned 255 (wstat 65280, 0xff00) Failed 1/2 subtests t/10_determined_test.t .. ok Test Summary Report ------------------- t/01_about_verbose.t (Wstat: 65280 Tests: 1 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 2 tests but ran 1. Files=2, Tests=14, 38 wallclock secs ( 0.02 usr 0.00 sys + 0.06 cusr 0.00 csys = 0.08 CPU) Result: FAIL Failed 1/2 test programs. 0/14 subtests failed. make: *** [test_dynamic] Error 255 I'm not really sure what the intent is in t/01_about_verbose.t but it's doing some mighty strange things with the callstack. Are you sure there isn't a more straightforward way of accomplishing your goal?
On Tue Jun 27 18:48:24 2017, ETHER wrote: Show quoted text
> Tests are failing thusly: > > PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "- > MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, > 'blib/lib', 'blib/arch')" t/*.t > t/01_about_verbose.t .... 1/2 Not a GLOB reference at > t/01_about_verbose.t line 47. > t/01_about_verbose.t .... Dubious, test returned 255 (wstat 65280, > 0xff00) > Failed 1/2 subtests > t/10_determined_test.t .. ok > > Test Summary Report > ------------------- > t/01_about_verbose.t (Wstat: 65280 Tests: 1 Failed: 0) > Non-zero exit status: 255 > Parse errors: Bad plan. You planned 2 tests but ran 1. > Files=2, Tests=14, 38 wallclock secs ( 0.02 usr 0.00 sys + 0.06 cusr > 0.00 csys = 0.08 CPU) > Result: FAIL > Failed 1/2 test programs. 0/14 subtests failed. > make: *** [test_dynamic] Error 255 > > > I'm not really sure what the intent is in t/01_about_verbose.t but > it's doing some mighty strange things with the callstack. Are you sure > there isn't a more straightforward way of accomplishing your goal?
What is your perl -V output?
On Tue Jun 27 20:52:10 2017, SPROUT wrote: Show quoted text
> On Tue Jun 27 18:48:24 2017, ETHER wrote:
> > Tests are failing thusly: > > > > PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "- > > MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, > > 'blib/lib', 'blib/arch')" t/*.t > > t/01_about_verbose.t .... 1/2 Not a GLOB reference at > > t/01_about_verbose.t line 47. > > t/01_about_verbose.t .... Dubious, test returned 255 (wstat 65280, > > 0xff00) > > Failed 1/2 subtests > > t/10_determined_test.t .. ok > > > > Test Summary Report > > ------------------- > > t/01_about_verbose.t (Wstat: 65280 Tests: 1 Failed: 0) > > Non-zero exit status: 255 > > Parse errors: Bad plan. You planned 2 tests but ran 1. > > Files=2, Tests=14, 38 wallclock secs ( 0.02 usr 0.00 sys + 0.06 cusr > > 0.00 csys = 0.08 CPU) > > Result: FAIL > > Failed 1/2 test programs. 0/14 subtests failed. > > make: *** [test_dynamic] Error 255 > > > > > > I'm not really sure what the intent is in t/01_about_verbose.t but > > it's doing some mighty strange things with the callstack. Are you sure > > there isn't a more straightforward way of accomplishing your goal?
> > What is your perl -V output?
Incidentally, this works fine for me on 5.22.1 and 5.27.1.
On Tue Jun 27 18:48:24 2017, ETHER wrote: Show quoted text
> Tests are failing thusly: > > PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "- > MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, > 'blib/lib', 'blib/arch')" t/*.t > t/01_about_verbose.t .... 1/2 Not a GLOB reference at > t/01_about_verbose.t line 47. > t/01_about_verbose.t .... Dubious, test returned 255 (wstat 65280, > 0xff00) > Failed 1/2 subtests > t/10_determined_test.t .. ok > > Test Summary Report > ------------------- > t/01_about_verbose.t (Wstat: 65280 Tests: 1 Failed: 0) > Non-zero exit status: 255 > Parse errors: Bad plan. You planned 2 tests but ran 1. > Files=2, Tests=14, 38 wallclock secs ( 0.02 usr 0.00 sys + 0.06 cusr > 0.00 csys = 0.08 CPU) > Result: FAIL > Failed 1/2 test programs. 0/14 subtests failed. > make: *** [test_dynamic] Error 255 > > > I'm not really sure what the intent is in t/01_about_verbose.t but > it's doing some mighty strange things with the callstack. Are you sure > there isn't a more straightforward way of accomplishing your goal?
It’s probably choking on the optimisation that lets subs be stored directly in stashes without needing a glob. Whether it fails probably depends on what versions of modules you have installed. Does this patch make it pass?
Subject: open_3aMyBEwl.txt
diff -rup LWP-UserAgent-Determined-1.07-0-orig/t/01_about_verbose.t LWP-UserAgent-Determined-1.07-0/t/01_about_verbose.t --- LWP-UserAgent-Determined-1.07-0-orig/t/01_about_verbose.t 2017-06-27 22:01:24.000000000 -0700 +++ LWP-UserAgent-Determined-1.07-0/t/01_about_verbose.t 2017-06-27 22:03:39.000000000 -0700 @@ -46,7 +46,7 @@ use LWP; $v{$this} = ${$this . '::VERSION'} } elsif( defined *{$this . '::ISA'} or defined &{$this . '::import'} - or ($this ne '' and grep defined *{$_}{'CODE'}, values %{$this . "::"}) + or ($this ne '' and grep defined $_ && (ref ne 'GLOB' || defined *{$_}{'CODE'}), values %{$this . "::"}) # If it has an ISA, an import, or any subs... ) { # It's a class/module with no version.
I've reproduced this on both 5.22.1 (threaded, ubuntu linux) and perl 5.14.2 (threaded, ubuntu linux). On 2017-06-27 22:04:47, SPROUT wrote: Show quoted text
> It’s probably choking on the optimisation that lets subs be stored > directly in stashes without needing a glob. Whether it fails probably > depends on what versions of modules you have installed. >
at the same time, these distributions got upgraded, so one of these might be the real culprit: Net-HTTP 6.09 => 6.16 libwww-perl 6.13 => 6.26 HTTP-Cookies 6.01 => 6.03 HTTP-Message 6.11 => 6.13 LWP-Protocol-https 6.06 => 6.07 when I add this line to t/01_about_verbose.t line 47, I get: : [vagrant@vagrant-sandbox 1498666584.21934/LWP-UserAgent-Determined-1.07]$; perl -Mblib t/01_about_verbose.t 1..2 # Running under perl version 5.014002 for linux # Current time local: Wed Jun 28 09:17:34 2017 # Current time GMT: Wed Jun 28 16:17:34 2017 # Using Test.pm version 1.25_02 ok 1 ### examining constant ### examining strict ### examining Cwd ### examining Fcntl ### examining Storable ### examining Test ### examining overload ### examining Exporter ### examining warnings ### examining blib ### examining LWP ### examining vars ### examining XSLoader ### examining AutoLoader ### examining Carp ### examining base ### examining URI ### examining Log::Agent ### examining Sub::Util ### examining File::Spec ### examining List::Util ### examining Exporter::Heavy ### examining HTTP::Request ### examining HTTP::Message ### examining HTTP::Headers ### examining HTTP::Response ### examining HTTP::Status ### examining HTTP::Date ### examining warnings::register ### examining Time::Local ### examining Try::Tiny ### examining LWP::Protocol ### examining LWP::MemberMixin ### examining LWP::UserAgent ### examining Scalar::Util ### examining URI::Escape ### examining File::Spec::Unix Not a GLOB reference at t/01_about_verbose.t line 48. File::Spec::Unix is version 3.62 -- but perhaps this is a red herring? Show quoted text
> Does this patch make it pass?
Yes it does (and thank you! I will apply this patch to get my production systems working again): : [vagrant@vagrant-sandbox 1498666584.21934/LWP-UserAgent-Determined-1.07]$; perl -Mblib t/01_about_verbose.t 1..2 # Running under perl version 5.014002 for linux # Current time local: Wed Jun 28 09:20:30 2017 # Current time GMT: Wed Jun 28 16:20:30 2017 # Using Test.pm version 1.25_02 ok 1 ### examining constant ### examining strict ### examining Cwd ### examining Fcntl ### examining Storable ### examining Test ### examining overload ### examining Exporter ### examining warnings ### examining blib ### examining LWP ### examining vars ### examining XSLoader ### examining AutoLoader ### examining Carp ### examining base ### examining URI ### examining Log::Agent ### examining Sub::Util ### examining File::Spec ### examining List::Util ### examining Exporter::Heavy ### examining HTTP::Request ### examining HTTP::Message ### examining HTTP::Headers ### examining HTTP::Response ### examining HTTP::Status ### examining HTTP::Date ### examining warnings::register ### examining Time::Local ### examining Try::Tiny ### examining LWP::Protocol ### examining LWP::MemberMixin ### examining LWP::UserAgent ### examining Scalar::Util ### examining URI::Escape ### examining File::Spec::Unix ### examining LWP::UserAgent::Determined # # #Perl v5.14.2 under linux # Modules in memory: # Algorithm; # Algorithm::Diff; # AutoLoader v5.71; # base v2.18; # blib v1.06; # Carp v1.38; # Config; # constant v1.21; # CORE; # Cwd v3.62; # DB; # Dos; # DynaLoader; # Encode; # EPOC; # Exporter v5.70; # Exporter::Heavy v5.70; # ExtUtils; # ExtUtils::Constant; # ExtUtils::Constant::ProxySubs; # Fcntl v1.11; # fields; # File; # File::Spec v3.62; # File::Spec::Unix v3.62; # File::Temp; # HTML; # HTML::Parser; # HTTP; # HTTP::Date v6.02; # HTTP::Headers v6.13; # HTTP::Headers::Util; # HTTP::Message v6.13; # HTTP::Request v6.13; # HTTP::Request::Common; # HTTP::Response v6.13; # HTTP::Status v6.13; # Internals; # IO; # IO::Compress; # IO::Compress::Bzip2; # IO::Compress::Deflate; # IO::Compress::Gzip; # IO::File; # IO::HTML; # IO::Uncompress; # IO::Uncompress::Bunzip2; # IO::Uncompress::Gunzip; # IO::Uncompress::Inflate; # IO::Uncompress::RawInflate; # List; # List::Util v1.45; # List::Util::_Pair; # Log; # Log::Agent v0.307; # Log::Agent::Formatting; # Log::Agent::Message; # Log::Agent::Priorities; # LWP v6.26; # LWP::MemberMixin v6.26; # LWP::Protocol v6.26; # LWP::UserAgent v6.26; # LWP::UserAgent::Determined v1.07; # MacPerl; # MIME; # MIME::Base64; # MIME::QuotedPrint; # mro; # overload v1.13; # PerlIO; # PerlIO::Layer; # re; # Regexp; # Scalar; # Scalar::Util v1.45; # Storable v2.51; # strict v1.04; # Sub; # Sub::Name; # Sub::Util v1.45; # Test v1.25_02; # threads; # Time; # Time::Local v1.2300; # Time::Zone; # Try; # Try::Tiny v0.28; # Try::Tiny::ScopeGuard; # UNIVERSAL; # URI v1.71; # URI::Escape v3.31; # utf8; # vars v1.02; # version; # VMS; # VMS::Feature; # VMS::Filespec; # warnings v1.12; # warnings::register v1.02; # Win32; # XSLoader v0.22; #[at Wed Jun 28 16:20:30 2017 (local) / Wed Jun 28 09:20:30 2017 (GMT)] # Running in an ASCII world. # # @INC: # [/home/vagrant/.cpanm/work/1498666584.21934/LWP-UserAgent-Determined-1.07/blib/arch] # [/home/vagrant/.cpanm/work/1498666584.21934/LWP-UserAgent-Determined-1.07/blib/lib] # [/home/vagrant/CE/lib] # [/home/vagrant/CE/extlib/lib/perl5/5.14.2/x86_64-linux-gnu-thread-multi] # [/home/vagrant/CE/extlib/lib/perl5/5.14.2] # [/home/vagrant/CE/extlib/lib/perl5/x86_64-linux-gnu-thread-multi] # [/home/vagrant/CE/extlib/lib/perl5] # [/home/vagrant/CE/tlib] # [/etc/perl] # [/usr/local/lib/perl/5.14.2] # [/usr/local/share/perl/5.14.2] # [/usr/lib/perl5] # [/usr/share/perl5] # [/usr/lib/perl/5.14] # [/usr/share/perl/5.14] # [/usr/local/lib/site_perl] # [.] # # # %INC: # [/usr/share/perl5/auto/Log/Agent/autosplit.ix] = [/usr/share/perl5/auto/Log/Agent/autosplit.ix] # [/usr/share/perl5/auto/Log/Agent/Priorities/autosplit.ix] = [/usr/share/perl5/auto/Log/Agent/Priorities/autosplit.ix] # [AutoLoader.pm] = [/usr/share/perl/5.14/AutoLoader.pm] # [base.pm] = [/home/vagrant/CE/extlib/lib/perl5/base.pm] # [blib.pm] = [/usr/share/perl/5.14/blib.pm] # [Carp.pm] = [/home/vagrant/CE/extlib/lib/perl5/Carp.pm] # [Config.pm] = [/usr/lib/perl/5.14/Config.pm] # [constant.pm] = [/usr/share/perl/5.14/constant.pm] # [Cwd.pm] = [/home/vagrant/CE/extlib/lib/perl5/x86_64-linux-gnu-thread-multi/Cwd.pm] # [Exporter.pm] = [/home/vagrant/CE/extlib/lib/perl5/Exporter.pm] # [Exporter/Heavy.pm] = [/home/vagrant/CE/extlib/lib/perl5/Exporter/Heavy.pm] # [Fcntl.pm] = [/usr/lib/perl/5.14/Fcntl.pm] # [File/Spec.pm] = [/home/vagrant/CE/extlib/lib/perl5/x86_64-linux-gnu-thread-multi/File/Spec.pm] # [File/Spec/Unix.pm] = [/home/vagrant/CE/extlib/lib/perl5/x86_64-linux-gnu-thread-multi/File/Spec/Unix.pm] # [HTTP/Date.pm] = [/home/vagrant/CE/extlib/lib/perl5/HTTP/Date.pm] # [HTTP/Headers.pm] = [/home/vagrant/CE/extlib/lib/perl5/HTTP/Headers.pm] # [HTTP/Message.pm] = [/home/vagrant/CE/extlib/lib/perl5/HTTP/Message.pm] # [HTTP/Request.pm] = [/home/vagrant/CE/extlib/lib/perl5/HTTP/Request.pm] # [HTTP/Response.pm] = [/home/vagrant/CE/extlib/lib/perl5/HTTP/Response.pm] # [HTTP/Status.pm] = [/home/vagrant/CE/extlib/lib/perl5/HTTP/Status.pm] # [List/Util.pm] = [/home/vagrant/CE/extlib/lib/perl5/x86_64-linux-gnu-thread-multi/List/Util.pm] # [Log/Agent.pm] = [/usr/share/perl5/Log/Agent.pm] # [Log/Agent/Formatting.pm] = [/usr/share/perl5/Log/Agent/Formatting.pm] # [Log/Agent/Message.pm] = [/usr/share/perl5/Log/Agent/Message.pm] # [Log/Agent/Priorities.pm] = [/usr/share/perl5/Log/Agent/Priorities.pm] # [LWP.pm] = [/home/vagrant/CE/extlib/lib/perl5/LWP.pm] # [LWP/MemberMixin.pm] = [/home/vagrant/CE/extlib/lib/perl5/LWP/MemberMixin.pm] # [LWP/Protocol.pm] = [/home/vagrant/CE/extlib/lib/perl5/LWP/Protocol.pm] # [LWP/UserAgent.pm] = [/home/vagrant/CE/extlib/lib/perl5/LWP/UserAgent.pm] # [LWP/UserAgent/Determined.pm] = [/home/vagrant/.cpanm/work/1498666584.21934/LWP-UserAgent-Determined-1.07/blib/lib/LWP/UserAgent/Determined.pm] # [overload.pm] = [/usr/share/perl/5.14/overload.pm] # [Scalar/Util.pm] = [/home/vagrant/CE/extlib/lib/perl5/x86_64-linux-gnu-thread-multi/Scalar/Util.pm] # [Storable.pm] = [/home/vagrant/CE/extlib/lib/perl5/x86_64-linux-gnu-thread-multi/Storable.pm] # [strict.pm] = [/usr/share/perl/5.14/strict.pm] # [Sub/Util.pm] = [/home/vagrant/CE/extlib/lib/perl5/x86_64-linux-gnu-thread-multi/Sub/Util.pm] # [Test.pm] = [/usr/share/perl/5.14/Test.pm] # [Time/Local.pm] = [/home/vagrant/CE/extlib/lib/perl5/Time/Local.pm] # [Try/Tiny.pm] = [/home/vagrant/CE/extlib/lib/perl5/Try/Tiny.pm] # [URI.pm] = [/home/vagrant/CE/extlib/lib/perl5/URI.pm] # [URI/Escape.pm] = [/home/vagrant/CE/extlib/lib/perl5/URI/Escape.pm] # [vars.pm] = [/usr/share/perl/5.14/vars.pm] # [warnings.pm] = [/usr/share/perl/5.14/warnings.pm] # [warnings/register.pm] = [/usr/share/perl/5.14/warnings/register.pm] # [XSLoader.pm] = [/home/vagrant/CE/extlib/lib/perl5/x86_64-linux-gnu-thread-multi/XSLoader.pm] ok 2
On 2017-06-28 09:23:40, ETHER wrote: Show quoted text
> when I add this line to t/01_about_verbose.t line 47, I get:
sorry, I lost the pasted line.. it was: print STDERR "### examining $this\n";
The use of Try::Tiny causes this test to break. cwhitener@lappy:~/chase/LWP-UserAgent-Determined-1.07$ make test PERL_DL_NONLAZY=1 "/home/cwhitener/perl5/perlbrew/perls/perl-5.14.4/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-report-prereqs.t ... # # Versions for all modules listed in MYMETA.json (including optional ones): # # === Configure Requires === # # Module Want Have # ------------------- ---- ---- # ExtUtils::MakeMaker any 7.30 # # === Build Requires === # # Module Want Have # ------------------- ---- ---- # ExtUtils::MakeMaker any 7.30 # # === Runtime Requires === # # Module Want Have # ------ ---- ---- # LWP any 6.16 # t/00-report-prereqs.t ... ok t/01_about_verbose.t .... ok t/10_determined_test.t .. ok All tests successful. Files=3, Tests=16, 38 wallclock secs ( 0.02 usr 0.00 sys + 0.10 cusr 0.01 csys = 0.13 CPU) Result: PASS cwhitener@lappy:~/chase/LWP-UserAgent-Determined-1.07$ perl -MTry::Tiny -Ilib t/01_about_verbose.t 1..2 # Running under perl version 5.014004 for linux # Current time local: Wed Jun 28 22:42:38 2017 # Current time GMT: Thu Jun 29 02:42:38 2017 # Using Test.pm version 1.26 ok 1 Not a GLOB reference at t/01_about_verbose.t line 47. cwhitener@lappy:~/chase/LWP-UserAgent-Determined-1.07$