Bug 6025 – Fiber does not rethrow exceptions

Status
RESOLVED
Resolution
DUPLICATE
Severity
regression
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2011-05-17T13:26:00Z
Last change time
2011-08-10T22:03:38Z
Assigned to
nobody
Creator
pszturmaj

Comments

Comment #0 by pszturmaj — 2011-05-17T13:26:14Z
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 by code — 2011-08-10T22:03:38Z
*** This issue has been marked as a duplicate of issue 6443 ***