News for hackers. Stuff that matters.
Re:Why isn't memset() async-signal-safe? by JoshTriplett on Friday January 06, 2017 @03:22AM (#13334734)
Depending on the nature of your segfault handler, you could either make sure you have any data structures you need already allocated, or allocate out of a separate arena. Or, alternatively, handle the signal in another process entirely.
Re:Why isn't memset() async-signal-safe? by gpderetta on Friday January 06, 2017 @05:36AM (#13335326)
I.e. it is safe as long as you follow the same rules you would use in a normal signal handler :).

Out of process handling is a robust solution though.