July 25 [Issue 24681] New: rawWrite on closed File and closed pipe segfault | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24681 Issue ID: 24681 Summary: rawWrite on closed File and closed pipe segfault Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal Priority: P1 Component: phobos Assignee: nobody@puremagic.com Reporter: kdevel@vogtner.de related: #21728, #21729 segfpipe.d ``` import std.stdio; import std.process; void main () { auto p = pipe (); p.writeEnd.close (); p.writeEnd.rawWrite ("test"); } ``` segffile.d ``` import std.stdio; import std.file; void main () { auto f = File ("/dev/null"); f.close (); f.rawWrite ("test"); } ``` -- |
Copyright © 1999-2021 by the D Language Foundation