[Bug 287829] lldb prints the wrong value of errno in multi-threaded processes

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 28 Jun 2025 15:08:01 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287829

Mark Millard <marklmi26-fbsd@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marklmi26-fbsd@yahoo.com

--- Comment #3 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
For reference, using the N3220 working draft:

"The macros are . . . and errno which expands to a modifiable lvalue that has
type int and thread storage duration . . ." and "The value of errno in the
initial thread is zero at program startup (the initial representation of the
object designated by errno in other threads is indeterminate), . . ."

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