Skip Menu |
 

This queue is for tickets about the threads CPAN distribution.

Report information
The Basics
Id: 97510
Status: rejected
Priority: 0/
Queue: threads

People
Owner: Nobody in particular
Requestors: Ralf.Neubauer [...] wido.bv.aok.de
Cc:
AdminCc:

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



Subject: Tie::Cache together with threads crashes perl
Date: Fri, 25 Jul 2014 18:58:58 +0000
To: "bug-threads [...] rt.cpan.org" <bug-threads [...] rt.cpan.org>
From: "Neubauer, Ralf" <ralf.neubauer [...] wido.bv.aok.de>
Hi, rt.cpan.org #97508 may be a bug in the threads implementation. Ralf Neubauer
Download (untitled) / with headers
text/plain 238b
On 2014-07-25 14:59:10, Ralf.Neubauer@wido.bv.aok.de wrote: Show quoted text
> Hi, > > rt.cpan.org #97508 may be a bug in the threads implementation. > > Ralf Neubauer
The issue is that Tie::Cache is not threads safe. See 'perldoc threads' for more.
Subject: RE: [rt.cpan.org #97510] Tie::Cache together with threads crashes perl
Date: Fri, 25 Jul 2014 19:32:47 +0000
To: "bug-threads [...] rt.cpan.org" <bug-threads [...] rt.cpan.org>
From: "Neubauer, Ralf" <ralf.neubauer [...] wido.bv.aok.de>
Download (untitled) / with headers
text/plain 1.2k
Hi Jerry, please elaborate, exactly what is not thread safe in Tie::Cache and why should it be clear to me by citing a generic manual page as a whole? The only paragraph that talks about thread safety in the cited pod is: Thread-safe modules See "Making your module threadsafe" in perlmod when creating modules that may be used in threaded applications, especially if those modules use non-Perl data, or XS code. However I don't see any non-Perl data or XS code in Tie::Cache. It is just a hash together with a doubly linked list, which of course contains circular references. Under "Making your module threadsafe" in perlmod I only see talk about non-Perl data again. Ralf Show quoted text
> -----Original Message----- > From: Jerry D. Hedden via RT [mailto:bug-threads@rt.cpan.org] > Sent: Friday, July 25, 2014 9:14 PM > To: Neubauer, Ralf > Subject: [rt.cpan.org #97510] Tie::Cache together with threads crashes perl > > <URL: https://rt.cpan.org/Ticket/Display.html?id=97510 > > > On 2014-07-25 14:59:10, Ralf.Neubauer@wido.bv.aok.de wrote:
> > Hi, > > > > rt.cpan.org #97508 may be a bug in the threads implementation. > > > > Ralf Neubauer
> > The issue is that Tie::Cache is not threads safe. See 'perldoc threads' for more. >
Download (untitled) / with headers
text/plain 679b
On 2014-07-25 15:14:15, JDHEDDEN wrote: Show quoted text
> On 2014-07-25 14:59:10, Ralf.Neubauer@wido.bv.aok.de wrote:
> > Hi, > > > > rt.cpan.org #97508 may be a bug in the threads implementation. > > > > Ralf Neubauer
> > The issue is that Tie::Cache is not threads safe. See 'perldoc > threads' for more.
My error. This is an out-of-memory issue; not a threads safe issue. If you reduce the range in: $c{$_} = 1 for 1..30000 to something much lower: $c{$_} = 1 for 1..1000 it works fine. This is a bug in the perl interpreter in that the out of memory condition is not being handled properly and a segfault is occurring. Where this is occurring is beyond my capability to detect.


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.