Segmentation Fault on rt.tlsgc.init

tcak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Apr 5 02:46:36 PDT 2016


If I create many threads (starts, does a short work, and ends) 
repeatedly (>10,000), at some point rt.tlsgc.init() gives 
SEGMENTATION_FAULT.

It doesn't check whether malloc fails to allocate any memory, and 
I cannot find the source code of "rt.sections.initTLSRanges()" 
anywhere.

Is it left there without a check purposefully?


More information about the Digitalmars-d-learn mailing list