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

[perl #126474] malloc deadlock in unsafe signal handler

Thread Previous
Tony Cook via RT
October 28, 2015 22:34
[perl #126474] malloc deadlock in unsafe signal handler
Message ID:
On Wed Oct 28 03:44:27 2015, 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.


via perlbug:  queue: perl5 status: new

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About