LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-26-2005, 11:26 AM   #1
Quigi
Member
 
Registered: Mar 2003
Location: Cambridge, MA, USA
Distribution: Ubuntu (Dapper and Heron)
Posts: 377

Rep: Reputation: 31
strace only shows execve


Whatever command I try to strace, I just get the execve that tries to start it printed. It seems like the command isn't even run; strace returns immediately, and there is no output from, e.g., "ls". Example:
Code:
% strace ls
execve("/bin/ls", ["ls"], [/* 43 vars */]) = 0
% strace sleep 666
execve("/bin/sleep", ["sleep", "666"], [/* 43 vars */]) = 0
% which strace
/usr/bin/strace
% strace -V
strace -- version 4.5.3
The "sleep 666" example is from the manual page strace(1) (they'd interrupt it, but I don't even get that far).

I'm running FC2 on a Dell Latitude. I tried the -f and -v options, with no effect. Any idea why strace is behaving like this, or how it could be fixed?

P.S. I'm not sure if "strace" counts as software. If not, please refer me to a more appropriate forum.

Last edited by Quigi; 10-26-2005 at 11:29 AM.
 
Old 10-27-2005, 05:37 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Dunno if an upgrade will make any difference but on my FC2 strace is version is 4.5.5 .


P.S. I'm not sure if "strace" counts as software.
Does in my book.
 
Old 10-27-2005, 01:44 PM   #3
Quigi
Member
 
Registered: Mar 2003
Location: Cambridge, MA, USA
Distribution: Ubuntu (Dapper and Heron)
Posts: 377

Original Poster
Rep: Reputation: 31
Thanks, unSpawn. Indeed I was behind with my version. I updated:
Code:
% sudo yum update strace
Password:
Gathering header information file(s) from server(s)
Server: Fedora Core 2 - i386 - Base
Server: Fedora Core 2 - i386 - Released Updates
Finding updated packages
Downloading needed headers
Resolving dependencies
Dependencies resolved
I will do the following:
[update: strace 4.5.5-1.i386]
Is this ok [y/N]: y
Downloading Packages
Getting strace-4.5.5-1.i386.rpm
strace-4.5.5-1.i386.rpm   100% |=========================|  83 kB    00:00     
Running test transaction:
Test transaction complete, Success!
strace 100 % done 1/2 
Completing update for strace  - 2/2
Updated:  strace 4.5.5-1.i386
Transaction(s) Complete
% strace sleep 666
execve("/bin/sleep", ["sleep", "666"], [/* 41 vars */]) = 0
%
No change here. It shows the execve call, but doesn't seem to perform it, because it exits immediately (with status 0, "ok").

However, "strace -p pid" correctly attaches to a pre-existing process (e.g., ls stopped with C-z), and shows its system calls.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Usage of strace mdb84 Linux - Software 1 03-25-2005 02:13 AM
strace question ronopolis Linux - Software 0 01-19-2005 10:41 AM
strace for ssh williewang Programming 1 08-03-2004 08:32 PM
snmp staus shows it running but on trying MRTG, it shows public@ipaddr not giving res swati220781 Linux - Networking 3 07-08-2004 05:32 PM
desktop shows on TV but movie shows black screen litrelord Mandriva 6 07-05-2004 05:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:47 PM.

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