Problem attaching strace to a process
Conrad Scott
Conrad.Scott@dsl.pipex.com
Fri May 24 06:20:00 GMT 2002
I'm trying to use strace to attach to a running process (strace -p pid) but
I'm not getting anywhere.
To be precise, I get no output until the target process exits, when I get,
for example, 'Attached to pid 2236 (windows pid 2156)', and no strace
output.
If I strace strace doing this, I get:
$ strace strace -p 2156
**********************************************
Program name: C:\cygwin\bin\strace.exe (324)
App version: 1003.10, api: 0.51
DLL version: 1003.10, api: 0.51
DLL build: 2002-02-25 11:14
OS version: Windows NT-5.0
Date/Time: 2002-05-24 05:20:43
**********************************************
542 7126 [unknown (0x90C)] strace 324 sig_send: pid 2156, signal -1,
its_me 0
148 7274 [unknown (0x90C)] strace 324 getsem: pid 2156, ppid 1860, wait
1000, initializing 0
233 7507 [unknown (0x90C)] strace 324 sig_send: Not waiting for
sigcomplete. its_me 0 signal -1
85 7592 [unknown (0x90C)] strace 324 sig_send: returning 0 from
sending signal -1
Attached to pid 2156 (windows pid 2420)
The strace output appears as soon as I run the strace command; the 'Attached
...' message appears once the target dies.
Am I missing something? (presumably something obvious . . .) or are the
gremlins having a party in my machine?
Perplexed and seeking solace,
// Conrad
p.s. I've attached the usual cygcheck output to this message.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 19380 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20020524/537795b7/attachment.obj>
-------------- next part --------------
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list