Subject: | horrible non-killable test process when not enough disk space |
rob@nightshade ~$ cpanm --look File::ReadBackwards
--> Working on File::ReadBackwards
Fetching http://search.cpan.org/CPAN/authors/id/U/UR/URI/File-
ReadBackwards-1.04.tar.gz ... OK
Entering /home/rob/.cpanm/work/1306875756.2886/File-ReadBackwards-1.04
with /bin/bash
rob@nightshade File-ReadBackwards-1.04$ df
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 71G 66G 903M 99% /
none 1.5G 320K 1.5G 1% /dev
none 1.5G 2.1M 1.5G 1% /dev/shm
none 1.5G 224K 1.5G 1% /var/run
none 1.5G 0 1.5G 0% /var/lock
/home/rob/.Private 71G 66G 903M 99% /home/rob
rob@nightshade File-ReadBackwards-1.04$ perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for File::ReadBackwards
rob@nightshade File-ReadBackwards-1.04$ make test
cp ReadBackwards.pm blib/lib/File/ReadBackwards.pm
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/bw.t .......... ok
t/large_file.t ..
and hangs. Looking at the processes:
rob@nightshade ~$ ps aux | grep perl
rob 2886 0.0 0.3 15144 11548 pts/0 S 14:02 0:00
/usr/bin/perl /home/rob/cpan-lib/bin/cpanm --look File::ReadBackwards
rob 2969 0.0 0.0 1900 512 pts/0 S+ 14:02 0:00 /bin/sh
-c PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
rob 2970 0.0 0.1 9448 5764 pts/0 S+ 14:02 0:00
/usr/bin/perl -MExtUtils::Command::MM -e test_harness(0, 'blib/lib',
'blib/arch') t/bw.t t/large_file.t
rob 2974 0.0 0.1 6876 3316 pts/0 S+ 14:02 0:00
/usr/bin/perl -w t/large_file.t
rob 2975 92.1 0.0 5664 1440 pts/0 R+ 14:02 3:50
/usr/bin/perl -e open(BIG, ">bw.data");?seek(BIG, 5_000_000_000, 0);?
print BIG "3rd from last line?2nd from last?last line?" ;?exit 0;?
In there, it's the "open(BIG" one-liner that's doing it. And it's using
100% CPU. My lap is getting hot. Try to kill -9 it. Over and over.
Does not die. Only way to kill it that I've found is to reboot.
No fun!