Bug#723805: perl: Seg faults sometimes (presumably due to "use threads;")
Niels Thykier
niels at thykier.net
Fri Sep 20 11:13:26 UTC 2013
On 2013-09-20 12:00, Niels Thykier wrote:
> [...]
>
> hugmeir from #p5p suggested the following:
>
> """
> use threads;
> scalar glob("*");
> threads->create(sub { glob("*") })->join();
> """
>
> While the snippet above itself does not crash, it spews 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, [...]
> """
>
> And if I place our use of "glob" inside the thread (in our test runner)
> the crash seems to go away.
>
> I am not sure if this bug has been filed upstream yet (waiting for
> hugmeir to get back to me on that).
>
> ~Niels
>
>
Forwarded to upstream as #119897[1].
~Niels
[1] https://rt.perl.org/rt3/Public/Bug/Display.html?id=119897
(sending a separate mail to set the forwarded value for the bug)
More information about the Perl-maintainers
mailing list