[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 05:51:11 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18996
Basile B. <b2.temp at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|phobos |druntime
--- Comment #4 from Basile B. <b2.temp at gmx.com> ---
Spotted the bug.
The problem is actually that the garbage collector is not initialized. 2079
introduced lazy initialization.
---
void main(string[] arguments)
{
auto a = "init gc".dup; // force GC init...
Array!string str;
str.insert("hello");
}
---
no more SIGILL.
--
More information about the Digitalmars-d-bugs
mailing list