Skip Menu |

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

Report information
The Basics
Id: 50300
Status: resolved
Worked: 6 hours (360 min)
Priority: 0/
Queue: Net-Daemon

People
Owner: MNOONING [...] cpan.org
Requestors: toddr [...] cpanel.net
Cc:
AdminCc:

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



Subject: t/ithreads fails on Mac Snow Leopard (64bit) threaded
$>make test pod2text lib/Net/Daemon.pm >README cp lib/Net/Daemon/Test.pm blib/lib/Net/Daemon/Test.pm cp lib/Net/Daemon.pm blib/lib/Net/Daemon.pm cp lib/Net/Daemon/Log.pm blib/lib/Net/Daemon/Log.pm PERL_DL_NONLAZY=1 /usr/local/perl/510/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/base.t ........ ok t/config.t ...... ok t/fork.t ........ ok t/forkm.t ....... ok t/ithread.t ..... 1/? Perl exited with active threads: 0 running and unjoined 1 finished and unjoined 0 running and detached t/ithread.t ..... ok t/ithreadm.t .... Child 5: Error while reading: 0 () at t/ithreadm.t line 47, <GEN1> line 26. Child 6: Error while reading: 0 () at t/ithreadm.t line 47, <GEN1> line 35. t/ithreadm.t .... 1/? Child 8: Error while reading: 0 () at t/ithreadm.t line 47, <GEN1> line 2. Child 9: Error while reading: 0 () at t/ithreadm.t line 47, <GEN1> line 2. t/ithreadm.t .... Failed 4/10 subtests t/loop-child.t .. ok t/loop.t ........ ok t/single.t ...... ok t/thread.t ...... lock can only be used on shared values at t/server line 73, <GEN3> line 1. Error while reading 0: 0 (Operation timed out) at t/thread.t line 42. t/thread.t ...... 1/? Perl exited with active threads: 0 running and unjoined 1 finished and unjoined 0 running and detached t/thread.t ...... Failed 1/5 subtests t/threadm.t ..... ok t/unix.t ........ ok Test Summary Report ------------------- t/ithreadm.t (Wstat: 0 Tests: 10 Failed: 4) Failed tests: 6-7, 9-10 t/thread.t (Wstat: 0 Tests: 5 Failed: 1) Failed test: 4 Files=12, Tests=73, 84 wallclock secs ( 0.08 usr 0.04 sys + 1.63 cusr 0.67 csys = 2.42 CPU) Result: FAIL Failed 2/12 test programs. 5/73 subtests failed. make: *** [test_dynamic] Error 255
RT-Send-CC: toddr [...] null.net
$>prove -bvm t/ithreadm.t t/ithreadm.t .. Starting server: /usr/local/perl/510/bin/perl -Iblib/lib -Iblib/arch t/server --mode=ithreads logfile=stderr debug 1..10 Child 0: Error while reading: 0 () at t/ithreadm.t line 47, <GEN1> line 1. Child 1: Error while reading: 0 () at t/ithreadm.t line 47, <GEN1> line 1. Child 2: Error while reading: 0 () at t/ithreadm.t line 47, <GEN1> line 1. Child 3: Error while reading: 0 () at t/ithreadm.t line 47, <GEN1> line 29. Child 6: Error while reading: 0 () at t/ithreadm.t line 47, <GEN1> line 21. not ok 1 not ok 2 not ok 3 not ok 4 ok 5 ok 6 not ok 7 ok 8 ok 9 ok 10 Terminating server. Failed 5/10 subtests Test Summary Report ------------------- t/ithreadm.t (Wstat: 0 Tests: 10 Failed: 5) Failed tests: 1-4, 7 Files=1, Tests=10, 3 wallclock secs ( 0.02 usr 0.01 sys + 0.45 cusr 0.22 csys = 0.70 CPU) Result: FAIL
RT-Send-CC: toddr [...] null.net
$>prove -bvm t/thread.t t/thread.t .. Starting server: /usr/local/perl/510/bin/perl t/server --timeout 20 --mode=threads lock can only be used on shared values at t/server line 73, <GEN3> line 1. Error while reading 0: 0 (Operation timed out) at t/thread.t line 42. 1..5 Making first connection to port 64188... ok 1 ok 2 Making second connection to port 64188... ok 3 not ok 4 ok 5 Perl exited with active threads: 0 running and unjoined 1 finished and unjoined 0 running and detached Failed 1/5 subtests Test Summary Report ------------------- t/thread.t (Wstat: 0 Tests: 5 Failed: 1) Failed test: 4 Files=1, Tests=5, 3 wallclock secs ( 0.02 usr 0.01 sys + 0.11 cusr 0.02 csys = 0.16 CPU) Result: FAIL
RT-Send-CC: toddr [...] null.net
$>perl -V Summary of my perl5 (revision 5 version 10 subversion 1) configuration: Platform: osname=darwin, osvers=10.0.0, archname=darwin-thread-multi-ld-2level uname='darwin macbook-pro.local 10.0.0 darwin kernel version 10.0.0: fri jul 31 22:47:34 pdt 2009; root:xnu-1456.1.25~1release_i386 i386 ' config_args='' hint=recommended, useposix=true, d_sigaction=define useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=define, use64bitall=define, uselongdouble=define usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include', optimize='-O3', cppflags='-no-cpp-precomp -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include' ccversion='', gccversion='4.2.1 (Apple Inc. build 5646)', gccosandvers='' intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=8, nvtype='long double', nvsize=16, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -fstack-protector -L/usr/local/lib' libpth=/usr/local/lib /usr/lib libs=-ldbm -ldl -lm -lutil -lc perllibs=-ldl -lm -lutil -lc libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-protector' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_64_BIT_ALL USE_64_BIT_INT USE_FAST_STDIO USE_ITHREADS USE_LARGE_FILES USE_LONG_DOUBLE USE_PERLIO Built under darwin Compiled at Oct 6 2009 10:42:49 %ENV: PERL5LIB="" PERL5OPT="" PERL5_CPANPLUS_IS_RUNNING="15345" PERL5_CPAN_IS_RUNNING="15345" PERLDB_OPTS="RemotePort=:9000" @INC: /usr/local/perl/510/lib/5.10.1/darwin-thread-multi-ld-2level /usr/local/perl/510/lib/5.10.1 /usr/local/perl/510/lib/5.10.1/darwin-thread-multi-ld-2level /usr/local/perl/510/lib/5.10.1 .
RT-Send-CC: toddr [...] null.net
I tried Net-Daemon-0.46 on Windows, Fedora Linux from a few months ago, then updated the Fedora and it still passes, so it looks like version 0.46 is a winner. Again, thank you, Todd, for all of your help.