Skip Menu |

This queue is for tickets about the Net-IMAP-Simple CPAN distribution.

Report information
The Basics
Id: 80215
Status: resolved
Worked: 15 min
Priority: 0/
Queue: Net-IMAP-Simple

People
Owner: Nobody in particular
Requestors: chisel [...] chizography.net
Cc:
AdminCc:

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



Subject: t/07_select_and_examine.t: Parse errors: Bad plan. You planned 23 tests but ran 2.
The t/07_select_and_examine.t test fails; it also seems to leave a server/process running: [4915][c.wright@xtdc1-chz:Net-IMAP-Simple-1.2034][CPAN-updates⚡]➔ ps auxw |grep [N]et::IMAP::Server [4916][c.wright@xtdc1-chz:Net-IMAP-Simple-1.2034][CPAN-updates⚡]➔ make test PERL_DL_NONLAZY=1 /opt/xt/xt-perl/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/01_load.t .......................... ok t/07_select_and_examine.t ............ Failed 21/23 subtests * OK inc/Net/IMAP/Server.pm (1.27) t/08_selectalot.t .................... ok t/09_concurrent_connections_new.t .... ok t/10_list.t .......................... ok t/11_mailboxes.t ..................... ok t/15_flags.t ......................... ok t/16_exotic_flags.t .................. ok t/17_status_and_select.t ............. ok t/19_readline_callback.t ............. ok t/22_copy_multiple.t ................. ok t/22_uidcopy_multiple.t .............. ok t/23_delete_multiple.t ............... ok t/35_imap_results_in_message_body.t .. ok t/42_preauth_with_command.t .......... ok t/45_search.t ........................ ok t/50_body_summary.t .................. ok t/55_uid_stuff.t ..................... ok t/60_fetch_with_grammar.t ............ ok t/70_list2range.t .................... ok t/75_back_and_forth.t ................ ok t/critic.t ........................... ok t/pod.t .............................. ok t/pod_coverage.t ..................... ok Test Summary Report ------------------- t/07_select_and_examine.t (Wstat: 0 Tests: 2 Failed: 0) Parse errors: Bad plan. You planned 23 tests but ran 2. Files=24, Tests=25, 8 wallclock secs ( 0.07 usr 0.03 sys + 0.19 cusr 0.26 csys = 0.55 CPU) Result: FAIL Failed 1/24 test programs. 0/25 subtests failed. make: *** [test_dynamic] Error 255 [4917][c.wright@xtdc1-chz:Net-IMAP-Simple-1.2034][CPAN-updates⚡]➔ ps auxw |grep [N]et::IMAP::Server c.wright 8404 0.2 1.9 169424 19956 ? S 12:24 0:00 Net::IMAP::Server(8404) [4918][c.wright@xtdc1-chz:Net-IMAP-Simple-1.2034][CPAN-updates⚡]➔ kill -9 8404 [4919][c.wright@xtdc1-chz:Net-IMAP-Simple-1.2034][CPAN-updates⚡]➔ prove -lv t/07_select_and_examine.t t/07_select_and_examine.t .. 1..23 # Running under perl version 5.014002 for linux # Current time local: Tue Oct 16 12:25:24 2012 # Current time GMT: Tue Oct 16 11:25:24 2012 # Using Test.pm version 1.25_02 ok 1 * OK inc/Net/IMAP/Server.pm (1.27) ok 2 Failed 21/23 subtests Test Summary Report ------------------- t/07_select_and_examine.t (Wstat: 0 Tests: 2 Failed: 0) Parse errors: Bad plan. You planned 23 tests but ran 2. Files=1, Tests=2, 6 wallclock secs ( 0.02 usr 0.00 sys + 0.20 cusr 0.03 csys = 0.25 CPU) Result: FAIL [4920][c.wright@xtdc1-chz:Net-IMAP-Simple-1.2034][CPAN-updates⚡]➔ ps auxw |grep [N]et::IMAP::Server c.wright 8489 0.0 1.9 169280 20204 ? S 12:25 0:00 Net::IMAP::Server(8489) [4921][c.wright@xtdc1-chz:Net-IMAP-Simple-1.2034][CPAN-updates⚡]➔ kill -9 8489 [4922][c.wright@xtdc1-chz:Net-IMAP-Simple-1.2034][CPAN-updates⚡]➔ perl -Ilib t/07_select_and_examine.t 1..23 # Running under perl version 5.014002 for linux # Current time local: Tue Oct 16 12:25:56 2012 # Current time GMT: Tue Oct 16 11:25:56 2012 # Using Test.pm version 1.25_02 ok 1 * OK inc/Net/IMAP/Server.pm (1.27) ok 2 [4923][c.wright@xtdc1-chz:Net-IMAP-Simple-1.2034][CPAN-updates⚡]➔
I've seen the crashes from the cpan reporters. I've no idea why it happens and it doesn't happen at my house. The information you've posted so far is also available at cpan testers, so it's not really telling me anything additional (except that the server process is still running, confirming that the test is *crashing*, which I suspected). If you could now cat/grep/attach the various logs for errors and tell me what crashed, I'd be grateful. My random guesses don't seem to bear fruit. -Paul -- If riding in an airplane is flying, then riding in a boat is swimming. 116 jumps, 48.6 minutes of freefall, 92.9 freefall miles.
On Tue Oct 16 13:39:09 2012, JETTERO wrote: Show quoted text
> If you could now cat/grep/attach the various logs for errors and tell me > what crashed, I'd be grateful. My random guesses don't seem to bear fruit.
Here's what I did, I've attached the full log file: [4955][c.wright@xtdc1-chz:Net-IMAP-Simple-1.2034][CPAN-updates⚡]➔ rm -f *log [4956][c.wright@xtdc1-chz:Net-IMAP-Simple-1.2034][CPAN-updates⚡]➔ ps auxw |grep [N]et::IMAP::Server [4957][c.wright@xtdc1-chz:Net-IMAP-Simple-1.2034][CPAN-updates⚡]➔ perl -Ilib t/07_select_and_examine.t 1..23 # Running under perl version 5.014002 for linux # Current time local: Tue Oct 16 13:53:33 2012 # Current time GMT: Tue Oct 16 12:53:33 2012 # Using Test.pm version 1.25_02 ok 1 * OK inc/Net/IMAP/Server.pm (1.27) ok 2 [4958][c.wright@xtdc1-chz:Net-IMAP-Simple-1.2034][CPAN-updates⚡]➔ tail -n 3 *log ==> formal-imap-server.log <== S(t::Connection=HASH(0xad9b568),???,unselected): * OK Net::IMAP::Simple Test Server (2) C(t::Connection=HASH(0xad9b568),???,unselected): %16%03%01%00Z%01%00%00V%03%01P}X%D4%BD%C7%D0D%FA;%0F)%C6%19%10L%81%C9%B0 9%07%F8%A1%C6JT%CA%EB!%D9%EB{%00%00.%00:%009%008%005%004%003%002%00/%00%1B %00%19%00%18%00%17%00%16%00%14%00%13%00%11%00 -(t::Connection=HASH(0xad8af88),???,unselected): Connection closed by remote host ==> informal-imap-client-dump.log <== ==> informal-imap-server-dump.log <== [4959][c.wright@xtdc1-chz:Net-IMAP-Simple-1.2034][CPAN-updates⚡]➔ Here's what the server is doing after the script exits: [4961][c.wright@xtdc1-chz:Net-IMAP-Simple-1.2034][CPAN-updates⚡]➔ strace -p 13199 Process 13199 attached - interrupt to quit clock_gettime(CLOCK_MONOTONIC, {87975, 316379127}) = 0 clock_gettime(CLOCK_MONOTONIC, {87975, 316739127}) = 0 epoll_wait(5, {}, 64, 59743) = 0 clock_gettime(CLOCK_MONOTONIC, {88035, 63797127}) = 0 clock_gettime(CLOCK_MONOTONIC, {88035, 63905127}) = 0 epoll_wait(5,
Subject: formal-imap-server.log
Download formal-imap-server.log
application/octet-stream 2.5k

