Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Fri, 24 May 2002 01:03:41 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Problem attaching strace to a process Message-ID: <20020524050341.GA10193@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <002001c202db$fff820e0$6132bc3e AT BABEL> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002001c202db$fff820e0$6132bc3e@BABEL> User-Agent: Mutt/1.3.23.1i On Fri, May 24, 2002 at 05:32:22AM +0100, Conrad Scott wrote: >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, strace only works on cygwin processes. strace itself is not a cygwin process. So, "strace strace" is a no-op. cgf -- 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/