[Issue 18547] New: Win32: throwing exception in fiber crashes application

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Mar 2 15:53:15 UTC 2018


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 at puremagic.com
          Reporter: r.sagitario at 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.

--


More information about the Digitalmars-d-bugs mailing list