[Bug 239550] std::thread::id uses pthread_equal in undefined ways not handled by _pthread_stubs

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jul 31 19:46:58 UTC 2019


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

Konstantin Belousov <kib at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kib at FreeBSD.org

--- Comment #1 from Konstantin Belousov <kib at FreeBSD.org> ---
There are some limits on how much efforts should we put on libc stubs when
libthr is not linked in.  This configuration is only supported to make it
easier to create e.g. loadable modules which must work correctly when dlopened
either in threaded or in non-threaded process.

That said, if we start distinguishing the value 0, we get the next problem with
pthread_getthreadid_np(3) which libc stub returns zero.

We might fix this eventually, if the anticipated merge of libthr into libc
occurs. sometime.  Then it would work out of box.

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


More information about the freebsd-threads mailing list