The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
254 views

ntfs disk dying or..? rsync and mkdir failing, strange behavior

System root@host:~# uname -a Linux host 3.2.0-4-686-pae #1 SMP Debian 3.2.57-3+deb7u1 i686 GNU/Linux Mounts root@host:~# mount | tail -2 /dev/sda1 on /mnt/sda1 type ntfs ...
1
vote
1answer
52 views

how to collect all files, that are opened by linux application

I want to collect a list of all files, that are opened by an application (in my case, it's a s/w bulder). 'strace -f' fails, because it mixes continuos opening from different forks, for example: ...
0
votes
1answer
53 views

Tracing syscalls

I am trying to learn some tricks using "trace" (or dtrace or strace or truss), so I using the command: trace -d [random PID] I am getting the following error messages: trace error: trace facility ...
1
vote
0answers
209 views

Understanding the strace output on a mac

I am seeing syscalls that I do not understand. Multiple calls ending with _nocancel. E.g. open_nocancel, close_nocancel. What are these calls and where do I find information about these? Google does ...
0
votes
1answer
294 views

Correlating strace output to source code function calls

I'm trying to fix a keyboard problem in a Linux application which I have the source code for. The application starts a TCP server and sends local keyboard and mouse events to connected clients. What's ...
1
vote
1answer
404 views

What is a SIG_0 when looking at an strace

Attaching strace to a process that is using a lot of cpu, shows that the pid is 'killed' over and over. The process is using 130% cpu. What is a tgkill( SIG_0) ? strace -p 3876 nanosleep({0, ...
1
vote
2answers
570 views

Interfacing strace with Process Name instead of PID

How do I implement a wrapper script pstrace in bash that changes the interface of [sudo] strace -c -p [PID] to [sudo] pstrace -c -p [PROCESS-NAME] similar to how killall [PROCESS-NAME] is ...
2
votes
1answer
474 views

How to calculate and group the time differences of specified syscalls when running strace

I'm planing to do some web performance testing (to see how much time it's spent for each file), but it could be useful for any application. I exactly know existence and how to use different ...
2
votes
2answers
622 views

How do I strace the whole system?

strace allows you to monitor the activity of a particular program. How can I monitor the activity of all programs (expect for sshd/bash/strace_itself)? Currently I'm using a hack like this: function ...
0
votes
1answer
5k views

Debugging connection timeouts using strace?

I'm trying to figure out why is Eclipse spinning, so I decided to fire up strace. I found the eclipse process using: $ ps ax | grep java 5546 ? Sl 19:04 /usr/bin/java ... [arguments ...
5
votes
5answers
1k views

Linux equivalent to Mac OS X's fs_usage

Is there a Linux equivalent to the Mac OS X command fs_usage? According to the man page it does the following: "report system calls and page faults related to filesystem activity in real-time". I ...
2
votes
2answers
1k views

How does 'strace' work?

Recently, I was using mv to move a large amount of files from my hard drive to a flash drive. I forgot to add a verbose flag so I had no idea "where" the move was at and how many transfers remained. ...
1
vote
1answer
2k views

Strange strace and setuid behaviour: permission denied under strace, but not running normally

This is related to this question. I have a script (fix-permissions.sh) that fixes some file permissions: #! /bin/bash sudo chown -R person:group /path/ sudo chmod -R g+rw /path/ And a small c ...
2
votes
1answer
702 views

Why do strace/truss sometimes 'fix' stuck processes?

Sometimes you have a stuck process that's been stuck for a while, and as soon as you go to poke at it with strace/truss just to see what's going on, it gets magically unstuck and continues to run! So ...
3
votes
1answer
1k views

Will strace watch system calls recursively on child processes of the main process being observed?

If I run strace on a program and that program spawns a subprocess (e.g. perl's system() call), will strace report the system calls for the child process as well?