All Questions
1,161 questions
0
votes
0
answers
36
views
Solve "ptrace: Operation not permitted" issue with gdb inside apptainer
This question is similar to these two, but is specifically related to Apptainer.
How to solve "ptrace operation not permitted" when trying to attach GDB to a process?
gdb in docker ...
0
votes
0
answers
20
views
Why does the first command of my WDL task output its results to the input folder?
I have a WDL workflow that I use miniwdl to run.
The second task of my workflow outputs its first command's results to the input folder by default. I was able to work around this by including '-o .' ...
2
votes
0
answers
75
views
Tracing Dynamic C Library Function Calls in Linux
I am currently trying to perform a detailed analysis of a dynamic C library's "mimalloc" behavior when loaded by a specific program in a Linux environment. Specifically, I want to ...
0
votes
1
answer
40
views
ELF map IP to offset in .text section
Given that I know the virtual address of an instruction I and the address at which the .text section containing that instruction was loaded T, how can I find the file offset of that instruction within ...
1
vote
1
answer
27
views
How can I set breakpoints in assembly code?
I am looking over the startup code for the Linux OS. It looks like it all starts in header.S. Main is called, the kernel is unpacked and then start_kernel is the first function ran.
How can I step ...
4
votes
1
answer
79
views
gdb: get references to value returned by the find command
I'm trying to port a program I wrote in windows with syscalls to linux. The program reads the memory of another running process and displays certain values as they change. To get started and figure ...
0
votes
1
answer
47
views
Can GDB debug inferior processes launched through a program with no source code available?
My ultimate goal in this endeavor is to be able to debug a program with a custom setarch personality that disables certain kernel security features for this process only. This solution should be ...
1
vote
0
answers
87
views
STL containers don't pretty-print when connected to gdbserver?
I have the following code:
#include <iostream>
#include <string>
using namespace std;
int main()
{
string s{"qwe"};
while (true){} // in order to attach
cout <<...
1
vote
0
answers
65
views
To integrate arm64 hw watchpoint to linux process in C
I am looking at the Linux breakpoint test case, and try to understand it to put it into a Linux process
https://github.com/torvalds/linux/blob/master/tools/testing/selftests/breakpoints/...
0
votes
0
answers
63
views
Why does my C# app crashes without any error when debugger is attached?
I have a .Net Core (ver 8.0) multiproject solution which uses a native library on Linux (.so).
When I start the project with debugger on, the program exits with code 0 and without any messages when ...
0
votes
1
answer
88
views
gdb make breakpoint but not show int3 instruction
I was learning about int 3 instruction and breakpoint in gdb.
But i found something strange.
My c code as follows:
#include<stdio.h>
int main(int argc, char *argv[]) {
int a = 4;
...
0
votes
0
answers
70
views
error when connecting gdb with gdb server
Environment: WSL2 Ubuntu 22.02
My project runs in the Docker container from the WSL2.
The scheduler in my project is responsible for starting all the applications.
gdbserver is started from the ...
0
votes
0
answers
154
views
Troubleshooting Data Abort Error While Debugging U-Boot on mcimx6ul-evk in QEMU
I am trying to debug U-Boot code in Ubuntu 18.04 using the mcimx6ul-evk board in QEMU. I have successfully compiled QEMU (./configure --prefix=/home/book/qemu/qemu-7.2.0_build --target-list=arm-...
1
vote
1
answer
50
views
Why my gdb can't read the file by stdin? (very weird)
This is t.c, I use gcc t.c -o t -m32 -g to compile it:
#include <stdio.h>
int main() {
char buffer[100];
printf("Please enter a string: ");
scanf("%99s", buffer);
...
0
votes
1
answer
466
views
How can I change IDA global data type?
I am new to IDA and my IDA's version is 7.7.
I think it's quite difficult to read the data, especially for some struct with address:
IDA .data
It's very easy to know the next node is 0x0804c110 in gdb:...