Bug 1489 – dmd-2.004 segfaults after encountering any source code error
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2007-09-10T08:40:00Z
Last change time
2015-06-09T01:14:16Z
Keywords
ice-on-invalid-code
Assigned to
bugzilla
Creator
markusle
Comments
Comment #0 by markusle — 2007-09-10T08:40:55Z
Hi,
On my linux box, dmd-2.004 exits with a segmentation fault after
encountering any (at least the ones I've tested) error in the source
code. dmd-2.003 works fine. Here's an example
[markus@despina] cat foo.d
int main()
{
int i;
bogus;
return 0;
}
Now, with dmd-2.003 I get (as expected)
[markus@despina] dmd foo.d
foo.d(5): Error: undefined identifier bogus
foo.d(5): Error: identifier has no effect in expression (bogus)
whereas dmd-2.004 segfaults
[markus@despina] dmd foo.d
foo.d(5): Error: undefined identifier bogus
/opt/dmd/bin/dmd: line 2: 17227 Segmentation fault /opt/dmd/bin/dmd.bin -I/opt/dmd/src/phobos -L/opt/dmd/lib/libphobos2.a $*
Please let me know what additional details you guys need for
debugging this.
Thanks,
Markus
Comment #1 by markusle — 2007-10-06T08:21:15Z
dmd-2.005 resolved this issue, hence I am closing
this bug.
Thanks,
Markus