develooper Front page | perl.perl5.porters | Postings from January 2017

[perl #125685] Thread race in dist/IO/IO.xs

From:
Hugo van der Sanden via RT
Date:
January 26, 2017 00:05
Subject:
[perl #125685] Thread race in dist/IO/IO.xs
Message ID:
rt-4.0.24-23417-1485389109-407.125685-15-0@perl.org
On Thu, 05 Jan 2017 14:22:30 -0800, jkeenan wrote:
> I can confirm that 986a805c4b258067b82c4f1254518e53cdb1acdf
> is the problematic commit.

I took a quick look through, and the manipulation of PL_check[] looked thread-unsafe; checking a bit further I find in perlvars.h:
  For thread safety, modules should not write directly to this array.
  Instead, use the function L</wrap_op_checker>.

I don't see mention of a function to remove the inserted checker again though, I guess that's rather harder to do safely.

Hugo

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=125685



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About