[Issue 1458] New: linker hangs with some very long enums & debug info
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Aug 30 17:38:27 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1458
Summary: linker hangs with some very long enums & debug info
Product: D
Version: 1.019
Platform: PC
OS/Version: Windows
Status: NEW
Severity: critical
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: thecybershadow at gmail.com
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
--
More information about the Digitalmars-d-bugs
mailing list