[Bug 958821] New: Threaded glob segfaults

bugzilla at redhat.com bugzilla at redhat.com
Thu May 2 13:10:13 UTC 2013


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

            Bug ID: 958821
           Summary: Threaded glob segfaults
           Product: Fedora
           Version: 18
         Component: perl
          Severity: unspecified
          Priority: unspecified
          Assignee: mmaslano at redhat.com
          Reporter: ppisar at redhat.com
        QA Contact: extras-qa at fedoraproject.org
                CC: cweyl at alumni.drew.edu, iarnell at gmail.com,
                    jplesnik at redhat.com, kasal at ucw.cz, lkundrak at v3.sk,
                    mmaslano at redhat.com,
                    perl-devel at lists.fedoraproject.org, ppisar at redhat.com,
                    psabata at redhat.com, rc040203 at freenet.de,
                    tcallawa at redhat.com
          Category: ---

Since 5.16.0, perl segfaults when using glob in multi-threaded environment.
This has been reported to upstream as
<https://rt.perl.org:443/rt3/Ticket/Display.html?id=117823>. Tests case:

use warnings;
use strict;

use threads;
use threads::shared;

my $nthread = 20;

sub work {
    foreach (1..10000) {
        my @files = <*.supp>;
    }
}

my @threads;
foreach my $i (1..$nthread) {
    push @threads, threads->create(\&work);
}

foreach my $t (@threads) {
    $t->join();
}

-- 
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=Jn3RLKH7AF&a=cc_unsubscribe



More information about the perl-devel mailing list