Bug 8274 – thread_attachThis only works for main thread

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-06-20T15:28:00Z
Last change time
2012-07-08T15:53:53Z
Assigned to
nobody
Creator
code

Comments

Comment #0 by code — 2012-06-20T15:28:05Z
The function calculates a wrong stack bottom because it uses rt_stackBottom which returns the stack bottom of the main thread. Subsequently any further GC will either crash or scan a wrong region.
Comment #1 by alex — 2012-07-08T15:53:53Z
Fixed in master.