Is this a clone() failing?

From: Tom Horsley (Tom.Horsley@mail.ccur.com)
Date: Mon Oct 22 2001 - 10:13:40 EST


Consider the case of a debugger which also happens to be a multi-threaded
application. From what I understand, clone() is supposed to allow you to
inherit all attributes so the different threads can act like they are really
part of the same program, but it turns out that the thread which does the
ptrace "attach" is the only thread the kernel thinks should be allowed to do
any other operations on the process being debugged.

Should there be a new "clone debug privileges" flag?

Or is this just something (multi-threaded) debuggers have to live with?

(It wasn't too hard to force a single thread to always be the one that does
all ptrace() calls).

--
Tom.Horsley@mail.ccur.com                \\\\      Will no one rid me of
Concurrent Computers, Ft. Lauderdale, FL    \\\\     this troublesome
Me: http://home.att.net/~Tom.Horsley/          \\\\     autoconf?
Project Vote Smart: http://www.vote-smart.org     \\\\    !!!!!
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Oct 23 2001 - 21:00:30 EST