Bug 3060 – Catch exception then loop causes seg fault

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Mac OS X
Creation time
2009-06-10T05:55:00Z
Last change time
2015-06-09T01:27:56Z
Keywords
EH
Assigned to
nobody
Creator
oag

Comments

Comment #0 by oag — 2009-06-10T05:55:34Z
The following trivial program segfaults when run. If the while (1) line is commented out it runs OK. If the trivial function call is omitted it also runs as expected. void fun() {} void main() { try { throw new Exception("Error"); } catch (Exception) { fun(); } while (1) {} }
Comment #1 by andrei — 2011-01-08T16:34:02Z
Must have been fixed a while ago.