LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-11-2010, 03:24 PM   #1
larold
Member
 
Registered: Jan 2010
Posts: 42

Rep: Reputation: 15
Why does strace -p hang 90% of the time on me?


The subject says it all. Linux strace, attaching to a running process with the '-p' argument, hangs about 80-90% of the time these days on me. Sometimes it will display the current system call in progress, sometimes it will not. I've tried sending all the standard signals to no avail. The only option is to suspend (ctrl-z) it or hard kill it. (-9 it.)

Does anyone have any suggestions, or have you seen this behavior before? Am I going nuts? Let me know what useful system information I can provide.
 
Old 02-12-2010, 01:33 AM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
I'm not really sure what to tell you about WHY it's happening; but the same thing happened to me using strace to debug my window manager recently.
I'm not a big strace user, so I don't know much about it; however, using the -p argument caused strace (and my WM) to hang. I had to log out to kill the process.
Instead of using `strace -p` I changed the commandline like so, with the app I am stracing
as the last arg on the line (before the >>log):

Code:
strace -o ~/.i3/strace-logfile -fF -s2048 /usr/bin/i3 >>~/.i3/i3-logfile
and that worked fine I got the strace output to the logfile, and the WM ran as normal. I cannot explain why though but maybe you can do your strace this way too?

Sasha
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/mnt directory most of the time hang !!! ajeetraina Linux - Server 2 07-31-2007 11:32 PM
hang up at the time of booting narendra.pant Linux - Newbie 2 03-21-2006 06:57 AM
the time of the server hang ust Linux - Distributions 6 04-08-2005 10:01 PM
FC2 hang up at boot time when I configured Wireless zillah Linux - Wireless Networking 6 01-20-2005 11:18 AM
hang after 1st time wizard lungboy Linux - Newbie 0 06-19-2003 10:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration