[email]jek_bask@ngs.ru[/email] (Evgeny Baskakov) writes:
> void global_handler(args) {
> void (*thread_h)() = pthread_getspecific(thread_specific_handler_key);
> (*thread_h)(args);
> }
This is quite likely to crash on at least some pthread
implementations (especially if sigaltstack was called beforehand):
you are calling async-signal-unsafe function from a signal handler.

Cheers,
--
In order to understand recursion you must first understand recursion.