Segfault when adding a static destructor in druntime/src/rt/sections_elf_shared.d
RazvanN
razvan.nitu1305 at gmail.com
Fri Jan 11 09:33:52 UTC 2019
On Thursday, 10 January 2019 at 23:04:37 UTC, Steven
Schveighoffer wrote:
> 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
At least for this specific situation, yes.
More information about the Digitalmars-d-learn
mailing list