Skip to contentSkip to conversation

Is this a clone() failing?

DISCUSSION Tom Horsley 1 participant 1 message Oct 22, 2001

lore
Share & tools
lore
#0 lore raw

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).
--
[email protected] \\\\ 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 \\\\ !!!!!