D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6025 - Fiber does not rethrow exceptions
Summary: Fiber does not rethrow exceptions
Status: RESOLVED DUPLICATE of issue 6443
Alias: None
Product: D
Classification: Unclassified
Component: druntime (show other issues)
Version: D2
Hardware: x86 Windows
: P2 regression
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-17 13:26 UTC by Piotr Szturmaj
Modified: 2011-08-10 22:03 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Piotr Szturmaj 2011-05-17 13:26:14 UTC
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.
Comment 1 David Nadlinger 2011-08-10 22:03:38 UTC

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