Segfault when adding a static destructor in druntime/src/rt/sections_elf_shared.d

Steven Schveighoffer schveiguy at gmail.com
Thu Jan 10 23:04:37 UTC 2019


On 1/10/19 5:12 PM, RazvanN wrote:
> On Thursday, 10 January 2019 at 15:04:25 UTC, Steven Schveighoffer wrote:
>> On 1/8/19 7:54 AM, RazvanN wrote:
>>> [...]
>>
>> That is a thread-local static destructor. Are any shared static 
>> destructors accessing the array?
>>
> No, there aren't. Indeed, the problem is as Johan as said: the 
> loadedDSOs should not be wrapped in an array with a destructor because 
> it is manually destroyed.

Hm... is this a sign of how things will be once the (necessary IMO) 
change to destroying globals is deployed?

-Steve


More information about the Digitalmars-d-learn mailing list