[Issue 6025] New: Fiber does not rethrow exceptions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue May 17 13:30:22 PDT 2011
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 at puremagic.com
ReportedBy: pszturmaj at tlen.pl
--- Comment #0 from Piotr Szturmaj <pszturmaj at tlen.pl> 2011-05-17 13:26:14 PDT ---
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: -------
More information about the Digitalmars-d-bugs
mailing list