It is a diagnostic, debugging and instructional userspace utility for Linux.
Questions tagged [strace]
16 questions
6
votes
4 answers
Process hangs before termination with ubuntu 18.04
When using ABAQUS 6.14 (but also ABAQUS 2018) on ubuntu 18.04 everything seems to work fine except the termination of the standard process (the process started when performing an implicit analysis -- if you are not familiar with this it doesn't…
David
- 383
- 1
- 5
- 25
5
votes
1 answer
Gnome Shell and high cpu usage
I am running ubuntu 18.04 on a old(ish) laptop, it's a hp dv7 6180sl with upgraded ram (16gb) and SSD. It's old but still fast enough for my job.
Since a few ubuntu versions (I always do a complete reinstall at every release, so I'm not coming from…
ToX 82
- 391
- 3
- 12
3
votes
1 answer
How to 'strace' a systemd service on startup?
I'm working on an embedded system running a stripped down version of Ubuntu 22.04. We've recently updated some hardware in the embedded system and I'm working on getting our Ubuntu image working on the new hardware.
On the old hardware the…
Gogeta70
- 267
- 2
- 7
2
votes
1 answer
Python not finding file that exists
Python (3.5) is not finding a file that is in a directory and I am trying to figure out where to put it. Here is the error I get:
Traceback (most recent call last):
File "/home/rik/Pillow/faces.py", line 35, in
from PIL import Image
…
Rik
- 449
- 2
- 5
- 12
1
vote
1 answer
Order of files being created when installing Firefox
I would like to find out what file operations are carried out when installing Firefox with apt-get. In particular, is main executable created before other files that are needed to use the browser as intended. How should I go about this?
ArekBulski
- 1,181
- 2
- 12
- 31
1
vote
1 answer
Bluetooth choking
I had turned bluetooth off in the system settings, but top still showed it using 100% of CPU and strace shows a ton of lines like:
poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=6, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8,…
Amanda
- 9,051
- 17
- 53
- 98
1
vote
0 answers
Debugging a binary inside a snap
I am trying to run a binary that's from a snap through strace to debug its workings.
Because the executable is accessed via /snap/bin/prog which is symlinked to /usr/bin/snap I will only see snap's system calls, not the program's.
How can I go about…
Bram
- 2,169
- 24
- 42
1
vote
1 answer
apt install graphviz failing with segmentation fault
Trying to install the graphviz library and am seeing this:
mtaylor@galaxy:~/tmp/apt-strace-output$ sudo apt install -y graphviz
Reading package lists... Done
Building dependency tree
Reading state information... Done
graphviz is already the…
Marshall Taylor
- 11
- 1
0
votes
1 answer
Linux Call Trace
I'm currently facing an issue where in the boot sequence the computer stops booting. This occurs randomly! It always gets stuck on the same place (below). I can't really understand what this is telling me. Anyone have an idea how i might fix this…
CoolDude
- 51
- 2
- 12
0
votes
0 answers
strace doesn't output as expected for 'ls'
When I use strace with ls and save it using `-o' option, it's going to show output like the below:
➜ test strace -o st.out ls
st.out test
➜ test
But my question is, how did this happen?
Because when you run strace, it's going to show system…
0
votes
0 answers
Need to debug postfix service for slow bootup
I had slow bootup recently and found using systemd-analyze that postfix-service is taking almost 25 s to start, critical-chain told me it was specifically postfix@-service.
PS: I also do not know what is postfix@
Upon using journalctrl -u…
Aaryan BHAGAT
- 138
- 2
- 10
0
votes
0 answers
strace, netstat or tcpdump to identify unknown network activity and program
I've been trying to uncover the origin of some network calls, specifically to ip addresss associated with bc.googleusercontent.com
I'm a bit curious why this network activity only happens when using Firefox and from what I've read…
jeffschips
- 449
- 4
- 13
0
votes
1 answer
Extract one column of strace -c
I am trying to get the system call names for common commands and don't have list of commands.
Do you have any idea how can I get list of system calls for some commands.
Finally I tried to do such thing manually for each command. I run strace -c ls…
ali-sezar
- 11
- 2
0
votes
0 answers
How to get list of .so that python script use?
For example I run python3 my_script.py, my_script.py uses tensorflow package inside, that use cuda libs, how can I get list of .so libs that are loaded at script execution?
UPDATE:
strace -e trace=open python3 my_script.py
don't print .so files,…
mrgloom
- 870
- 5
- 18
- 29
0
votes
0 answers
Strace run command on specific trace string match
I want to run a command on specific text match from trace output.
While strace is monitoring another running process.
I am using stransmit for streaming.
My requirement is to strace output from stransmit and execute a command if the trace matches a…
Jatinder Kumar
- 101
- 3