May 01, 2016 [Issue 15975] New: TLS not scanned correctly for main thread | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=15975 Issue ID: 15975 Summary: TLS not scanned correctly for main thread Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: major Priority: P1 Component: druntime Assignee: nobody@puremagic.com Reporter: r.sagitario@gmx.de I don't have an reliable reproduction of the problem, but LDC builds sometimes fail due to memory being collected while still being referenced. It turns out that TLS memory of the memory can be misaligned: import core.stdc.stdio; void* tls; void main() { printf("&tls = %p\n", &tls); } outputs &tls = 0x7fe7da7e79bc for 64-bit builds. Please note that the address is not aligned to 8 bytes! -- |
Copyright © 1999-2021 by the D Language Foundation