Questions tagged [gdb]
The GNU Debugger (GDB) is a portable debugger that runs on many Unix-like systems and works for many programming languages.
188 questions
0 votes
0 answers
73 views
Firefox freezes when using “save as” (glib issue?)
When trying to save anything in Firefox, using “save as” to do so, when the dialog box starts to show up, everything turns gray for a moment and then Firefox freezes permanently. Running firefox on ...
0 votes
0 answers
60 views
Crash utility cannot resolve "p2m_top" when analyzing VMware dump (VMEM) on AlmaLinux guest
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 ...
0 votes
0 answers
44 views
spawn process with existing session ID (setsid, maybe use GDB)
How to create a new process with the session ID (setsid) of an existing process? I have an idea using GDB which is working partly. But I'm also thankful for other approaches. . There seems to be no ...
0 votes
0 answers
67 views
Override GDB taking over controlling terminal and its SIGINT
I have a Python script that is running subprocesses that calls gdb --batch. That script needs to handle Control-C (SIGINT). While one of the GDB subprocesses is running, if I send a Control-C on the ...
1 vote
0 answers
641 views
GDB remote: step/next "Cannot find bounds of current function"
I'm trying to run GDB remote debugging on a single source file, very basic C code, and I'm hitting a wall on something that seems like it should be completely obvious. Specifically, I cannot figure ...
1 vote
2 answers
138 views
Up-arrow does not complete the typed command in gdb, but instead iterates through all the history
I am having trouble with gdb. When I start pushing the Up Arrow key, it iterates backwards through the history. However, if I start typing a command, like b, instead of iterating only through history ...
1 vote
0 answers
47 views
Mutt Segmentation Fault with MX Linux 21.3 #129
New noob here. Using MX Linux, set up Mutt with gmail. Was initially successful. Emails and all. Then at some point when trying to use again, it stuck at 4% giving a segmentation fault. Using gdb it ...
0 votes
1 answer
590 views
Attach gdb from a docker container to a process running in a different PID namespace
I built a docker image with gcc binutils and gdb debugger installed inside. I would attach gdb from that docker container to a process inside a lxc container running on the same Linux host. The lxc ...
0 votes
0 answers
130 views
Kernel Oops GDB Backtrace Debug Help
I am running kernel 6.1 on ARM zynq7. I have written some external kernel modules which i think are causing some kernel Oops but i can figure out where. So i ran GDB via serial connection. This is ...
1 vote
1 answer
511 views
How to place GDB breakpoints on custom external Linux kernel modules?
I am trying to debug a Linux kernel v5.15 running on a QEMU/KVM virtual machine. My intention is to debug an external kernel module, specifically character device driver that I have written, which is ...
1 vote
0 answers
111 views
Capturing stacktraces in CI for intermittent crashes
I regularly run a GUI binary through CI tests using Github Actions. Occasionally, the binary crashes unexpectedly. This issue is difficult to reproduce, so I'd like to capture a stack trace whenever ...
1 vote
0 answers
219 views
GDB stepi doesn't work upon execve system call
I am debugging a small 32-bit binary to which I want to pass a specific environment using the env command like so: # gdb -args env -i ./tiny_easy Later in gdb I issue a catch syscall execve command ...
0 votes
1 answer
248 views
Missing symbols for libraries when attempting to perform analysing of core dump
I'm trying to analyze core dump files of the systemd process, but encountering errors due to missing symbols. Can anyone advise what debug symbols need to be installed to successfully analyze these ...
1 vote
1 answer
1k views
Bus error (core dumped) on several apps
I'm encountering a weird behaviour with my endeavourOS system. For context, it seems to have started happening after a malformed svg file made inkscape and my system crash, after which I needed to ...
0 votes
1 answer
44 views
Pass Enter key to dist-upgrade's prompt, running inside a GUI terminal on a remote machine, accessible henceforth only over SSH
I earlier had RDP access to a remote machine (a typical physical desktop PC) using which I launched a sudo apt dist-upgrade inside a GUI gnome-terminal. Since then I have lost the RDP connection and ...