[Issue 23876] segfault / ICE regression with packages

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 4 13:47:53 UTC 2023


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

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305 at gmail.com
          Component|dmd                         |druntime

--- Comment #2 from RazvanN <razvan.nitu1305 at gmail.com> ---
This seems to be a gc bug caused by the compiler implementation code. When the
compiler parses the import declarations, to be more precise, the chain of
packages separated by dots it needs to concatenate the identifiers to an array.
That concatenation calls the _d_arrayappend hook, which currently is not
templated which calls some conservative gc methods. The failure is somewhere in
the innards of those functions, but up until this point I haven't been able to
precisely pinpoint it.

Changing to druntime bug.

--


More information about the Digitalmars-d-bugs mailing list