develooper Front page | perl.perl5.porters | Postings from September 2013

[perl #119897] glob in threads is broken in perl5.18

Thread Previous | Thread Next
From:
Father Chrysostomos via RT
Date:
September 20, 2013 15:39
Subject:
[perl #119897] glob in threads is broken in perl5.18
Message ID:
rt-3.6.HEAD-1873-1379691584-1222.119897-15-0@perl.org
On Fri Sep 20 04:09:25 2013, niels@thykier.net wrote:
> 
> This is a bug report for perl from niels@thykier.net,
> generated with the help of perlbug 1.39 running under perl 5.18.1.
> 
> 
> -----------------------------------------------------------------
> [Please describe your issue here]
> 
> Dear perl porters,
> 
> When Debian migrated to Perl5.18.1, I started to experience random
> seg. faults in one of my perl scripts.  hugmeir from #p5p devised
> the following mimimal test case:
> 
> """
> use threads;
> scalar glob("*");
> threads->create(sub { glob("*") })->join();
> """
> 
> The test case itself does not crash, but it does spew out warnings
> like:
> 
> """
> Unbalanced string table refcount: (1) for "I" during global
>    destruction.
> Attempt to free nonexistent shared string 'I', [...]
> Attempt to free unreferenced scalar: SV 0x8c6a1fc, [...]
> """
> 
> Based on that, I replaced my calls to "glob" in the threads and my
>    script
> stopped crashing.
> 
> 
> hugmeir also suggested that he believed this bug to also affect blead
> (I have not tested that assertion).  TonyC from #p5p suggested that it
> might be because the "glob state isn't being cloned".

Interesting.  Could this be the same as #117823?

-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: new
https://rt.perl.org:443/rt3/Ticket/Display.html?id=119897

Thread Previous | Thread Next


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