[Bug 52213] Thread crashes when pthread_exit is called in a SIGQUIT handler