Thread overview
[Issue 1458] New: linker hangs with some very long enums & debug info
Aug 31, 2007
d-bugmail
Aug 31, 2007
d-bugmail
Sep 26, 2007
d-bugmail
August 31, 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@digitalmars.com
        ReportedBy: thecybershadow@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


-- 

August 31, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1458





------- Comment #1 from thecybershadow@gmail.com  2007-08-30 19:39 -------
Created an attachment (id=174)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=174&action=view)
(non-minimal) testcase


-- 

September 26, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1458


davidl@126.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE




------- Comment #2 from davidl@126.com  2007-09-26 00:00 -------
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 ***


--