Re: Bundle::CPAN install error



On 9/27/07, Bobby <bobby@xxxxxxxxxxxxxx> wrote:

for my $m (@m) {
local $^W = 0;
eval "require $m";
ok($m->VERSION >= 1.76, sprintf "Found version > 1.76 for %20s: %s", $m,
$m->VERSION);
}

Somewhere in this loop is where I suspect it's getting stuck. But the
code's author has turned off warnings by setting $^W to 0, and that
may be hiding useful information from us.

I think you'll need to make a modified copy of that code and run it
from the command line. (Better yet, step through it in the debugger.)
I'd start by replacing that whole loop with something like this:

use warnings; use strict; # just in case
$| = 1; # don't let data sit in the output buffer
for my $m (@m) {
print "## About to require '$m'\n";
eval "require $m";
print "## Warning: $@" if $@;
ok($m->VERSION >= 1.76,
sprintf "Found version > 1.76 for %20s: %s",
$m, $m->VERSION);
}

Since it's getting stuck after one successful test, my guess is that
it loads one file, but there's something going wrong when it tries to
load the second. Maybe this will tell us an error message, as well as
which file it's getting stuck trying to load.

When you want to run your test script from the command line, you will
need to use some special options, so as to load the new module being
tested and not some old version of the module. I think something like
this is the command to use; remove the '-d' if you don't want to use
the debugger, and change filename.t to the name of your copy of the
test script:

PERL_DL_NONLAZY=1 /usr/bin/perl5.8.8 -d -I'blib/lib' -I'blib/arch'
filename.t

Does this get you any closer to finding the bug?

Cheers!

--Tom Phoenix
Stonehenge Perl Training
.



Relevant Pages

  • Re: Batch script for maintaing remote services
    ... I want to kill this service before sc command go on stopping ... Does the loop breaks when it finds "stopped" status for a particular ... But how will I kill this service if it gets stuck in ... command parameter, makes sure that next service is only ...
    (microsoft.public.windowsxp.general)
  • Re: locked thread - how to investigate?
    ... With truss is there any way to focus on a ... the threads are being consumed which causes more consumption of the ... Perhaps you mean a thread stuck in a CPU loop? ...
    (comp.unix.solaris)
  • Re: Deep question
    ... What is the name of the ship stuck in the mud? ... 2200 tons of nickel pigs and when it got stuck nickel was worthless. ... I posted the load of coal 10000 tons busted on a shore too. ...
    (sci.physics)
  • Re: Error Handling not Working ASP.NET
    ... Your code could easily get stuck in a loop in the error handler... ... any unhandled exception goes to Application_Error, ...
    (microsoft.public.dotnet.framework.aspnet)
  • problem with xp-tablet dotnet application
    ... compact-part). ... When I put a messagebox to see where ge gets stuck the dialog appears ... I looks like he gets into a wait loop in the onPaint ... but I don't have a onPaint handler in that Form. ...
    (microsoft.public.dotnet.languages.csharp)