this may have been asked before, but I couldn't find it in a search, and no useful results on google. is there any way at all to figure out what thread in a multithreaded program generates a fault? I can get the fault address by using sigaction(), but it would be nice to get the current thread id and just kill that thread instead of shutting down the whole application.