-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
breakpoints doesn't work on FreeBSD #22831
Labels
Comments
Try disabling the hw breakpoints : e dbg.hwbp=false |
same result with hw breakpoints disabled > r2 simple_malloc
WARN: Relocs has not been applied. Please use `-e bin.relocs.apply=true` or `-e bin.cache=true` next time
-- Remember to maintain your ~/.radare_history
[0x00201780]> e dbg.hwbp=
true false
[0x00201780]> e dbg.hwbp=false
[0x00201780]> db main
[0x00201780]> db
0x00201820 - 0x00201821 1 --x sw break enabled valid cmd="" cond="" name="main" module=""
[0x00201780]> ood
INFO: File dbg:///usr/home/tgk/pwn_dev/pwn_jemalloc/bin/simple_malloc/5.3.0/simple_malloc reopened in read-write mode
WARN: Relocs has not been applied. Please use `-e bin.relocs.apply=true` or `-e bin.cache=true` next time
29201
[0x42a0d75eb70]> db
0x00202820 - 0x00202821 1 --x sw break enabled valid cmd="" cond="" name="main" module=""
[0x42a0d75eb70]> dc
INFO: child exited with status 0
INFO: ==> Process finished
[0x42a0d75eb70]> |
uhm what about
or just |
I have tried both > r2 -d simple_malloc
WARN: Relocs has not been applied. Please use `-e bin.relocs.apply=true` or `-e bin.cache=true` next time
-- Add colors to your screen with 'e scr.color=X' where 1 is 16 colors, 2 is 256 colors and 3 is 16M colors
[0x1dee67a3b70]> db main
[0x1dee67a3b70]> dc
INFO: child exited with status 0
INFO: ==> Process finished > r2 -c 'dcu main' -d simple_malloc
WARN: Relocs has not been applied. Please use `-e bin.relocs.apply=true` or `-e bin.cache=true` next time
INFO: Continue until 0x00202820 using 1 bpsize
INFO: child exited with status 0
INFO: ==> Process finished |
Is there anything else I can do more ? sadly I'm not familiar with radare2 code to investigate into details |
Aaaand fixed |
good work thanks :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Description
I have been trying to debug a simple program on FreeBSD 14.0 amd64 platform and breakpoints doesn't work. it gets set but debugger doesn't stop at breakpoint and runs as if it wasn't set at all.
I have sysctl setting to give unprivileged process debugging capability
> sysctl -a security.bsd.unprivileged_proc_debug security.bsd.unprivileged_proc_debug: 1
Test
The text was updated successfully, but these errors were encountered: