[Issue 18996] Inserting a struct into an std.container Array causes SIGILL(4). Illegal Instruction.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 18 07:07:41 UTC 2018


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

Basile B. <b2.temp at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|druntime                    |phobos

--- Comment #5 from Basile B. <b2.temp at gmx.com> ---
Problem is confirmed: Adding `gc_init()` in the Array `shared static this()`
makes the problem going away. However for now `gc_init()` is private. 

One way to fix the issue is make `gc_init` public in druntime and add an
explicit init call in `Array`. The other would be to make a dummy alloc if
`Array` element has indirections.

--


More information about the Digitalmars-d-bugs mailing list