digitalmars.D.bugs - [Issue 19811] New: Program crashes with null pointer with lld-link,
- d-bugmail puremagic.com (33/33) Apr 17 2019 https://issues.dlang.org/show_bug.cgi?id=19811
https://issues.dlang.org/show_bug.cgi?id=19811 Issue ID: 19811 Summary: Program crashes with null pointer with lld-link, works with MS linker Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: destructionator gmail.com Forwarding a bug reported on my lib to here because it only happens with the lld-link, not with optlink nor MS link. https://github.com/adamdruppe/arsd/issues/189 import arsd.image, arsd.simpledisplay; void main() { SimpleWindow window = new SimpleWindow(1000, 600, "Neuron"); Image core = Image.fromMemoryImage(loadImageFromFile("core.png")); window.eventLoop(0); } If you swap the window and image lines, it works. The specific file is irrelevant. All necessary libs are in my git thing, so if you download it all, `dmd -i -m64 test.d` will compile it. The comments on the github link are me mostly being bewildered until I realized the linker might be the difference between our setups, so you might want to skip ahead in comments. I don't know what it minimizes to; I'm posting this mostly so I can say "not my problem" and close that issue lol. --
Apr 17 2019