← Back to index
|
Original Bugzilla link
Bug 8458 – scope(exit) enters infinite loop (DMD 2.059)
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2012-07-28T09:52:00Z
Last change time
2013-11-25T04:43:21Z
Assigned to
nobody
Creator
aldacron
Comments
Comment #0
by aldacron — 2012-07-28T09:52:10Z
##################################### void doSomething() { throw new Exception("doSomething failed"); } void term() { Object o; auto s = o.toString(); } void main() { scope(exit) term(); doSomething(); } ##################################### Results in the following message infinitely printed to the console: ##################################### Bypasses
[email protected]
(3) === Bypassed ===
[email protected]
(3): doSomething failed ---------------- 40BF20 40BDAB 4025B0 4025EA 40220B 41197D ---------------- object.Error: Access Violation ---------------- 40BF20 40BDAB 4020AA^C ##################################### Comment out the exception in doSomething and the infinite loop disappears.
Comment #1
by yebblies — 2013-11-25T04:43:21Z
Fixed now. object.Error: Access Violation ---------------- 0x0040204A 0x004027D0 0x004027A3 0x004026BB 0x004020DF 0x7C817077 in RegisterWaitForInputIdle === Bypassed ===
[email protected]
(3): doSomething failed ---------------- 0x00402045 0x004027D0 0x004027A3 0x004026BB 0x004020DF 0x7C817077 in RegisterWaitForInputIdle object.Error: Access Violation ---------------- 0x0040204A 0x004027D0 0x004027A3 0x004026BB 0x004020DF 0x7C817077 in RegisterWaitForInputIdle === ~Bypassed ===