strace Questions
2
Solved
The title says it all friends!
How do I give command line arguments to an executable whose execution I want to monitor using ltrace/strace ?
For example, if the executable is 'a.out' and I want t...
Mummer asked 31/8, 2014 at 18:14
4
I have a python GUI application. And now I need to know what all libraries the application links to. So that I can check the license compatibility of all the libraries.
I have tried using strace, ...
Idolize asked 4/3, 2016 at 13:11
3
Solved
I wanted to trace the system calls made by the find command to debug some performance issues however I could not figure out how to do this on Mac OS X Yosemite. How can I trace system calls for an ...
16
I'm trying to attach to a program with GDB but it returns:
Attaching to process 29139
Could not attach to process. If your uid matches the uid of the target
process, check the setting of /proc/sys...
1
I have a multithreaded process running on RHEL6.x (64bit).
I find that the process hangs and some threads (of the same process) crash most of the time when I try to bring up the process. Some thre...
6
Self contained reproducible example
I need to strace the output of any command through python. But I only need to translate the following amd linux command to mac m1/arm commands (so python is like...
3
I have a singlethreaded Unix process that communicates over TCP with other processes.
The problem is the following. When I start up the process it hangs (no busy loop) until I kill it.
The funny th...
9
Solved
OS X lacks linux's strace, but it has dtrace which is supposed to be so much better.
However, I miss the ability to do simple tracing on individual commands. For example, on linux I can write str...
4
Solved
Is it possible that I can view the line number and file name (for my program running with ltrace/strace) along with the library call/system call information.
Eg:
code section :: ptr = malloc(siz...
7
Solved
I need to track read system calls for specific files, and I'm currently doing this by parsing the output of strace. Since read operates on file descriptors I have to keep track of the current mappi...
Freshwater asked 8/3, 2012 at 7:26
3
Solved
I invoked getpid() in a program for many times (to test the efficiency of system calls), however when I use strace to get the trace, only one getpid() call is captured.
The code is simple:
#include...
Hysteresis asked 23/4, 2011 at 18:49
6
I've got a long running node.js process that sometimes jumps to 100% CPU and stops responding to requests. The most recent time it did this I attached strace to the process, and here's what I saw:
...
Nunciata asked 12/3, 2014 at 6:24
4
Solved
I used strace to attach to a process briefly. The process created 90 threads. When I found the offending thread, I had to tediously search for the parent thread, then the grandparent thread, and so...
Generate asked 29/10, 2010 at 15:9
7
I need help on stracing Android apps in the SDK emulator.
Here is my setup:
I have an Android SDK emulator running the Android API 4.03 ADB shell connected to emulator.
I am able to install an A...
2
Solved
Strace can be used for tracing process by passing command for the process as below
strace -f -tt -o strace.log -D <SOME_COMMAND>
But below command fails to trace the syscalls of started dae...
Rutherfordium asked 8/3, 2018 at 9:56
3
When I run
strace -f strace /bin/ls
to know how strace work it failed with
ptrace(PTRACE_TRACEME, 0, 0, 0) = -1 EPERM (Operation not permitted)
even with root account.
It there any soluti...
Contributor asked 22/12, 2015 at 9:54
12
Solved
A colleague once told me that the last option when everything has failed to debug on Linux was to use strace.
I tried to learn the science behind this strange tool, but I am not a system admin gur...
9
Solved
I'm looking for a Windows equivalent of Systrace or at least strace. I'm aware of
StraceNT, but wondering if there are any more alternatives out there. Specifically, I'm looking for a specific way...
3
Solved
I'm trying to debug why ngspice prints annoying newlines to stderr while running a simulation. I'm trying to locate it in one of the 2400 source files tracing back to 1993 but it's not as easy as i...
3
Does anyone know if there is something like strace, dtruss, or dtrace for iPhone?
tester-iPhone:/tmp root$ apt-cache search dtruss
tester-iPhone:/tmp root$ apt-cache search dtrace
tester-iPhone:...
2
How can I get current working directory in strace output, for system calls that are being called with relative paths? I'm trying to debug complex application that spawns multiple processes and fail...
1
I am attempting to debug Gammu, a "library and command line utility for mobile phones", which is "timing out" when communicating normally with the modem.
gammu identify -> No response in specified...
2
Attaching strace shows a lot of these messages:
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=10, events=POLLIN}], 6,...
Shriek asked 22/10, 2012 at 20:6
5
My goal is to monitor which ports are opened and closed by a multi-process application.
My plan is to run the application in a Docker container, in order to isolate it, and then use strace to repor...
1
Solved
I am confused about this strace report on an ArchLinux, 64bit intel machine:
~ sudo strace -c -p 876
[sudo] password for pmatos:
strace: Process 876 attached
strace: [ Process PID=876 runs in x32...
Fortunio asked 4/10, 2018 at 12:55
1 Next >
© 2022 - 2024 — McMap. All rights reserved.