Questions tagged [trace]
The trace tag has no summary.
61 questions
2 votes
0 answers
62 views
How does one retroactively debug a coredump generated from an AppImage?
When a non-reproducible crash occurs in an installed .flatpak package, I can debug it with flatpak-coredumpctl, even if I've solely installed the relevant debug packages after the crash occurred. This ...
4 votes
3 answers
8k views
how to diagnose the originator of the signal 15 send to sshd
I recently met a issue that my sshd keep dead repeatly, I did the following check. from the /var/log/message, I could see the sshd keeped restarting Apr 23 12:05:39 host1 systemd: Stopping OpenSSH ...
0 votes
2 answers
172 views
Avoid printing of 'tee' trace line
I have the following in a script: #!/bin/bash logFile='script.log' echo -n > $logFile log="tee -a $logFile" set -x scp ... user@host:... ssh user@host " echo '...message...' &...
0 votes
2 answers
2k views
/sys/kernel/debug/tracing/trace overwrites itself after a few seconds. How can I collect it without duplicates?
When setting up the function_graph tracer in Linux (Ubuntu 18), the trace that is stored at /sys/kernel/debug/tracing/trace only stores a couple of seconds before overwriting itself. As the period ...
3 votes
1 answer
3k views
'cannot attach kprobe, probe entry may not exist' when execute trace-bpfcc
I am following bcc Tutorial and trying to execute the trace-bpfcc command: sudo trace-bpfcc 'sys_execve "%s", arg1' The command fails with an error: cannot attach kprobe, probe entry may not ...
0 votes
1 answer
75 views
Declare non environment variables and print them directly afterwards
I want to declare a few non environment variables and print them directly afterwards. For example: read domain && web_application_root="${HOME}/www" && domain_dir="${...
0 votes
0 answers
276 views
How to trace problem of application not starting in Linux?
I have opensuse leap 15.0. I installed a libero soc application from microsemi. It is giving me a bizarre problem. When installed libero soc v12, after clicking its desktop icon, it starts ...
26 votes
1 answer
9k views
Turn on xtrace with environment variable
Bash has a sometimes-useful feature whereby if you turn on the "-x" option (I believe the symbolic name is xtrace), Bash outputs each line of script as it executes it. I know of two ways to enable ...