This is the mail archive of the
mailing list for the elfutils project.
Re: [PATCH] Add --core-pattern option to eu-stack
- From: Oleg Nesterov <oleg at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Wed, 26 Nov 2014 21:57:23 +0100
- Subject: Re: [PATCH] Add --core-pattern option to eu-stack
On 11/26, Jan Kratochvil wrote:
> 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
Sorry for confusion.
I meant, it would be better if PTRACE_ATTACH/PTRACE_SEIZE failed in
this case. But it is too late to change this old behaviour.