[Bug 285811] Debuggers in jail can't evaluate string literals

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 02 Apr 2025 11:36:07 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285811

--- Comment #3 from Gleb Popov <arrowd@FreeBSD.org> ---
(In reply to Konstantin Belousov from comment #1)
Doesn't seem to be the either case. In GDB the ASLR handling is consolidated
here [1]. I put the debugging output everywhere in this function and verified
that all procctl() calls succeed.

I also tried setting kern.elf64.aslr.enable=0 outside of the jail (without
restarting the jail, though) and it had no effect on the problem. Neither
running gdb under proccontrol -m aslr -s disable change anything. I also tried
elfctl -e +noaslr on both gdb and cat binaries - nothing helps the issue.

[1]
https://github.com/bminor/binutils-gdb/blob/877d74ab5f2f33aa062c4b8d1ba910a46e4ef9d1/gdb/fbsd-nat.c#L1776

-- 
You are receiving this mail because:
You are the assignee for the bug.