[Issue 9134] New: failed assert leads to Segmentation fault when iterating file lines

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 10 02:00:00 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=9134

           Summary: failed assert leads to Segmentation fault when
                    iterating file lines
           Product: D
           Version: unspecified
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: druntime
        AssignedTo: nobody at puremagic.com
        ReportedBy: atankeev at gmail.com


--- Comment #0 from Alexander Tankeev <atankeev at gmail.com> 2012-12-10 01:59:35 PST ---
---{ cut: testcase.d }---
import std.stdio;
void main()
{
    auto file = File("testcase.d","r");
    foreach (ulong i, string line; lines(file))
        assert(true == false);
        // Segmentation fault (core dumped)
    file.close();
}
---------{ EOF }---------

# rdmd testcase.d
Segmentation fault (core dumped)

-- 
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