www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10746] New: Win64: corrupt debug info with very long symbols

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10746

           Summary: Win64: corrupt debug info with very long symbols
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: r.sagitario gmx.de



PDT ---
Here's some code to create a symbol name that is longer than 64kB:

module test;

template TypeTuple(TList...)
{
    alias TList TypeTuple;
}

 property void assertCTFEable(alias dg)()
{
    static assert({ dg(); return true; }());
    dg();
}

alias TypeTuple!(0,1,2,3,4,5,6,7,8,9) T10;
alias TypeTuple!(T10,T10,T10,T10,T10,T10,T10,T10,T10,T10) T100;
alias TypeTuple!(T100,T100,T100,T100,T100,T100,T100,T100,T100,T100) T1000;

string to_string(string s) { return s; }

void foo()
{
    assertCTFEable!(
    //auto dg = (
    {
    foreach (i; TypeTuple!(T100,T100,T100,T100,T100,T100,T100,
                           T10,T10,T10,T10,T10,T10,
                           0))
    {
        assert(to_string("hello world") ==
               to_string("hello world"));
    }
    });
}

void main() {}

build with "dmd -g -m64 test.d" to get

test.obj : fatal error LNK1103: debugging information corrupt; recompile module
--- errorlevel 1103

or with a slightly longer symbol:
LINK : fatal error LNK1318: Unexpected PDB error; RPC (23) '(0x000006BA)'
--- errorlevel 1318

This is a reduced test case from the std.string unittests.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 02 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10746


Rainer Schuetze <r.sagitario gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, rejects-valid



PDT ---
https://github.com/D-Programming-Language/dmd/pull/2447

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 02 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10746




Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/5fd4640afcccf08702bd21c881011309fa592542


fix Issue 10746 - Win64: corrupt debug info with very long symbols

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 03 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10746




Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/9334e44fb0fe7c9f87abb9455afdb6dd7f479fa3


fix Issue 10746 - Win64: corrupt debug info with very long symbols

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 03 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10746


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
           Platform|All                         |x86_64
            Version|D2                          |D1 & D2
         Resolution|                            |FIXED
         OS/Version|All                         |Windows


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