develooper Front page | perl.cpan.testers.discuss | Postings from August 2014

How do you handle a perl process that never seems to exit?

Thread Next
From:
Dave Horner
Date:
August 4, 2014 21:19
Subject:
How do you handle a perl process that never seems to exit?
Message ID:
CAFXx0d5X8yT1DW5Kay-1CzZSrMr1Oa-BAR-Vu+DeW1UcxDbHDQ@mail.gmail.com
Hanging perl process during test of Farabi and others.

running cpan from cmd.exe
 - cpan shell -- CPAN exploration and modules installation (v2.05)
cpan> install Farabi
Running install for module 'Farabi'
Checksum for
C:\strawberry\cpan\sources\authors\id\A\AZ\AZAWAWI\Farabi-0.47.tar.gz ok
Configuring A/AZ/AZAWAWI/Farabi-0.47.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a dmake-style Makefile
Writing Makefile for Farabi
Writing MYMETA.yml and MYMETA.json
(C:\strawberry\perl\bin\perl.exe Makefile.PL exited with 0)
CPAN::Reporter: Makefile.PL result is 'pass', No errors.
  AZAWAWI/Farabi-0.47.tar.gz
  C:\strawberry\perl\bin\perl.exe Makefile.PL -- OK
Running make for A/AZ/AZAWAWI/Farabi-0.47.tar.gz
... many cp statements ...
C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e cp -- bin/farabi
blib\script\farabi
pl2bat.bat blib\script\farabi
(C:\strawberry\c\bin\dmake.exe exited with 0)
CPAN::Reporter: dmake result is 'pass', No errors.
  AZAWAWI/Farabi-0.47.tar.gz
  C:\strawberry\c\bin\dmake.exe -- OK
Running make test
C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-MTest::Harness"
"-e" "undef *Test::Harness::Switches; test_harness(0,
 'blib\lib', 'blib\arch')" t/*.t
t/00-compile.t ....... ok
t/01-basic.t .........
-----------------------------------------

The process never returns. Here is a screen capture of the process tree:
http://dave.thehorners.com/images/stories/perl/locking_perl01.png
you can see the high cpu usage.  I used procexplorer for this; which has a
thread stack interrogation feature.

saving cpan-testers-discuss the possibly extraneous details;
the stack info can be obtained here:
http://dave.thehorners.com/images/stories/perl/locking_perl01_stack01.txt
http://dave.thehorners.com/images/stories/perl/locking_perl01_stack02.txt
http://dave.thehorners.com/images/stories/perl/locking_perl01_stack03.txt
http://dave.thehorners.com/images/stories/perl/locking_perl01_stack04.txt
http://dave.thehorners.com/images/stories/perl/locking_perl01_stack05.txt
http://dave.thehorners.com/images/stories/perl/locking_perl01_stack06.txt

I'm not sure anyone cares to look at the stack info; I'm emailing to see
what other people do when confronted with similar issues? I did capture
stack info a few times, they aren't in any order and I decided when I saw
Perl_amagic_call+0x48, I thought good a time as any to quit.

Anyways, when smoking and running scripts with perl on windows sometimes I
come to my unattended automated machine locked and blocking.  No fun.
I kill the most childish process and it continues; failed.

--------------------------------------------
Dubious, test returned 1 (wstat 256, 0x100)
Failed 3/3 subtests
t/02-minimum-perl.t .. ok

Test Summary Report
-------------------
t/01-basic.t       (Wstat: 256 Tests: 0 Failed: 0)
  Non-zero exit status: 1
  Parse errors: Bad plan.  You planned 3 tests but ran 0.
Files=3, Tests=10, 21211 wallclock secs ( 0.02 usr +  0.05 sys =  0.06 CPU)
Result: FAIL
Failed 1/3 test programs. 0/10 subtests failed.
dmake.exe:  Error code 255, while making 'test_dynamic'
(C:\strawberry\c\bin\dmake.exe test exited with 65280)
CPAN::Reporter: Test result is 'fail', One or more tests failed.
CPAN::Reporter: preparing a CPAN Testers report for Farabi-0.47

CPAN::Reporter: this appears to be a duplicate report for the test phase:
FAIL Farabi-0.47 MSWin32-x64-multi-thread 6.2

Test report will not be sent.

  AZAWAWI/Farabi-0.47.tar.gz
  C:\strawberry\c\bin\dmake.exe test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports AZAWAWI/Farabi-0.47.tar.gz
Stopping: 'install' failed for 'Farabi'.
Failed during this command:
 AZAWAWI/Farabi-0.47.tar.gz                   : make_test NO


---01-basic.t from Farabi
use Mojo::Base-strict;

use Test::More tests => 3;

use Farabi;
use Test::Mojo;

my $t = Test::Mojo->new( Farabi->new );

$t->get_ok('/')->status_is(200)->content_like(qr/Farabi/);
------------

The issue is consistently reproducible; locking->failure.  I'd love to get
it working on windows.

Cheers!
--dave
http://dave.thehorners.com/tech-talk/random-tech/522-great-lodge-of-the-royal-order-of-yaks-yak-shaving

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About