Skip to main content

Questions tagged [debugging]

is a process of finding and reducing the number of bugs, or defects, in a computer program, thus making it behave as expected

Filter by
Sorted by
Tagged with
1 vote
0 answers
47 views

I want to use my mouse's middle-button in the TTY, so I tried to debug it. When I perform a middle-click, it doesn't show up in evtest /dev/input/eventN. All other actions show up, so I'm in the ...
Caulder's user avatar
  • 111
0 votes
0 answers
30 views

I am working on a debugger and found an issue. I start at the beginning of the dynamic linker (this is a low-level debugger). At this address, I set it so that for a particular signal, the process ...
well-mannered-goat's user avatar
1 vote
0 answers
30 views

So I am working on a debugger for linux s390x system and have the whole disassembler etc set up for reading the ELF file. For debugger I just run it on the process with base address from the process ...
well-mannered-goat's user avatar
0 votes
0 answers
58 views

this is a post that has workaround but not an explanation Sometime in last 4 weeks my LibreOffice on my debian started crashing. Not producing window with eg. LOWriter, just a "crashed docs ...
Marek Sebera's user avatar
0 votes
1 answer
107 views

I'm using KDE on last debian and i get a lot of problem with the menu. I was using the kdemenu to organise the start menu, but i get a lot of trouble : Some .desktop shows in the start menu but not in ...
Frog's user avatar
  • 1
1 vote
1 answer
721 views

During a routine sudo pacman -Syu --needed involving about 50 packages, the upgrade exited early due to a "Less than 1 b/s transferred the last 10 seconds" error. Follwing that, I can no ...
Hyunbin Yoo's user avatar
0 votes
1 answer
84 views

I am working on a process that forks several times. To debug it, I am using a debug file for which I open a fd and which stays the same for all child forks. Then I have a function print_debug, that ...
Bastian's user avatar
  • 25
1 vote
0 answers
367 views

