This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add --core-pattern option to eu-stack


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]