develooper Front page | perl.perl5.porters | Postings from October 2015

[perl #126474] malloc deadlock in unsafe signal handler

Thread Previous
From:
Tony Cook via RT
Date:
October 28, 2015 22:34
Subject:
[perl #126474] malloc deadlock in unsafe signal handler
Message ID:
rt-4.0.18-9619-1446071653-1348.126474-15-0@perl.org
On Wed Oct 28 03:44:27 2015, kazuhooku@gmail.com wrote:
> Unsafe signal handler calls malloc (via newSVsv), therefore causes
> deadlock when signal is received while malloc is running.
> 
> When I run the following script, and repeatedly send SIGUSR1 to the
> script (e.g. while 1 ; do kill -USR1 proc-id ; sleep 1; done), then
> the script enters a dead lock within the signal handler.

I don't think this is a bug - it's the reason safe signal handlers were introduced.

Tony

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

Thread Previous


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