[Issue 6376] Throwing exception or assertion failure causes segfault or memory error due to ASLR on Mac OS X 10.7

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 25 03:45:32 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6376



--- Comment #4 from kennytm at gmail.com 2011-07-25 03:45:24 PDT ---
The segfault for case 2 happens in _d_throwc:

    // this is a catch handler (no finally)

    auto pci = cast(DCatchInfo *)(cast(char *)handler_table + phi.cioffset);
    auto ncatches = pci.ncatches;
    for (int i = 0; i < ncatches; i++)
    {
        auto ci = **cast(ClassInfo **)h;  // <--------- this line, *h == null

        auto pcb = &pci.catch_block[i];

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


More information about the Digitalmars-d-bugs mailing list