Bug 1458 – linker hangs with some very long enums & debug info

Status
RESOLVED
Resolution
DUPLICATE
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2007-08-30T19:38:00Z
Last change time
2014-02-16T15:24:01Z
Assigned to
bugzilla
Creator
dlang-bugzilla

Attachments

IDFilenameSummaryContent-TypeSize
174testcase.d(non-minimal) testcasetext/plain18774

Comments

Comment #0 by dlang-bugzilla — 2007-08-30T19:38:26Z
When trying to compile and link the attached testcase, the linker hangs and starts to continuously write zeroes to the output EXE. The bug is consistent for me, but it's easy to "break". Changing the file name or removing the underscores at the end of the enum name, or removing some enum members makes the bug go away. I scrambled the testcase enum member names (it was a real-life example) as it's fairly confidential data. Like I mentioned above, the identifier names don't matter - only their length does. It looks like it's an Off-By-N bug in the linker. Marked as "critical" as this is hard to isolate, and filling the disk with huge zero-filled files is a Bad Thing. The command to compile/link (and reproduce) is: dmd -g testcase.d
Comment #1 by dlang-bugzilla — 2007-08-30T19:39:27Z
Created attachment 174 (non-minimal) testcase
Comment #2 by davidl — 2007-09-26T00:00:36Z
this looks like a duplicate of http://d.puremagic.com/issues/show_bug.cgi?id=1229 *** This bug has been marked as a duplicate of 1229 ***