digitalmars.D.bugs - [Issue 20855] New: segfault when compiling large file
- d-bugmail puremagic.com (28/28) May 22 2020 https://issues.dlang.org/show_bug.cgi?id=20855
https://issues.dlang.org/show_bug.cgi?id=20855 Issue ID: 20855 Summary: segfault when compiling large file Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: minor Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: kilianhanich gmx.de Created attachment 1790 --> https://issues.dlang.org/attachment.cgi?id=1790&action=edit source file and terminal output I tried to do a D compiler benchmark between DMD and GDC (GNU's D compiler). I haven't done this so far, so I guessed that you can test the parsing speed with compiling very large files (and the Internet seemed to say that too). So, when compiling this file (which is manually unrolled loop of 100.000 times the line "a = b+c*d + a;", DMD segfaults. It happened every time I tried it, so it should be easily reproducible. My environment is Kubuntu 18.04 with DMD version 2.092.0 (like seen in the screenshot). The overwritten things in the screenshot is the Hostname (and Username). Because it unlikely that that big files are going to get parsed (and file with the same code but fewer lines were fine), I put the Severity on minor. --
May 22 2020