www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20812] New: _d_assocarrayliteralTX segfault assigning a

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

          Issue ID: 20812
           Summary: _d_assocarrayliteralTX segfault assigning a shared
                    associative array an AA literal
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: zorael gmail.com

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 --
May 08 2020