mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* insufficent ptrace status when a thread calls exec
@ 2005-12-14 12:20 Tom Horsley
  0 siblings, 0 replies; only message in thread
From: Tom Horsley @ 2005-12-14 12:20 UTC (permalink / raw)
  To: linux-kernel; +Cc: bugsy

The redhat folks sent me to the kernel folks with this one:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=171323

This bugzilla contains a test program that takes the (admittedly
weird) action of having a thread in a multi-threaded program
call exec() (not fork then exec, just exec :-). When a poor
old debugger is debugging this thing, most of the threads
just up and disappear, the main thread says it is about to
exit, then instead of exiting, it actually execs.

I don't believe there is enough information laying around for
any debugger to deduce what just happened and handle it
correctly. The bugzilla proposes the creation of a new
extended status so the main thread could say "I'm about to
exec on behalf of one of my threads which are all disappearing"
instead of saying "I'm about to exit" (which is a lie).

I certainly don't know enough to figure out how to actually
implement this and propose a patch, but I thought I'd at least
raise the issue with folks who probably know more about ptrace
than I do.

Thanks.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-12-14 12:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-14 12:20 insufficent ptrace status when a thread calls exec Tom Horsley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome