Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.development.system > #127

Re: strace hangs

From pacman@kosh.dhis.org (Alan Curry)
Newsgroups comp.os.linux.misc, comp.os.linux.development.system
Subject Re: strace hangs
Date 2011-05-13 21:45 +0000
Organization Aioe.org NNTP Server
Message-ID <iqk8pt$1v9$1@speranza.aioe.org> (permalink)
References <17211d1e-00d1-4554-9648-7ec81d3cfb93@z13g2000prk.googlegroups.com>

Cross-posted to 2 groups.

Show all headers | View raw


In article <17211d1e-00d1-4554-9648-7ec81d3cfb93@z13g2000prk.googlegroups.com>,
John  <freesoft12@gmail.com> wrote:
>Hi,
>
>I am running strace on a file containing a bunch of makefile
>commands.
>
>
>strace -o strace.out -fF -s2048 -e trace=all /bin/sh ./run_make.txt
>
>
>strace is not exiting and return control back to the shell.
>
>
>When I do a tail of the strace.out, I am seeing exit_group calls.
>Doesn't that mean that the child processes called by 'make' finished:
>
[...]
>
>Any suggestions as to why the strace is hanging? Is it because of
>child processes that have not exited? If so, how to find out which
>child processes are still running?

pstree `pidof strace`

or examine the strace output, match every fork and clone to an exit.

or try it with -ff, which puts each traced process in a separate output
file, and look for the output file that doesn't have some kind of
termination at the end.

-- 
Alan Curry

Back to comp.os.linux.development.system | Previous | NextPrevious in thread | Find similar


Thread

strace hangs John <freesoft12@gmail.com> - 2011-05-13 09:09 -0700
  Re: strace hangs pacman@kosh.dhis.org (Alan Curry) - 2011-05-13 21:45 +0000

csiph-web