digitalmars.D.bugs - [Issue 14310] New: [REG2.067a] InvalidMemoryOperationError in
- via Digitalmars-d-bugs (47/47) Mar 19 2015 https://issues.dlang.org/show_bug.cgi?id=14310
https://issues.dlang.org/show_bug.cgi?id=14310 Issue ID: 14310 Summary: [REG2.067a] InvalidMemoryOperationError in std.stdio.File.byLine Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: regression Priority: P1 Component: druntime Assignee: nobody puremagic.com Reporter: mk krej.cz I get core.exception.InvalidMemoryOperationError (0) when I run the following program on attached input file (XML). import std.algorithm, std.file, std.stdio, std.string; int main(string[] args) { if (args.length < 2) { return 1; } size_t linect = 0; foreach (line; File(args[1]).byLine()) linect += 1; return 0; } Backtrace: Breakpoint 1, 0x080b07fc in _d_throwc () (gdb) bt inout(char[])) (arr=0x81210d4) at /home/mk/dmd2.test/src/druntime/import/object.di:662 (this=0x81210c8) at /home/mk/dmd2.test/src/phobos/std/stdio.d:1677 (this=0xffffd914) at /home/mk/dmd2.test/src/phobos/std/stdio.d:1624 (gdb) c Continuing. core.exception.InvalidMemoryOperationError (0) This happens with 2.067b and master. 2.066 no error. System linux. --
Mar 19 2015