[Bug 1346043] Re: PerlIO dead-locks with threaded fork

Bug Watch Updater 1346043 at bugs.launchpad.net
Sat Oct 28 09:38:57 UTC 2017


Launchpad has imported 7 comments from the remote bug at
https://bugzilla.redhat.com/show_bug.cgi?id=947444.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2013-04-02T12:52:22+00:00 Petr wrote:

Created attachment 730746
Test case

As reported to upstream, there is a possible dead lock when using fork
from threads and PerlIO
<https://rt.perl.org/rt3/Public/Bug/Display.html?id=106212>.

This has been fixed in commit:

>From 4da80956418bbe1fdc23cad0b1cbb24cd7b87609 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Patrik=20H=C3=A4gglund?= <patrik.h.hagglund at ericsson.com>
Date: Sat, 2 Feb 2013 20:21:05 +0100
Subject: [PATCH] PATCH [perl #106212] Add PL_perlio_mutex to
 atfork_lock/unlock

Using threads + fork() on Linux, and IO operations in the threads, the
PL_perlio_mutex may be left in a locked state at the call of fork(),
potentially leading to deadlock in the child process at subsequent IO
operations. (Threads are pre-empted and not continued in the child
process after the fork.)

Therefore, ensure that the PL_perlio_mutex is unlocked in the child
process, right after fork(), by using atfork_lock/unlock.

(The RT text gives ways to reproduce the problem, but are not easily
added to Perl's test suite)


Probably all Fedoras are affected.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/perl/+bug/1346043/comments/0

------------------------------------------------------------------------
On 2013-04-11T11:02:53+00:00 Fedora wrote:

perl-5.16.3-262.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/perl-5.16.3-262.fc19

Reply at:
https://bugs.launchpad.net/ubuntu/+source/perl/+bug/1346043/comments/1

------------------------------------------------------------------------
On 2013-04-11T11:10:11+00:00 Fedora wrote:

perl-5.16.3-242.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/perl-5.16.3-242.fc18

Reply at:
https://bugs.launchpad.net/ubuntu/+source/perl/+bug/1346043/comments/2

------------------------------------------------------------------------
On 2013-04-11T13:06:07+00:00 Fedora wrote:

perl-5.14.4-225.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/perl-5.14.4-225.fc17

Reply at:
https://bugs.launchpad.net/ubuntu/+source/perl/+bug/1346043/comments/3

------------------------------------------------------------------------
On 2013-04-20T19:15:07+00:00 Fedora wrote:

perl-5.16.3-262.fc19, perl-Sys-Syslog-0.32-1.fc19 has been pushed to the
Fedora 19 stable repository.  If problems still persist, please make
note of it in this bug report.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/perl/+bug/1346043/comments/4

------------------------------------------------------------------------
On 2013-04-25T00:45:38+00:00 Fedora wrote:

perl-5.16.3-242.fc18, perl-Sys-Syslog-0.32-1.fc18 has been pushed to the
Fedora 18 stable repository.  If problems still persist, please make
note of it in this bug report.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/perl/+bug/1346043/comments/5

------------------------------------------------------------------------
On 2013-04-27T00:11:08+00:00 Fedora wrote:

perl-5.14.4-225.fc17 has been pushed to the Fedora 17 stable repository.
If problems still persist, please make note of it in this bug report.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/perl/+bug/1346043/comments/6


** Changed in: perl (Fedora)
       Status: Unknown => Fix Released

** Changed in: perl (Fedora)
   Importance: Unknown => Undecided

** Bug watch added: rt.perl.org/rt3/Public/ #106212
   http://rt.perl.org/rt3/Public/Ticket/Display.html?id=106212

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to perl in Ubuntu.
https://bugs.launchpad.net/bugs/1346043

Title:
  PerlIO dead-locks with threaded fork

Status in perl package in Ubuntu:
  New
Status in perl package in Fedora:
  Fix Released

Bug description:
  This bug can be found on Fedora or Perl bug tracking system and fixed
  there.

  https://bugzilla.redhat.com/show_bug.cgi?id=947444
  https://rt.perl.org/Public/Bug/Display.html?id=106212

  I have same issue with Ubuntu 12.04.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/perl/+bug/1346043/+subscriptions



More information about the foundations-bugs mailing list