looking for work-around: _d_assocarrayliteralTX segfault assigning a shared associative array an AA literal

mw mingwu at gmail.com
Tue Jun 13 17:06:55 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=20812

JR 2020-05-08 19:17:02 UTC
Manjaro/Arch x86_64, dmd 2.091.1. ldc does not seem to be 
affected.
```
shared string[string] aa;

void main()
{
     aa = [ "abc" : "123" ];
}
```
> Program received signal SIGSEGV, Segmentation fault.
> 0x00007ffff7de2239 in _d_assocarrayliteralTX () from 
> /usr/lib/libphobos2.so.0.91


https://run.dlang.io/is/D7AhPD

Could not get a real backtrace into phobos as dmd built with 
digger crashes when compiling due to issue #18026.


mw 2023-06-13 17:00:00 UTC
Encountered this bug again today with DMD64 D Compiler v2.104.0


You can also try on the run.dlang.org link above, the bug still 
there.


Sigh, we have so many such basic bugs for more than 3 years now, 
with no fix.


Does anyone know how to fix it? or any work-around?


Thanks.



More information about the Digitalmars-d-learn mailing list