www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18547] New: Win32: throwing exception in fiber crashes

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

          Issue ID: 18547
           Summary: Win32: throwing exception in fiber crashes application
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: r.sagitario gmx.de

test15779.d crashes for Win32 (and Win32/COFF) if compiled without -gx (or with
-O):

import core.thread;

int main()
{
    try
    {
        bar();
    }
    catch (Exception e)
    {
    }
    return 0;
}

void bar()
{
    new Fiber({ throw new Exception("fly"); }).call();
}

The auto-tester currently disables it for Win64, though.

--
Mar 02 2018