Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the UR CPAN distribution.

Report information
The Basics
Id: 76865
Status: resolved
Priority: 0/
Queue: UR

People
Owner: BRUMMETT [...] cpan.org
Requestors: ribasushi [...] leporine.io
Cc:
AdminCc:

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



Subject: Global destruction detection is not thread-safe
Your distribution is using the construct END { $global_destroy = 1 } in [1], which is not thread safe as described here [2]. Please consider switching to https://metacpan.org/release/Devel-GlobalDestruction, which has both an XS and a PurePerl variant, both of which are tested to behave correctly under ithreads. Cheers [1] http://cpansearch.perl.org/src/SAKOHT/UR-0.30/lib/UR/DBI.pm [2] https://metacpan.org/source/DOY/Devel-GlobalDestruction-0.05/lib/Devel/GlobalDestruction.pm#L36
Thanks for finding this! We'll switch to Devel::GlobalDestruction in the next release, which should be out in a few weeks. Good to know that making threading work is a concern in Perl these days... :) On Sat Apr 28 09:49:08 2012, RIBASUSHI wrote: Show quoted text
> Your distribution is using the construct END { $global_destroy = 1 } > in > [1], which is not thread safe as described here [2]. Please consider > switching to https://metacpan.org/release/Devel-GlobalDestruction, > which > has both an XS and a PurePerl variant, both of which are tested to > behave correctly under ithreads. > > Cheers > > [1] http://cpansearch.perl.org/src/SAKOHT/UR-0.30/lib/UR/DBI.pm > [2] > https://metacpan.org/source/DOY/Devel-GlobalDestruction- > 0.05/lib/Devel/GlobalDestruction.pm#L36
Starting with 0.39, UR now uses Devel::GlobalDestruction
fixed