Thread overview
[Issue 7127] New: Const-related infinite recursion in DWARF generation
Dec 18, 2011
klickverbot
Dec 18, 2011
Walter Bright
Dec 19, 2011
klickverbot
Dec 19, 2011
klickverbot
December 18, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=7127

           Summary: Const-related infinite recursion in DWARF generation
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Keywords: patch
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: code@klickverbot.at


--- Comment #0 from klickverbot <code@klickverbot.at> 2011-12-18 07:09:08 PST ---
This example crashes DMD from Git master when invoked with -g or -gc:
---
struct Foo {
  const(Foo)* bar;
}
Foo foo;
---
(the global is just necessary to trigger debug info generation for Foo).

What happens is that that for emitting debug info for const types, a copy of
the type is made at
https://github.com/D-Programming-Language/dmd/blob/master/src/backend/dwarf.c#L1571,
thus breaking the TYforward loop detection mechanism.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 18, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=7127


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> 2011-12-18 11:47:41 PST ---
https://github.com/D-Programming-Language/dmd/commit/a7df55e4c7de5ab3294bc1111968da5051960a95

https://github.com/D-Programming-Language/dmd/commit/913ab53b0fd6e5b2b597b4661887d0a6fc66eea5

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 19, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=7127


klickverbot <code@klickverbot.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |webmaster@villagersonline.c
                   |                            |om


--- Comment #2 from klickverbot <code@klickverbot.at> 2011-12-19 10:08:15 PST ---
*** Issue 5533 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 19, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=7127


klickverbot <code@klickverbot.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mrmocool@gmx.de


--- Comment #3 from klickverbot <code@klickverbot.at> 2011-12-19 10:08:35 PST ---
*** Issue 7031 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------