www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6025] New: Fiber does not rethrow exceptions

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

           Summary: Fiber does not rethrow exceptions
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: regression
          Priority: P2
         Component: druntime
        AssignedTo: nobody puremagic.com
        ReportedBy: pszturmaj tlen.pl



---
Documentation states that Fiber rethrows any exceptions thrown inside fiber
function, yet it do not happen.

Following program just terminates silently when ran in the console, and throws
Access violation when debugging inside VisualD. Tested under Windows XP.
-------------------------

module main;

import core.thread;

void fiberMain()
{
    throw new Exception("test");
}

void main(string[] argv)
{
    auto fiber = new Fiber(&fiberMain);
    fiber.call();
}

-------------------------
Output from VisualD:
-------------------------
First-chance exception at 0x0042baca in DBugs3.exe: 0xC00000FD: Stack overflow.
First-chance exception at 0x0042baca in DBugs3.exe: 0xC0000005: Access
violation reading location 0x00aafaa8.
Unhandled exception at 0x0042baca in DBugs3.exe: 0xC0000005: Access violation
reading location 0x00aafaa8.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 17 2011
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6025


klickverbot <code klickverbot.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |code klickverbot.at
         Resolution|                            |DUPLICATE



---
*** This issue has been marked as a duplicate of issue 6443 ***

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