www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21465] New: Static druntime accesses TLS after the thread is


          Issue ID: 21465
           Summary: Static druntime accesses TLS after the thread is dead
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: omerfirmak gmail.com

Similar to the issue fixed here
https://github.com/dlang/druntime/pull/1655#issuecomment-279223238 ,static
version of the sections_elf_shared.d accesses TLS of a dead thread here

This was encountered on
while porting ldc 1.24.0 to Alpine Linux which uses Musl.
https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/14364 But this
issue should be affecting other libc implementations as well.

Dec 09 2020