www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1458] New: linker hangs with some very long enums & debug info

reply d-bugmail puremagic.com writes:
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


-- 
Aug 30 2007
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1458






Created an attachment (id=174)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=174&action=view)
(non-minimal) testcase


-- 
Aug 30 2007
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1458


davidl 126.com changed:

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





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 ***


-- 
Sep 25 2007