Opened 2 years ago
Last modified 21 months ago
#17896 new bug
static (hidden) thread_local values do not actually get unique pointers — at Initial Version
Reported by: | waddlesplash | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | System/runtime_loader | Version: | R1/beta3 |
Keywords: | Cc: | korli | |
Blocked By: | Blocking: | ||
Platform: | All |
Description
gnutls makes use of this, and so it had to be disabled to fix crashes: https://github.com/haikuports/haikuports/commit/cda76a62712b91647892ba01f1a5d0dcb38cadc5
Using the test program from here, the problem can clearly be seen: https://riptutorial.com/c/example/16383/-thread-local
From thread:[2], Address of i (thread local): 0x2f5f7cc990 From thread:[3], Address of i (thread local): 0x2f5f7cc990 From thread:[5], Address of i (thread local): 0x2f5f7cc990 From thread:[4], Address of i (thread local): 0x2f5f7cc990 From thread:[1], Address of i (thread local): 0x2f5f7cc8f0
Note:
See TracTickets
for help on using tickets.