Closed dur-randir closed 7 years ago
Really interesting. I've tested this on 5.10.1-thr (to get missing IO::Handle produce an actual error) and got clean runs, so I didn't bother about re-testing on a fresh perl. But it fails there still. I'll look further into it.
This is an instance of https://rt.perl.org/Ticket/Display.html?id=125685, which was broken by https://perl5.git.perl.org/perl.git/commit/986a805c4b258067b82c4f1254518e53cdb1acdf.
There're two ways around this - either load IO::Handle under mutex lock on perl >= 5.16.0 or restore some kind of require_IO_Handle macro - again, with added lock.
@dur-randir With this merged (THANKS!), I still get intermittent failures in rt119 (your first example code)
And in a second run