On Wed, 26 Nov 2014 21:08:22 +0100, Oleg Nesterov wrote: > Yes. I guess PTRACE_ATTACH should work but it is pointless, this > thread can't report an event and other ptrace requests won't work. > > In fact I think PTRACE_ATTACH should fail in this case... I have used PTRACE_SEIZE instead: ptrace(PTRACE_SEIZE, 13902, 0, 0) = 0 ptrace(PTRACE_INTERRUPT, 13902, 0, 0) = 0 - here close(0); wait4(13902, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV && WCOREDUMP(s)}], __WALL, NULL) = 13902 Jan