Message body not shown because it is not plain text.

Still doesn't really show the crash... Just sorta randomly exits. The fact that it doesn't present any error at all leads me to believe it's a segmentation fault with the ssl libs or something -- though, were that the case, why do the other tests pass?? -- If riding in an airplane is flying, then riding in a boat is swimming. 116 jumps, 48.6 minutes of freefall, 92.9 freefall miles.
From: Al
JETTERO/Net-IMAP-Simple-1.2034.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/01_load.t .......................... ok t/07_select_and_examine.t ............ 1/23 Use of uninitialized value in numeric eq (==) at /System/Library/Perl/Extras/5.10.0/IO/Socket/SSL.pm line 1186, <GEN3> line 2. Use of uninitialized value in numeric eq (==) at /System/Library/Perl/Extras/5.10.0/IO/Socket/SSL.pm line 1186, <GEN3> line 2. t/07_select_and_examine.t ............ Failed 21/23 subtests perl -V: Summary of my perl5 (revision 5 version 10 subversion 0) configuration: Platform: osname=darwin, osvers=10.0, archname=darwin-thread-multi-2level uname='darwin pizzly.apple.com 10.0 darwin kernel version 10.0.0: fri jul 31 22:46:25 pdt 2009; root:xnu-1456.1.25~1release_x86_64 x86_64 ' config_args='-ds -e -Dprefix=/usr -Dccflags=-g -pipe -Dldflags= -Dman3ext=3pm - Duseithreads -Duseshrplib -Dinc_version_list=none -Dcc=gcc-4.2' in SSL.pm: 1183 sub DESTROY { 1184 my $self = shift || return; 1185 $self->close(_SSL_in_DESTROY => 1, SSL_no_shutdown => 1) 1186 if (${*$self}{'_SSL_opened'} == 1); 1187 delete(${*$self}{'_SSL_ctx'}); 1188 } On Tue Oct 16 07:26:40 2012, CHISEL wrote: Show quoted text
> The t/07_select_and_examine.t test fails; it also seems to leave a > server/process running: > > [4915][c.wright@xtdc1-chz:Net-IMAP-Simple-1.2034][CPAN-updates⚡]➔ ps > auxw |grep > [N]et::IMAP::Server > [4916][c.wright@xtdc1-chz:Net-IMAP-Simple-1.2034][CPAN-updates⚡]➔ make > test > PERL_DL_NONLAZY=1 /opt/xt/xt-perl/bin/perl "-MExtUtils::Command::MM" > "-e" > "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t > t/01_load.t .......................... ok > t/07_select_and_examine.t ............ Failed 21/23 subtests > * OK inc/Net/IMAP/Server.pm (1.27) > t/08_selectalot.t .................... ok > t/09_concurrent_connections_new.t .... ok > t/10_list.t .......................... ok > t/11_mailboxes.t ..................... ok > t/15_flags.t ......................... ok > t/16_exotic_flags.t .................. ok > t/17_status_and_select.t ............. ok > t/19_readline_callback.t ............. ok > t/22_copy_multiple.t ................. ok > t/22_uidcopy_multiple.t .............. ok > t/23_delete_multiple.t ............... ok > t/35_imap_results_in_message_body.t .. ok > t/42_preauth_with_command.t .......... ok > t/45_search.t ........................ ok > t/50_body_summary.t .................. ok > t/55_uid_stuff.t ..................... ok > t/60_fetch_with_grammar.t ............ ok > t/70_list2range.t .................... ok > t/75_back_and_forth.t ................ ok > t/critic.t ........................... ok > t/pod.t .............................. ok > t/pod_coverage.t ..................... ok > > Test Summary Report > ------------------- > t/07_select_and_examine.t (Wstat: 0 Tests: 2 Failed: 0) > Parse errors: Bad plan. You planned 23 tests but ran 2. > Files=24, Tests=25, 8 wallclock secs ( 0.07 usr 0.03 sys + 0.19 > cusr 0.26 csys = 0.55 > CPU) > Result: FAIL > Failed 1/24 test programs. 0/25 subtests failed. > make: *** [test_dynamic] Error 255 > [4917][c.wright@xtdc1-chz:Net-IMAP-Simple-1.2034][CPAN-updates⚡]➔ ps > auxw |grep > [N]et::IMAP::Server > c.wright 8404 0.2 1.9 169424 19956 ? S 12:24 0:00 > Net::IMAP::Server(8404) > [4918][c.wright@xtdc1-chz:Net-IMAP-Simple-1.2034][CPAN-updates⚡]➔ kill > -9 8404 > [4919][c.wright@xtdc1-chz:Net-IMAP-Simple-1.2034][CPAN-updates⚡]➔ > prove -lv > t/07_select_and_examine.t > t/07_select_and_examine.t .. > 1..23 > # Running under perl version 5.014002 for linux > # Current time local: Tue Oct 16 12:25:24 2012 > # Current time GMT: Tue Oct 16 11:25:24 2012 > # Using Test.pm version 1.25_02 > ok 1 > * OK > inc/Net/IMAP/Server.pm (1.27) > ok 2 > Failed 21/23 subtests > > Test Summary Report > ------------------- > t/07_select_and_examine.t (Wstat: 0 Tests: 2 Failed: 0) > Parse errors: Bad plan. You planned 23 tests but ran 2. > Files=1, Tests=2, 6 wallclock secs ( 0.02 usr 0.00 sys + 0.20 cusr > 0.03 csys = 0.25 CPU) > Result: FAIL > [4920][c.wright@xtdc1-chz:Net-IMAP-Simple-1.2034][CPAN-updates⚡]➔ ps > auxw |grep > [N]et::IMAP::Server > c.wright 8489 0.0 1.9 169280 20204 ? S 12:25 0:00 > Net::IMAP::Server(8489) > [4921][c.wright@xtdc1-chz:Net-IMAP-Simple-1.2034][CPAN-updates⚡]➔ kill > -9 8489 > [4922][c.wright@xtdc1-chz:Net-IMAP-Simple-1.2034][CPAN-updates⚡]➔ perl > -Ilib > t/07_select_and_examine.t > 1..23 > # Running under perl version 5.014002 for linux > # Current time local: Tue Oct 16 12:25:56 2012 > # Current time GMT: Tue Oct 16 11:25:56 2012 > # Using Test.pm version 1.25_02 > ok 1 > * OK > inc/Net/IMAP/Server.pm (1.27) > ok 2 > [4923][c.wright@xtdc1-chz:Net-IMAP-Simple-1.2034][CPAN-updates⚡]➔
I'm just going to remove the initial module load. I think that will "fix" it by obviating the SSL library unload (or whatever the hell causes the problems on some machines, but never mine). Please be sure to test 1.2034_2 when it appears on the cpan and reopen if it doesn't "fix" it. -- If riding in an airplane is flying, then riding in a boat is swimming. 116 jumps, 48.6 minutes of freefall, 92.9 freefall miles.