Skip Menu |

This queue is for tickets about the WWW-Mechanize-Shell CPAN distribution.

Report information
The Basics
Id: 29455
Status: resolved
Priority: 0/
Queue: WWW-Mechanize-Shell

People
Owner: Nobody in particular
Requestors: dpkg_deb [...] yahoo.com
Cc:
AdminCc:

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



Subject: W::M::Shell not installing
Date: Tue, 18 Sep 2007 02:26:11 -0700 (PDT)
To: bugs-WWW-Mechanize-Shell [...] rt.cpan.org
From: John Harrison <dpkg_deb [...] yahoo.com>
Hi Max, serf 2007-09-18 04:04:34-04 Corion I'm trying to install W::M::Shell on a Debian image under VMware Player at the moment and it's hanging (hung all night) at t/24-source-file......................ok 1/6 - is that something you've seen before? Corion 2007-09-18 04:09:09-04 serf: Hmmm ... Doesn't ring a bell - if you have to kill it, can you try to reproduce that test? The other tests have basically the same prerequisites so I think it's a fluke failure, but even that shouldn't happen ;) Corion 2007-09-18 04:10:47-04 Hmmm.No - actually, it seems the file to be tested, t/source.mech, is not in the distribution. I wonder how that test worked for anybody else ... I have to look at that failure(and looking at the other failures, a lot of them didn't reach my inbox) serf 2007-09-18 04:16:20-04 Corion: oh dear... well I'm glad I was able to let you know - is there anything you need me to find out for you or send you? - Yes I can reproduce it - I tried to install it about 15 times last night! :-| Corion 2007-09-18 04:18:09-04 serf: If you can run the tests manually and mail me the output (corion@cpan.org or bugs-WWW-Mechanize-Shell@rt.cpan.org), that'd be great. The command line should be perl -Ilib -w t/24-* If I run that I get: root@evom:~/.cpan/build/WWW-Mechanize-Shell-0.44-aIcerj # perl -Ilib -w t/24-source-file.t 1..6 ok 1 - use WWW::Mechanize::Shell; ok 2 - Retrieved content ok 3 - Sourcing a file works ok 4 - No warnings ok 5 - Warning for nonexistent files works ok 6 - No warnings and it just hangs there. This is the whole output of the attempted build: CPAN: File::Temp loaded ok (v0.18) CPAN.pm: Going to build C/CO/CORION/WWW-Mechanize-Shell-0.44.tar.gz Test::Inline 0.15_001 is nice for testing the examples, but not necessary Checking if your kit is complete... Looks good Writing Makefile for WWW::Mechanize::Shell CPAN: YAML loaded ok (v0.65) cp lib/HTML/Display/Win32.pm blib/lib/HTML/Display/Win32.pm cp lib/HTML/Display/Debian.pm blib/lib/HTML/Display/Debian.pm cp lib/HTML/Display/Mozilla.pm blib/lib/HTML/Display/Mozilla.pm cp lib/HTML/Display/OSX/Safari.pm blib/lib/HTML/Display/OSX/Safari.pm cp lib/HTML/Display/Win32/OLE.pm blib/lib/HTML/Display/Win32/OLE.pm cp lib/WWW/Mechanize/Shell.pm blib/lib/WWW/Mechanize/Shell.pm cp lib/HTML/Display/Opera.pm blib/lib/HTML/Display/Opera.pm cp lib/HTML/Display/Galeon.pm blib/lib/HTML/Display/Galeon.pm cp lib/HTML/Display/OSX.pm blib/lib/HTML/Display/OSX.pm cp lib/HTML/Display/Dump.pm blib/lib/HTML/Display/Dump.pm cp lib/HTML/Display.pm blib/lib/HTML/Display.pm cp lib/HTML/Display/OSX/Camino.pm blib/lib/HTML/Display/OSX/Camino.pm cp lib/HTML/Display/Win32/IE.pm blib/lib/HTML/Display/Win32/IE.pm cp lib/HTML/Display/TempFile.pm blib/lib/HTML/Display/TempFile.pm cp lib/HTML/Display/Common.pm blib/lib/HTML/Display/Common.pm cp lib/HTML/Display/Phoenix.pm blib/lib/HTML/Display/Phoenix.pm Manifying blib/man3/HTML::Display::Debian.3pm Manifying blib/man3/HTML::Display::Win32.3pm Manifying blib/man3/HTML::Display::Mozilla.3pm Manifying blib/man3/HTML::Display::OSX::Safari.3pm Manifying blib/man3/HTML::Display::Win32::OLE.3pm Manifying blib/man3/HTML::Display::Opera.3pm Manifying blib/man3/WWW::Mechanize::Shell.3pm Manifying blib/man3/HTML::Display::OSX.3pm Manifying blib/man3/HTML::Display::Galeon.3pm Manifying blib/man3/HTML::Display.3pm Manifying blib/man3/HTML::Display::Dump.3pm Manifying blib/man3/HTML::Display::OSX::Camino.3pm Manifying blib/man3/HTML::Display::Win32::IE.3pm Manifying blib/man3/HTML::Display::Common.3pm Manifying blib/man3/HTML::Display::TempFile.3pm Manifying blib/man3/HTML::Display::Phoenix.3pm CORION/WWW-Mechanize-Shell-0.44.tar.gz /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-HTML-Display-use.................ok t/00-use..............................ok t/00a-Term-Shell-catch-smry...........ok t/01-fallback-Win32-OLE...............ok 3/3 skipped: various reasons t/01-HTML-Display-TempFile-share......ok t/02-fallback-HTML-TableExtract.......ok 4/4 skipped: various reasons t/02-fallback-Pod-Constant............ok 4/4 skipped: various reasons t/03-documentation....................ok 119/119 skipped: various reasons t/04-history-invariant................ok t/05-options..........................ok t/06-valid-output.....................ok 46/47 skipped: various reasons t/07-history-items....................ok 23/23 skipped: various reasons t/08-unknown-command..................ok t/09-invalid-filename.................ok t/10-nonexistent-host.................ok t/11-browse-without-request...........ok t/12-comments.........................ok t/13-command-au.......................ok t/14-command-identity.................ok 1/353# Loading HTTP::Daemon # Spawning local test server # on port 1687 t/14-command-identity.................ok t/15-history-save.....................ok t/16-form-fillout.....................ok t/17-eval-multiline...................ok t/18-browser-autosync.................ok 1/8Useless content call in void context at /usr/local/share/perl/5.8.8/LWP/Simple.pm line 150 Useless content call in void context at /usr/local/share/perl/5.8.8/LWP/Simple.pm line 150 Useless content call in void context at /usr/local/share/perl/5.8.8/LWP/Simple.pm line 150 Useless content call in void context at /usr/local/share/perl/5.8.8/LWP/Simple.pm line 150 Useless content call in void context at /usr/local/share/perl/5.8.8/LWP/Simple.pm line 150 Useless content call in void context at /usr/local/share/perl/5.8.8/LWP/Simple.pm line 150 t/18-browser-autosync.................ok 8/8Useless content call in void context at /usr/local/share/perl/5.8.8/LWP/Simple.pm line 150 t/18-browser-autosync.................ok t/19-value-multi......................ok t/20-restart-without-script...........ok t/21-autofill-re......................ok t/22-complete-command.................ok t/23-check-dumpresponses..............ok t/24-source-file......................ok 1/6 the other thing I've noticed is that normally it hangs at: t/24-source-file......................ok 1/6 so when I [Ctrl-C] I end up with: t/24-source-file......................ok 1/6make: *** wait: No child processes. Stop. make: *** Waiting for unfinished jobs.... make: *** wait: No child processes. Stop. CORION/WWW-Mechanize-Shell-0.44.tar.gz /usr/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force Failed during this command: CORION/WWW-Mechanize-Shell-0.44.tar.gz : make_test NO but sometimes it hangs at: t/24-source-file......................ok 2/6 so when I [Ctrl-C] I end up with: t/24-source-file......................ok 2/6make: *** wait: No child processes. Stop. make: *** Waiting for unfinished jobs.... make: *** wait: No child processes. Stop. CORION/WWW-Mechanize-Shell-0.44.tar.gz /usr/bin/make test -- NOT OK Caught SIGINT, trying to continue I hope this helps. Kind regards, John serf@perlmonks PS: If you want to test it under the same environment, I'm using the Debian Etch image from http://www.visoracle.com/download/debian/ with http://www.vmware.com/download/player/ ( VMware Player ) Show quoted text
____________________________________________________________________________________ Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. http://mobile.yahoo.com/go?refer=1GNXIC
From: ntyni [...] iki.fi
On Tue Sep 18 05:30:17 2007, dpkg_deb@yahoo.com wrote: Show quoted text
> root@evom:~/.cpan/build/WWW-Mechanize-Shell-0.44-aIcerj > # perl -Ilib -w t/24-source-file.t > 1..6 > ok 1 - use WWW::Mechanize::Shell; > ok 2 - Retrieved content > ok 3 - Sourcing a file works > ok 4 - No warnings > ok 5 - Warning for nonexistent files works > ok 6 - No warnings > > and it just hangs there.
Hi, this is also Debian bug #444634, http://bugs.debian.org/444634 . It happens when $ENV{http_proxy} is set and the local host is unresolvable or unreachable. It looks like http_proxy is unset independently in almost all the test scripts, with the exception of t/24-source-file.t. The test server then doesn't get the 'GET /quit_server' request and never terminates, while the test script hangs waiting for the child to exit. So the fix is to add delete @ENV{qw(HTTP_PROXY http_proxy)}; into t/24-source-file.t as well, or possibly unset it for the whole test run somehow. Show quoted text
> t/18-browser-autosync.................ok 1/8Useless > content call in void context at > /usr/local/share/perl/5.8.8/LWP/Simple.pm line 150
These come from the same code path (ie. when http_proxy is set), because Test::HTTP::LocalServer::stop() calls LWP::Simple::get() in a void context. I suppose checking the result would be a good idea. Thanks for your work on WWW::Mechanize::Shell. Cheers, -- Niko Tyni (Debian Perl Group) ntyni@iki.fi
Fixed with 0.45