[Issue 15779] DWARF EH fails when using stack stomping (-gx)

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Mar 25 11:38:03 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=15779

--- Comment #7 from Martin Nowak <code at dawg.eu> ---
Quick debugging of this program
---
void main()
{
    try
    {
    bar();
    }
    catch (Exception e)
    {
    }
}

void bar()
{
    throw new Exception("msg");
}
---
reveals that CallSiteRange for bar() is too small (66 instead of 70) and
therefor scanLSDA fails.
https://github.com/D-Programming-Language/druntime/blob/ff4faa40d88bdd974102105aa17c2851629c8f9a/src/rt/dwarfeh.d#L627

--


More information about the Digitalmars-d-bugs mailing list