Bug 8305 – DMD Segfaults on Certain Imports

Status
RESOLVED
Resolution
WORKSFORME
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2012-06-26T17:58:00Z
Last change time
2012-06-26T18:33:29Z
Assigned to
nobody
Creator
SyntaxColoring

Comments

Comment #0 by SyntaxColoring — 2012-06-26T17:58:35Z
Commit 31f97 (shttps://github.com/D-Programming-Language/dmd/commit/31f974a03de4372a7f95801b3e4f5a09f052ee1e) introduced a bug that causes DMD to crash with a segmentation fault upon invocation. It looks like importing certain modules, like std.stdio, causes the crash. (A simple "Hello world" program cannot be compiled.) The modules do not have to be actually used; only imported. Importing an empty module does not trigger the crash. Tested under a completely new installation of Arch Linux. 32-bit everything. I built a Git checkout of DMD, but pointed it to the imports and binaries from the 2.059 .zip file from dlang.org. (I was in the process of upgrading the entire toolchain, and Phobos and DRuntime cannot be compiled with an older DMD.)
Comment #1 by bugzilla — 2012-06-26T18:33:29Z
You'll need to rebuild druntime and phobos to go with 2.060.