Skip Menu |

This queue is for tickets about the IO CPAN distribution.

Report information
The Basics
Id: 106244
Status: resolved
Priority: 0/
Queue: IO

Owner: Nobody in particular
Requestors: william [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: Thread race in dist/IO/IO.xs
Date: Mon, 3 Aug 2015 18:14:24 -0700
To: bug-IO [...]
From: William Ahern <william [...]>
Download (untitled) / with headers
text/plain 493b
There's a thread race in IO.xs with the manipulation of PL_check. The Perl5 ticket I submitted contains a longer description of the issue: With this bug you cannot use the IO module from multiple interpreters in different threads. My solution was to preload IO.xs when creating each interpreter while holding an exclusive write lock, and use reader locks when running Perl code so IO.xs cannot be loaded in parallel with regular code.
Ticket migrated to github as

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to