Skip Menu |

This queue is for tickets about the Audio-TagLib CPAN distribution.

Report information
The Basics
Id: 114586
Status: new
Priority: 0/
Queue: Audio-TagLib

People
Owner: GLEACH [...] cpan.org
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 1.65
  • 1.67
Fixed in: (no value)



Subject: Random test failures with perl 5.18 and later (hash randomization?)
My smoker machines (linux debian jessie) show random test failures: # Failed test at t/TagLib_ID3v2_FrameList.t line 75. # 'TIT2title' # doesn't match '(?^:^TPE1.*?artist$)' # method sortedInsert(item) and getItem(1) failed # Looks like you failed 1 test of 31. t/TagLib_ID3v2_FrameList.t ....................... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/31 subtests This seems to happen only with perl >= 5.18, so maybe it is related to hash randomization (or some other change introduced in this perl version).
On 2016-05-22 16:26:04, SREZIC wrote: Show quoted text
> My smoker machines (linux debian jessie) show random test failures: > > # Failed test at t/TagLib_ID3v2_FrameList.t line 75. > # 'TIT2title' > # doesn't match '(?^:^TPE1.*?artist$)' > # method sortedInsert(item) and getItem(1) failed > # Looks like you failed 1 test of 31. > t/TagLib_ID3v2_FrameList.t ....................... > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/31 subtests > > > This seems to happen only with perl >= 5.18, so maybe it is related to > hash randomization (or some other change introduced in this perl > version).
To reproduce the failure one can use a loop like this: for i in $(seq 1000); do echo $i; env PERL_HASH_SEED=$i /opt/perl-5.26.0-RC1/bin/prove -b t/TagLib_ID3v2_FrameList.t || break; done Usually (for other hash randomization-related problems) such a loop stops always at the same PERL_HASH_SEED number. In this case this number seems to differ from compilation to compilation, and sometimes the loop takes a long time to hit a PERL_HASH_SEED number causing the failure.