Thread overview | ||||||
---|---|---|---|---|---|---|
|
March 12, 2014 [Issue 12349] New: std.File.flush and error causes segfault after calling close | ||||
---|---|---|---|---|
| ||||
https://d.puremagic.com/issues/show_bug.cgi?id=12349 Summary: std.File.flush and error causes segfault after calling close Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: ttanjo@gmail.com --- Comment #0 from Tomoya Tanjo <ttanjo@gmail.com> 2014-03-11 22:10:12 PDT --- In the following code, segfaultFlush and segfaultError cause segfault with DMD v2.066-devel-a707998 in Mac OSX 10.9.2. ===== import std.stdio; void segfaultFlush() { auto f = File("deleteme", "w"); scope(exit) "deleteme".remove; f.close(); f.flush(); // segfault! } void segfaultError() { auto f = File("deleteme", "w"); scope(exit) "deleteme".remove; f.close(); assert(f.error); // segfault! } void main() { segfaultFlush(); segfaultError(); } ===== -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 12, 2014 [Issue 12349] std.File.flush and error causes segfault after calling close | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tomoya Tanjo | https://d.puremagic.com/issues/show_bug.cgi?id=12349 monarchdodra@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |monarchdodra@gmail.com --- Comment #1 from monarchdodra@gmail.com 2014-03-12 03:23:12 PDT --- https://github.com/D-Programming-Language/phobos/pull/1997 -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 12, 2014 [Issue 12349] std.File.flush and error causes segfault after calling close | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tomoya Tanjo | https://d.puremagic.com/issues/show_bug.cgi?id=12349 --- Comment #2 from github-bugzilla@puremagic.com 2014-03-12 06:07:44 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/7bbef15d032079bab53ac987bef7d4093009b8e9 Add test-cases for Issue 12349 -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 12, 2014 [Issue 12349] std.File.flush and error causes segfault after calling close | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tomoya Tanjo | https://d.puremagic.com/issues/show_bug.cgi?id=12349 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |andrej.mitrovich@gmail.com Resolution| |FIXED -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation