digitalmars.D.bugs - [Issue 24681] New: rawWrite on closed File and closed pipe segfault
- d-bugmail puremagic.com (37/37) Jul 25 2024 https://issues.dlang.org/show_bug.cgi?id=24681
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 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"); } ``` --
Jul 25 2024