[Issue 24681] New: rawWrite on closed File and closed pipe segfault
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jul 25 09:47:05 UTC 2024
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 at puremagic.com
Reporter: kdevel at 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");
}
```
--
More information about the Digitalmars-d-bugs
mailing list