Created attachment 1590
Small dub project with dwarfeh error
Since I updated to 2.070.2 almost every occasion of an exception thrown causes my program to immediately terminate:
dwarfeh(316) fatal error
Program exited with code -6
It is very difficult to create a minimized test case, however I managed to give you a small dub project that will exhibit this problem if you run "dub test" in it:
Comment #1 by dmdtracker — 2016-03-08T21:59:12Z
Okay, I managed a minimal test case now:
import core.thread;
void main()
{
new Fiber({ throw new Exception("fly"); }).call();
}
Comment #2 by dmdtracker — 2016-03-08T22:00:08Z
I want to add that I am quite annoyed that a bug like this makes it into a release. This cost me at least 2 days of production time.
Comment #3 by dmdtracker — 2016-03-08T22:01:16Z
I forgot: You need to compile with -gx
Comment #4 by dmdtracker — 2016-03-08T23:59:31Z
Und die Moral von der Geschicht, einen Zwerg, den wirft man nicht.
Comment #5 by code — 2016-03-23T08:41:49Z
(In reply to Marenz from comment #4)
> Und die Moral von der Geschicht, einen Zwerg, den wirft man nicht.
Stack stomping (-gx) is a weird (and complex) feature and apparently wasn't fully tested in combination w/ the new dwarf EH.
Note that you shouldn't run any production code w/ -gx.