Skip Menu |

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

Report information
The Basics
Id: 123405
Status: open
Priority: 0/
Queue: Time-HiRes

People
Owner: Nobody in particular
Requestors: abraxxa [...] cpan.org
Cc:
AdminCc:

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



Subject: t/stat.t fails on Ubuntu 17.10
I'm not sure if the failure comes from the fact that my Perl 5.26.1 was brewed on Ubuntu 17.04, that I'm using BTRFS (which I had in Ubuntu 17.04 as well, just upgraded) or the xlocale.h has been removed from glibc 2.26: https://sourceware.org/glibc/wiki/Release/2.26#Removal_of_.27xlocale.h.27 [ahartmai@ahartmai-nb:~/.cpanplus/5.26.1/build/MgFlO6M3_g/Time-HiRes-1.9746$ ]$ prove t/stat.t t/stat.t .. 1..43 # I am the main process 26587, starting the watchdog process... # The watchdog process 26588 launched, continuing testing... # I am the watchdog process 26588, sleeping for 360 seconds... ok 1 ok 2 ok 3 ok 4 ok 5 ok 6 ok 7 ok 8 ok 9 ok 10 ok 11 ok 12 not ok 13 # Failed test at t/stat.t line 35. # Structures begin differing at: # $got->[12] = '8' # $expected->[12] = '0' ok 14 ok 15 ok 16 ok 17 ok 18 ok 19 not ok 20 # Failed test at t/stat.t line 35. # Structures begin differing at: # $got->[12] = '8' # $expected->[12] = '0' ok 21 ok 22 ok 23 ok 24 ok 25 ok 26 not ok 27 # Failed test at t/stat.t line 35. # Structures begin differing at: # $got->[12] = '8' # $expected->[12] = '0' ok 28 ok 29 ok 30 ok 31 ok 32 ok 33 not ok 34 # Failed test at t/stat.t line 35. # Structures begin differing at: # $got->[12] = '8' # $expected->[12] = '0' ok 35 # mtime = 1509103205.89489 1509103206.20689 1509103206.46689 1509103206.81089 1509103207.08289 # atime = 1509103206.03889 1509103206.33489 1509103206.67089 1509103206.95489 1509103207.23489 # ai = 4, mi = 4, ss = 8 ok 36 ok 37 ok 38 ok 39 ok 40 ok 41 ok 42 ok 43 # I am the main process 26587, terminating the watchdog process 26588 before it terminates me in 358 seconds (testing took 2 seconds). # kill KILL 26588 = 1 # All done. # Looks like you failed 4 tests of 43. Dubious, test returned 4 (wstat 1024, 0x400) Failed 4/43 subtests Test Summary Report ------------------- t/stat.t (Wstat: 1024 Tests: 43 Failed: 4) Failed tests: 13, 20, 27, 34 Non-zero exit status: 4 Files=1, Tests=43, 2 wallclock secs ( 0.04 usr 0.00 sys + 0.07 cusr 0.00 csys = 0.11 CPU) Result: FAIL
On Fri, 27 Oct 2017 11:26:18 GMT, ABRAXXA wrote:
Show quoted text
> I'm not sure if the failure comes from the fact that my Perl 5.26.1
> was brewed on Ubuntu 17.04, that I'm using BTRFS (which I had in
> Ubuntu 17.04 as well, just upgraded) or the xlocale.h has been removed
> from glibc 2.26:
> https://sourceware.org/glibc/wiki/Release/2.26#Removal_of_.27xlocale.h.27
>

Looks likely it's BTRFS. I just upgraded my desktop to Fedora 27 which is also missing xlocale.h, and so had to rebuild 5.26.1 installed via plenv. I had the same stat.t failure.

My $HOME is on BTRFS, so I tried building in /tmp, which is a tmpfs, and the test passed.

Oh, I had the same error when upgrading Time::HiRes a couple of weeks ago, but ignored it :-(

http://www.cpantesters.org/cpan/report/55c79b4c-b2b9-11e7-aa69-73451f117d75
So it might have to do with Linux Kernel 4.13 (Ubuntu 17.10) vs. 4.10 (Ubuntu 17.04) and BTRFS changes there?
On Mon Oct 30 03:42:34 2017, ABRAXXA wrote: Show quoted text
> So it might have to do with Linux Kernel 4.13 (Ubuntu 17.10) vs. 4.10 > (Ubuntu 17.04) and BTRFS changes there?
If you could test this with Time-HiRes 1.9753? Not that I expect the problem to go away if this has to do with some particular releases of one particular filesystem in Linux, but it would be good to get an update.
Still fails: [ahartmai@ahartmai-nb:~/.cpanm/work/1516886323.27634/Time-HiRes-1.9753$ ]$ prove -vl t/stat.t t/stat.t .. 1..43 # I am the main process 28101, starting the watchdog process... # The watchdog process 28102 launched, continuing testing... # I am the watchdog process 28102, sleeping for 360 seconds... ok 1 ok 2 ok 3 ok 4 ok 5 ok 6 ok 7 ok 8 ok 9 ok 10 ok 11 ok 12 not ok 13 # Failed test at t/stat.t line 35. # Structures begin differing at: # $got->[12] = '8' # $expected->[12] = '0' ok 14 ok 15 ok 16 ok 17 ok 18 ok 19 not ok 20 # Failed test at t/stat.t line 35. # Structures begin differing at: # $got->[12] = '8' # $expected->[12] = '0' ok 21 ok 22 ok 23 ok 24 ok 25 ok 26 not ok 27 # Failed test at t/stat.t line 35. # Structures begin differing at: # $got->[12] = '8' # $expected->[12] = '0' ok 28 ok 29 ok 30 ok 31 ok 32 ok 33 not ok 34 # Failed test at t/stat.t line 35. # Structures begin differing at: # $got->[12] = '8' # $expected->[12] = '0' ok 35 # mtime = 1516886364.97695 1516886365.25295 1516886365.62895 1516886366.01695 1516886366.36895 # atime = 1516886365.13695 1516886365.45695 1516886365.82495 1516886366.21295 1516886366.56495 # ai = 4, mi = 4, ss = 8 ok 36 ok 37 ok 38 ok 39 ok 40 ok 41 ok 42 ok 43 # I am the main process 28101, terminating the watchdog process 28102 before it terminates me in 358 seconds (testing took 2 seconds). # kill KILL 28102 = 1 # All done. # Looks like you failed 4 tests of 43. Dubious, test returned 4 (wstat 1024, 0x400) Failed 4/43 subtests Test Summary Report ------------------- t/stat.t (Wstat: 1024 Tests: 43 Failed: 4) Failed tests: 13, 20, 27, 34 Non-zero exit status: 4 Files=1, Tests=43, 2 wallclock secs ( 0.03 usr 0.01 sys + 0.07 cusr 0.01 csys = 0.12 CPU) Result: FAIL
I've upgraded to Xubuntu 18.04 and now the test passes although I'm still on the same btrfs filesystem so this might have been a bug in Kernel 4.13 or some library which was fixed in the newer Ubuntu version.