Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 05 Oct 2025 16:22:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 290008] 15.0-ALPHA4 aarch64: ptrace PT_SETREGS issue
Message-ID:  <bug-290008-227-qE7k7OE1zf@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-290008-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290008

--- Comment #3 from Paul Floyd <pjfloyd@wanadoo.fr> ---
For the small reproducer.

Compile part 1 (inf.c for inferior)
clang -g -o inf inf.c

Compile part 2 (sup.c for superior)
clang -g -o sup sup.c

In one terminal
./inf

In a second terminal
./sup {paste the two args printed out by inf}

On FreeBSD 14.2 amd64 (different registers) and 14.3 aarch64 I get

"in get out of jail!
got out of jail!"

On FreeBSD 15.0-ALPHA4 I get
"Assertion failed: (arg == 0x8BADF00D), function get_out_of_jail, file inf.c,
line 10."

Opening the core file with gdb shows
(gdb) info reg
x0             0x0                 0

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

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-290008-227-qE7k7OE1zf>