[Issue 18814] Segmentation Fault in GC From writeln Call

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Apr 30 19:39:59 UTC 2018


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

Marco Leise <Marco.Leise at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Marco.Leise at gmx.de

--- Comment #2 from Marco Leise <Marco.Leise at gmx.de> ---
First thing that came to my mind ... there is suddenly an obvious GC bug
exposed by writeln?! Probably more likely some custom stuff that overwrites
internal data structures or something, let's look at the provided test case...

     GC.malloc(GC.BlkAttr.NO_SCAN);

That does not look like the correct first argument to:
https://dlang.org/phobos/core_memory.html#.GC.malloc

Could you please give the amount of bytes you want to allocate and then post
the corrected test case? ;)

--


More information about the Digitalmars-d-bugs mailing list