Distribution: Arch Linux OBS Version: 31.0.3 Kernel Version: 6.14.2-arch1-1 v4l2loopback-utils Version: 0.14.0-1 vulkan-radeon Version: 25.0.3-1 > v4l2-ctl --list-devices OBS Virtual Camera (...
Hyunbin Yoo's user avatar
0 votes
1 answer
59 views

I came across the following kernel log entry showing a task named Scanner-0 in an unexpected state, along with a call trace involving kvm_async_pf_task_wait_schedule and a page fault. [320099.377111] ...
supmethods's user avatar
0 votes
0 answers
48 views

I am trying to analyze a VMware memory dump from an AlmaLinux guest. I converted the snapshot to a core dump using vmss2core: vmss2core-sb-8456865.exe -N vSRV1_Snapshot815.vmsn vSRV1_Snapshot815.vmem ...
supmethods's user avatar
-1 votes
1 answer
115 views

Problem steam-1.0.0.82-1.fc41.i686 from RPMFusion is crashing for me upon startup (when invoked from $HOME/.local/share/applications/steam.desktop). An example of this is visible at youtu.be/...
RokeJulianLockhart's user avatar
1 vote
2 answers
144 views

When using bash -x or set -x in a script the output shows the result of the line being processed but not the source line which produced the result. There are times when knowing this as well could ...
Senior Geek's user avatar
0 votes
1 answer
57 views

Does Bash have an option to diagnose (and optionally abort execution) "expanded to empty value" variables? Example (hypothetical): $ bash -c 'echo $x' --xxx bash: line 1: variable 'x' ...
pmor's user avatar
  • 757
0 votes
0 answers
98 views

I need debuginfo for some libraries, for example gstreamer (which are not available in debian repo), but can be built using source packages. However it turns out that the source paths in the debug ...
skyking's user avatar
  • 492
0 votes
0 answers
74 views

System $ uname -r 6.6.23-1-rt28-MANJARO $ cat /etc/*release Manjaro Linux DISTRIB_ID="ManjaroLinux" DISTRIB_RELEASE="24.0.0" DISTRIB_CODENAME="Wynsdey" ...
Anon's user avatar
  • 215
0 votes
1 answer
124 views

When using the --adjust-vma option of objdump all the functions get squashed together, as if there is no debug information about where each function starts. I'll demonstrate with the following simple ...
ariel marcovitch's user avatar
2 votes
1 answer
92 views

Title says it all. But I plugged in an external DVD drive into my Raspberry Pi running Raspbian. It says its Linux compatible However when I actually plug it into the device. Everything goes wrong in ...
CalebK's user avatar
  • 121
0 votes
1 answer
141 views

I am running a program on kali Linux. The program uses Openssl and some other networking libraries. When I try to run the program I get the output below: Failed to open /sys/kernel/debug/ieee80211/...
umarkaa's user avatar
  • 11
0 votes
1 answer
153 views

A Perl script is stuck, root 1317478 99.8 0.0 264072 22516 ? R 04:57 478:37 /usr/bin/perl /usr/share/awstats/wwwroot/cgi-bin/awstats.pl -config=domain.tld-http -staticlinks -configdir=/...
Thomas's user avatar
  • 23
0 votes
1 answer
218 views

The manual for pam_systemd_home states that debug messages can be enabled with debug=yes, but they don't state where to put it. I tried adding the options to the relevant lines in pam.d/system-auth, ...
DarkRise's user avatar
0 votes
1 answer
385 views

strace ... -e sendto shows a successful (i.e. positive return value) outcome of trying to send a UDP datagram somewhere, but tcpdump -i any in that network namespace does not show anything relevant in ...
Vi.'s user avatar
  • 6,005
0 votes
0 answers
544 views

I am working on an embedded Linux system (kernel-5.10.186), and I want to debug a memory leakage in a program. With pmap -x PID, I found the process's heap is increasing consistently. To figure out ...
wangt13's user avatar
  • 651
1 vote
0 answers
44 views

I have the following pre-condition on Linux: I'm using a process to read serial data using pselect on a serial device /dev/ttySX. Data comes in at a stable frequency of 400 Hz. To optimize latency of ...
nyquist's user avatar
  • 11
0 votes
0 answers
452 views

I posted a question at Ask Different about SSH tunneling of VNC and SMB on MacOS because I thought it was specific for Mac, but it doesn't seem so. In short, I can SSH from my machine A to machine B (...
d-b's user avatar
  • 2,077
1 vote
1 answer
211 views

I previously had libgcc1-dbg (and other debug symbol packages) installed on Debian 10 "buster" to get readable stack traces in failure cases or to inspect core files. It seems, that package ...
TJahns's user avatar
  • 135
0 votes
1 answer
172 views

I'm running debian sid (unstable), and have had a few situations where the system freezes, becoming unresponsive and forcing me to reboot the system. This has happened during work video calls (but not ...
Laurent S's user avatar
  • 111
0 votes
0 answers
251 views

I am trying to reset my .bashrc, because it has become bloated and it takes long to start a console. For this I did the following: cp /etc/skel/.bashrc ~/.bashrc This worked for the normal login bash ...
packoman's user avatar
  • 151
1 vote
1 answer
564 views

In the default mode of gdb, pressing ctrl+x a turns on and off the UI, and ctrl+x 2 cycles through different split views. There are a number of similar useful shortcuts. I can turn on vi emulation ...
Fraser's user avatar
  • 111
1 vote
1 answer
6k views

I am using the bpf_printk() helper to print to the kernel debug to trace some BPF programs. The usage is as follows: #include <stdio.h> #include <linux/bpf.h> #include <sys/socket.h>...
diviquery's user avatar
  • 125
1 vote
0 answers
97 views

Good debugging tools can save you a lot of time when you are writing code. In nano, it's nice that with bash scripts, you can just hit alt+b to find syntax errors before you try running it. However, I ...
thinksinbinary's user avatar
0 votes
1 answer
774 views

I'm getting Permission Denied when attempting to create/touch files in a directory with group ownership permissions. touch /data/www/acoder.txt [acoder@box]$ touch /data/www/acoder.txt touch: cannot ...
a coder's user avatar
  • 3,353
2 votes
1 answer
2k views

I have a simple clock program that uses math.h functions. I am currently on Kubuntu 21.10, the GCC version is (Ubuntu 12.2.0-3ubuntu1) 12.2.0, and the GDB version is (Ubuntu 12.1-3ubuntu2) 12.1. The ...
Lakshay Rohila's user avatar
5 votes
1 answer
36k views

Let's say I use this command: ssh -vvv user@server I get an output similar to this: send packet: type 21 ssh_set_newkeys: mode 1 receive packet: type 6 SSH2_MSG_SERVICE_ACCEPT received receive packet:...
Bog's user avatar
  • 1,154
0 votes
1 answer
344 views

The Linux cluster I work on recently started getting frozen for a few minutes at a time. I've determined that the reason for this behavior is that processes are very frequently landing in the D (&...
kjo's user avatar
  • 16.4k
0 votes
1 answer
1k views

I am trying to debug a shell script executing on a remote server, where I do not have access to the standard output of the script. Can I redirect the output to go over a socket?
rgov's user avatar
  • 273
0 votes
1 answer
604 views

How to use a Systemtap probe on a kernel module function while that module is loaded. I am trying to print the functions being called for a particular module while it is being loaded. Suppose I have a ...
Franc's user avatar
  • 309
4 votes
1 answer
190 views

I can provoke a race condition that gives output similar to this in dmesg: [ 5432.541379] perl[408327]: segfault at 22 ip 0000564eb8af9cc2 sp 00007ffec318cea0 error 6 in perl[564eb8af7000+1a1000] [ ...
Ole Tange's user avatar
  • 37.6k
-2 votes
1 answer
161 views

Below is what I'm attempting to run on my remote machine, and I'm getting 'Unexpected end of file'. However, if i take the lines and paste them into the CLI, it executes normally. # if [ -f running....
David Conway's user avatar
13 votes
4 answers
4k views

I like to use set -x in scripts to show what's going on, especially if the script is going to run in a CI/CD pipeline and I might need to debug some failure post-hoc. One annoyance with doing this is ...
Ken Williams's user avatar
0 votes
0 answers
100 views

I am trying to debug a large build project which calls a bunch of bash scripts. Someone suggested modifying PS4 so I set it to the following snippet in order to print the path of the script and the ...
nikhilweee's user avatar
1 vote
0 answers
52 views

I have a huge code that deals with sockets, threads and processes and it is a complete mess... While editing recently, my WM crashed after I executed my code. Since every window is killed, I can't ...
cnikbesku's user avatar
  • 224
1 vote
1 answer
468 views

How can I have the output printed to the terminal when condition is met using lineinfile - lineinfile: path: /home/pc/date.txt state: present line: 'yes' regexp: '^\s*Wednesday\s*$' ...
JakePaul's user avatar
0 votes
2 answers
5k views

I have such a toy C++ program #include <iostream> int main() { int n{}; std::cin >> n; // waits for input std::cout << n << std::endl; } which pauses upon ...
Enlico's user avatar
  • 2,362
0 votes
0 answers
28 views

I have created a script that can split an audio file into smaller files via ffmpeg using timestamps, and another script which can take in timestamps & names in batches. My use for this script ...
Cestarian's user avatar
  • 2,593
5 votes
3 answers
1k views

I want to detect errors in application's execution logic. E.g.: forgot to call free() on address returned by malloc() did not close file handle returned by open() invalid flags passed to open() ...
zomega's user avatar
  • 1,022
0 votes
1 answer
3k views

I'm currently trying to set up remote debugging on a Raspberry Pi using the CodeLLDB plugin for Visual Studio Code and gdbserver. Unfortunately this doesn't seem to work, since every breakpoint I set ...
ObiBabobi's user avatar
0 votes
0 answers
557 views

I am developing a C++ application that requires root privilege. I am working under Eclipse and I would like to be able to launch/debug from it. I know I could start Eclipse as a root, but I am looking ...
Yves Daoust's user avatar
2 votes
0 answers
214 views

According to man strace the -e file option traces all syscalls which take a file name as an argument. What is the whole set? %file file Trace all system calls which take a file ...
guronanak's user avatar
0 votes
1 answer
195 views

Running Ubuntu 18.04.1 LTS with package openssh-server 7.6p1-4ubuntu0.5 In /etc/ssh/sshd_config is set LogLevel DEBUG2. I get the debug2 log message of the client MACs offering part of handshake: May ...
user avatar
0 votes
0 answers
226 views

I am alternating between two layouts, English and Hungarian (the latter has some accented characters). The problem is that sometimes the Hungarian layout stops working, i.e. when I switch to it, the ...
Attilio's user avatar
  • 385

1
2 3 4 5
10