This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problem attaching strace to a process


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.

Attachment: cygcheck.out
Description: Binary data

--
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/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]