Skip Menu |

This queue is for tickets about the Time-HiRes CPAN distribution.

Report information
The Basics
Id: 92749
Status: rejected
Priority: 0/
Queue: Time-HiRes

People
Owner: Nobody in particular
Requestors: t.hirsch [...] web.de
Cc:
AdminCc:

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



Subject: itimer test fails on Solaris 10/SPARC/perl 5.18.1
perl version: This is perl 5, version 18, subversion 1 (v5.18.1) built for sun4-solaris Using hints hints/solaris.pl... Extra libraries: -lrt... Have syscall()... looking for syscall.h... found <sys/syscall.h>. Looking for gettimeofday()... found. Looking for setitimer()... found. Looking for getitimer()... found. You have interval timers (both setitimer and getitimer). Looking for ualarm()... found. Looking for usleep()... found. Looking for nanosleep()... testing... found. You can mix subsecond sleeps with signals, if you want to. (It's still not portable, though.) Looking for clock_gettime()... found. Looking for clock_getres()... found. Looking for clock_nanosleep()... found. Looking for clock()... found. Looking for stat() subsecond timestamps... Trying struct stat st_atimespec.tv_nsec...NOT found. Trying struct stat st_atimensec...NOT found. Trying struct stat st_atime_n...NOT found. Trying struct stat st_atim.tv_nsec...found. Trying struct stat st_uatime...NOT found. You seem to have stat() subsecond timestamps. (Your struct stat has them, but the filesystems must help.) Checking if your kit is complete... Looks good Processing hints file hints/solaris.pl 'EXPATINCPATH' is not a known MakeMaker parameter name. 'EXPATLIBPATH' is not a known MakeMaker parameter name. Writing Makefile for Time::HiRes Writing MYMETA.yml and MYMETA.json Now you may issue 'make'. Do not forget also 'make test'. cp HiRes.pm blib/lib/Time/HiRes.pm /var/mercator/opt/perl/bin/perl /var/mercator/opt/perl/lib/5.18.1/ExtUtils/xsubpp -typemap /var/mercator/opt/perl/lib/5.18.1/ExtUtils/typemap -typemap typemap HiRes.xs > HiRes.xsc && mv HiRes.xsc HiRes.c gcc -c -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O -DVERSION=\"1.9726\" -DXS_VERSION=\"1.9726\" -fPIC "-I/var/mercator/opt/perl/lib/5.18.1/sun4-solaris/CORE" -DTIME_HIRES_NANOSLEEP -DTIME_HIRES_CLOCK_GETTIME -DTIME_HIRES_CLOCK_GETRES -DTIME_HIRES_CLOCK_NANOSLEEP -DTIME_HIRES_CLOCK -DTIME_HIRES_STAT=4 -DATLEASTFIVEOHOHFIVE HiRes.c Running Mkbootstrap for Time::HiRes () chmod 644 HiRes.bs rm -f blib/arch/auto/Time/HiRes/HiRes.so LD_RUN_PATH="/usr/lib" gcc -G -L/usr/local/lib HiRes.o -o blib/arch/auto/Time/HiRes/HiRes.so \ -lrt \ chmod 755 blib/arch/auto/Time/HiRes/HiRes.so cp HiRes.bs blib/arch/auto/Time/HiRes/HiRes.bs chmod 644 blib/arch/auto/Time/HiRes/HiRes.bs Manifying blib/man3/Time::HiRes.3 PERL_DL_NONLAZY=1 /var/mercator/opt/perl/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/alarm.t ......... ok t/clock.t ......... ok t/gettimeofday.t .. ok t/itimer.t ........ 2/2 # Failed test at t/itimer.t line 60. # Looks like you failed 1 test of 2. t/itimer.t ........ Dubious, test returned 1 (wstat 256, 0x100) Failed 1/2 subtests t/nanosleep.t ..... ok t/sleep.t ......... ok t/stat.t .......... ok t/time.t .......... ok t/tv_interval.t ... ok t/ualarm.t ........ ok t/usleep.t ........ ok Test Summary Report ------------------- t/itimer.t (Wstat: 256 Tests: 2 Failed: 1) Failed test: 2 Non-zero exit status: 1 Files=11, Tests=95, 27 wallclock secs ( 0.13 usr 0.12 sys + 14.57 cusr 0.24 csys = 15.06 CPU) Result: FAIL Failed 1/11 test programs. 1/95 subtests failed.
Surprisingly the test runs successfully when I call it a 2nd time (after make install): PERL_DL_NONLAZY=1 /var/mercator/opt/perl/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/alarm.t ......... ok t/clock.t ......... ok t/gettimeofday.t .. ok t/itimer.t ........ ok t/nanosleep.t ..... ok t/sleep.t ......... ok t/stat.t .......... ok t/time.t .......... ok t/tv_interval.t ... ok t/ualarm.t ........ ok t/usleep.t ........ ok All tests successful. Files=11, Tests=95, 28 wallclock secs ( 0.13 usr 0.12 sys + 15.02 cusr 0.24 csys = 15.51 CPU) Result: PASS fyi: 3rd call also runs successfully. The machine is a virtualized one, a Solaris Zone I think.
(while testing perl 5.20.3-RC1, which has the Time::HiRes 1.9726) On Solaris 5.10 (Generic_150401-24) (x86) ... the itimer test (#2 out of 2) failed first two times (the only test failing), and then succeeded three times. So the test is still somehow flaky.
Is this anymore relevant / reproducible? If not, I am going to soon close this ticket.
On Sun Sep 25 13:21:33 2016, JHI wrote: Show quoted text
> Is this anymore relevant / reproducible? If not, I am going to soon > close this ticket.
Closing since no replies. Also, the 5.18 is long since out of the maintenance window.