In perl.git, the branch smoke-me/hugmeir/dup_glob_state has been created
<http://perl5.git.perl.org/perl.git/commitdiff/005c0bc654a497c936c68e15db1355ca660d8c43?hp=0000000000000000000000000000000000000000>
at 005c0bc654a497c936c68e15db1355ca660d8c43 (commit)
- Log -----------------------------------------------------------------
commit 005c0bc654a497c936c68e15db1355ca660d8c43
Author: Brian Fraser <[email protected]>
Date: Sat Sep 21 03:19:52 2013 -0300
File::Glob: Dup glob state in CLONE()
This solves [perl #119897] and [perl #117823], and restores the
behavior of glob() in conjunction with threads of 5.14 and older.
Since 5.16, code that used glob() inside a thread had been
unintentionally sharing state between threads, which lead to things
like this crashing and failing assertions:
./perl -Ilib -Mthreads -e 'scalar glob("*"); threads->create(sub {
glob("*") })->join();'
-----------------------------------------------------------------------
--
Perl5 Master Repository