Bug 8083 – Throwing in a loop results in infinite bypassing exception messages

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-05-11T03:33:14Z
Last change time
2020-06-06T07:27:35Z
Assigned to
No Owner
Creator
Denis Shelomovskii
See also
https://issues.dlang.org/show_bug.cgi?id=9438

Comments

Comment #0 by verylonglogin.reg — 2012-05-11T03:33:14Z
--- import std.stdio; void main() { // for (auto bc = File.ByChunk(File(""), 1); ; ) { } // as expected // for (auto bc = File("").byChunk(1); false; ) { } // as expected for (auto bc = File("").byChunk(1); ; ) { } // infinite loop foreach(line; File("").byLine()) { } // infinite loop too } --- It writes this in infinite loop: Bypasses std.exception.ErrnoException@std\stdio.d(288) === Bypassed === std.exception.ErrnoException@std\stdio.d(288): Cannot open file `' in mode `rb' (No error) Not sure is it dmd or druntime issue.
Comment #1 by verylonglogin.reg — 2013-11-07T09:01:38Z
Original testcase works fine now but I'd like to keep it opened as source issue is still unknown.
Comment #2 by verylonglogin.reg — 2013-11-07T09:29:30Z
*** Issue 8455 has been marked as a duplicate of this issue. ***
Comment #3 by dlang-bugzilla — 2017-07-02T02:35:09Z