View previous topic :: View next topic |
Author |
Message |
v_andal Guru
Joined: 26 Aug 2008 Posts: 544 Location: Germany
|
Posted: Tue Nov 19, 2024 3:40 pm Post subject: gdb accepts no breakpoint |
|
|
Hello, it may appear "old problem", but the solutions offered in 2004 didn't work for me
When I run a program in gdb and set a breakpoint (on main or anywhere else), then after "run" I get following "Warning":
Quote: |
Cannot insert breakpoint 1.
Cannot access memory at address 0x5555555553a2
|
This is my own program which is compiled with "-g" and even "-ggdb". I don't have hardened Kernel, at least I haven't configured it explicitly. I use latest GDB (15.2-r100).
If breakpoint is not set, then command "run" executes program without any error to the end. Which is kind of useless without breakpoints
This might be related to kernel. At least in WSL (which uses version 5.15.167) gdb works without problem. But I have no idea, what was added to 6.6.58, that I currently use. The rest of system is the same as in WSL.
So, maybe someone can offer more insights? |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1977
|
Posted: Sat Nov 23, 2024 2:08 am Post subject: |
|
|
A user joined #gdb on IRC with a similar sounding issue. Their problem was CONFIG_PROC_MEM_FORCE_PTRACE was off (i.e. CONFIG_PROC_MEM_NO_FORCE was on). |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5132 Location: Bavaria
|
|
Back to top |
|
|
|