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@redhat.com Reporter: ppisar@redhat.com QA Contact: extras-qa@fedoraproject.org CC: cweyl@alumni.drew.edu, iarnell@gmail.com, jplesnik@redhat.com, kasal@ucw.cz, lkundrak@v3.sk, mmaslano@redhat.com, perl-devel@lists.fedoraproject.org, ppisar@redhat.com, psabata@redhat.com, rc040203@freenet.de, tcallawa@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(); }
https://bugzilla.redhat.com/show_bug.cgi?id=958821
Fedora Admin XMLRPC Client fedora-admin-xmlrpc@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|mmaslano@redhat.com |jplesnik@redhat.com
--- Comment #1 from Fedora Admin XMLRPC Client fedora-admin-xmlrpc@redhat.com --- This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
https://bugzilla.redhat.com/show_bug.cgi?id=958821
--- Comment #2 from Petr Pisar ppisar@redhat.com --- The fix is emerging in https://rt.perl.org/rt3/Public/Bug/Display.html?id=119897.
https://bugzilla.redhat.com/show_bug.cgi?id=958821
--- Comment #3 from Petr Pisar ppisar@redhat.com --- Upstream fix is in blead now:
commit facf34ef484d62d15b2da11ee03d01942a22ff15 Author: Brian Fraser fraserbn@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("*")
https://bugzilla.redhat.com/show_bug.cgi?id=958821
--- Comment #4 from Fedora End Of Life endoflife@fedoraproject.org --- This message is a reminder that Fedora 18 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 18. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '18'.
Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 18's end of life.
Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 18 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior to Fedora 18's end of life.
Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
https://bugzilla.redhat.com/show_bug.cgi?id=958821
Petr Pisar ppisar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|18 |19
--- Comment #5 from Petr Pisar ppisar@redhat.com --- Issue in F19 too. We have patch which should be applied.
https://bugzilla.redhat.com/show_bug.cgi?id=958821
Jitka Plesnikova jplesnik@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed In Version| |perl-5.18.2-289.fc20
--- Comment #6 from Jitka Plesnikova jplesnik@redhat.com --- The fix has been in 5.18.2 (perl-5.18.2-289.fc20).
https://bugzilla.redhat.com/show_bug.cgi?id=958821
--- Comment #7 from Fedora End Of Life endoflife@fedoraproject.org --- This message is a notice that Fedora 19 is now at end of life. Fedora has stopped maintaining and issuing updates for Fedora 19. It is Fedora's policy to close all bug reports from releases that are no longer maintained. Approximately 4 (four) weeks from now this bug will be closed as EOL if it remains open with a Fedora 'version' of '19'.
Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 19 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
https://bugzilla.redhat.com/show_bug.cgi?id=958821
Petr Pisar ppisar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution|--- |CURRENTRELEASE Last Closed| |2015-01-12 01:19:09
perl-devel@lists.fedoraproject.org