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

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 03 Apr 2025 05:55:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285811

--- Comment #6 from Gleb Popov <arrowd@FreeBSD.org> ---
(In reply to Konstantin Belousov from comment #5)
I see suspicious ptrace failures at the end of the dump:

 53589 gdb151   CALL  ptrace(PT_LWPINFO,0x76ae2,0x8227bb130,0xa0)
 53589 gdb151   RET   ptrace 0
 53589 gdb151   CALL  ptrace(PT_IO,0x76ae2,0x8227bb1b0,0)
 53589 gdb151   RET   ptrace -1 errno 1 Operation not permitted

At the same time, there are no ptrace failures in the dump of the unjailed
process.

> BTW, when you say that gdb in jail fails, you do run both the target process
and gdb itself in the same jail, right?

Yep.

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