[Bug 958821] Threaded glob segfaults

bugzilla at redhat.com bugzilla at redhat.com
Wed Oct 2 07:31:26 UTC 2013


https://bugzilla.redhat.com/show_bug.cgi?id=958821



--- Comment #3 from Petr Pisar <ppisar at redhat.com> ---
Upstream fix is in blead now:

commit facf34ef484d62d15b2da11ee03d01942a22ff15
Author: Brian Fraser <fraserbn at gmail.com>
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("*")

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=SbsLDQj3Cl&a=cc_unsubscribe



More information about the perl-devel mailing list