News for hackers. Stuff that matters.
Re:When should I not kill -9 a process? by voltagex_ on Saturday May 24, 2014 @12:44PM (#7793714)
I never thought of handling SIGSEGV. What would you use it for?
Re:When should I not kill -9 a process? by dfox on Saturday May 24, 2014 @09:09PM (#7795057)
It's mostly about removing checks for rare occurrences:

* catching of NULL pointer references (ie. transforming SEGV into catchable userspace exception) * testing whether some in memory data have been changed/accessed (ie. mprotect(), wait for SEGV, set flag, un-mprotect(), return) * paging in userspace (eg. across network)

All that seems obscure (and is mainly useful for virtual machines and such), but it is not so rare to find process that actually does this (usually because of some library, or because it is some kind of virtual machine)

Re:When should I not kill -9 a process? by xfs on Saturday May 24, 2014 @02:31PM (#7793981)
Many applications will try to print their own stack before exiting on SIGSEGV.