Function dump_gjs_stack_on_signal_handler cannot be used safely as signal handler
The dump_gjs_stack_on_signal_handler
function is used as a signal handler, but it calls gjs_dumpstack
, which in turn allocates memory. Allocating memory is not safe to do in a signal handler, see signal-safety(7).
This issue was found by the OpenBSD developers.