Skip Menu |

This queue is for tickets about the Devel-Chitin CPAN distribution.

Report information
The Basics
Id: 127437
Status: resolved
Priority: 0/
Queue: Devel-Chitin

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

Bug Information
Severity: (no value)
Broken in: 0.17
Fixed in: 0.18



Subject: t/10-loaded_files.t and t/11-postponed.t may fail (threaded perls?)
On some of my smokers the test suite fails: ... # Failed test 'Devel::Chitin is loaded' # at t/10-loaded_files.t line 12. # Failed test 'Found main file, Devel::Chitin and SampleCode in loaded files list' # at t/10-loaded_files.t line 25. # +------+---------------------------+---------------------------+--------+ # | PATH | GOT | CHECK | LNs | # +------+---------------------------+---------------------------+--------+ # | | ARRAY(0x44d8bf60) | <BAG> | 19, 24 | # | | | | | # | [*] | <DOES NOT EXIST> | /home/cpansand/.cpan/buil | 21 | # | | | d/2018102516/Devel-Chitin | | # | | | -0.17-0/blib/lib/Devel/Ch | | # | | | itin.pm | | # +------+---------------------------+---------------------------+--------+ # Seeded srand with seed '20181025' from local date. t/10-loaded_files.t ................ Dubious, test returned 2 (wstat 512, 0x200) Failed 2/6 subtests # Failed test 'posponed() on an already loaded file fires immediately' # at t/11-postponed.t line 19. # +-----+----+-------+ # | GOT | OP | CHECK | # +-----+----+-------+ # | 0 | eq | 1 | # +-----+----+-------+ # Seeded srand with seed '20181025' from local date. t/11-postponed.t ................... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/2 subtests ... It seems that it fails for all threaded perls on my smokers.
On Thu Oct 25 03:44:03 2018, SREZIC wrote: Show quoted text
> On some of my smokers the test suite fails: > [...] > > It seems that it fails for all threaded perls on my smokers.
I can reproduce the failures with my perlbrew-built threaded 5.26.2 perl. Apparently threaded perls populate the loaded files' source in @main::{"_<$filename"} and $main::{"_<$filename"} only if the 0x400 bit of $^P is set when the file is loaded. Non-threaded perls behave differently, and must go back and populate them if the flag gets turned on after some files have loaded. When I change the timing of when the flag gets set, the tests work again. I've made a PR to fix this: https://github.com/brummett/Devel-Chitin/pull/74
On 2018-10-25 18:38:51, BRUMMETT wrote: Show quoted text
> On Thu Oct 25 03:44:03 2018, SREZIC wrote:
> > On some of my smokers the test suite fails: > > [...] > > > > It seems that it fails for all threaded perls on my smokers.
> > I can reproduce the failures with my perlbrew-built threaded 5.26.2 > perl. > > Apparently threaded perls populate the loaded files' source in > @main::{"_<$filename"} and $main::{"_<$filename"} only if the 0x400 > bit of $^P is set when the file is loaded. Non-threaded perls behave > differently, and must go back and populate them if the flag gets > turned on after some files have loaded. When I change the timing of > when the flag gets set, the tests work again. > > I've made a PR to fix this: https://github.com/brummett/Devel- > Chitin/pull/74
This failure does not happen anymore. Resolving ticket.