linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Why can't I strace some processes?
@ 2001-10-12  8:16 Ian Stirling
  2001-10-12 15:35 ` Ian Stirling
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Stirling @ 2001-10-12  8:16 UTC (permalink / raw)
  To: linux-kernel

How do I strace processes that use clone, to create multiple threads?
I've tried the latest strace.
Thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Why can't I strace some processes?
  2001-10-12  8:16 Why can't I strace some processes? Ian Stirling
@ 2001-10-12 15:35 ` Ian Stirling
  2001-11-04 20:45   ` Mike Coleman
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Stirling @ 2001-10-12 15:35 UTC (permalink / raw)
  To: linux-kernel

> 
> How do I strace processes that use clone, to create multiple threads?
> I've tried the latest strace.
> Thanks.

Sorry, I was going for concise, and brief, but realise now I probably went
too far.

Details: Kernel 2.4.11 strace 4.4 (neither of these seem critical.
http://www.edonkey2000.com/files/ed2k_linux_gui_0.1alpha.tar.gz
Has a binary of a p2p client for linux.
It's closed-source, and has a number of issues.
In attempts to find workarounds for these, I attempted to strace the process,
and it diddn't quite work.

It only ever traces syscalls made by the process that originated the
clone call, never resultant processes, even with -f set.
Attempring to connect and trace the resultant processes causes strace to
exit immediately, sometimes STOPing the process that was attempted to
be traced.

As all the work is done by the threads, and these seemingly can't be traced,
there is an annoying problem.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Why can't I strace some processes?
  2001-10-12 15:35 ` Ian Stirling
@ 2001-11-04 20:45   ` Mike Coleman
  0 siblings, 0 replies; 3+ messages in thread
From: Mike Coleman @ 2001-11-04 20:45 UTC (permalink / raw)
  To: Ian Stirling; +Cc: linux-kernel

Ian Stirling <root@mauve.demon.co.uk> writes:
> Details: Kernel 2.4.11 strace 4.4 (neither of these seem critical.
> http://www.edonkey2000.com/files/ed2k_linux_gui_0.1alpha.tar.gz Has a binary
> of a p2p client for linux.  It's closed-source, and has a number of issues.
> In attempts to find workarounds for these, I attempted to strace the
> process, and it diddn't quite work.
> 
> It only ever traces syscalls made by the process that originated the
> clone call, never resultant processes, even with -f set.
> Attempring to connect and trace the resultant processes causes strace to
> exit immediately, sometimes STOPing the process that was attempted to
> be traced.

AFAIK, strace 4.4 doesn't know how to trace clone/threads.  I think they're
working on adding the capability.  If you're desperate, you can try
subterfugue, which can trace clone/threads, although it's alpha code and has
some other problems.  (There's a debian package, or see www.subterfugue.org.)

Mike

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-11-04 20:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-12  8:16 Why can't I strace some processes? Ian Stirling
2001-10-12 15:35 ` Ian Stirling
2001-11-04 20:45   ` Mike Coleman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).