Segfault when adding a static destructor in druntime/src/rt/sections_elf_shared.d
RazvanN
razvan.nitu1305 at gmail.com
Thu Jan 10 22:12:32 UTC 2019
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.
> You might be able to determine this by printf debugging between
> calling unshared and shared destructors.
>
> -Steve
More information about the Digitalmars-d-learn
mailing list