Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rawWrite on closed File and closed pipe segfault #10558

Open
dlangBugzillaToGithub opened this issue Jul 25, 2024 · 0 comments
Open

rawWrite on closed File and closed pipe segfault #10558

dlangBugzillaToGithub opened this issue Jul 25, 2024 · 0 comments
Labels
Arch:x86_64 Issues specific to x86_64 OS:Linux Issues specific to Linux Severity:Normal

Comments

@dlangBugzillaToGithub
Copy link

kdevel reported this on 2024-07-25T09:47:05Z

Transfered from https://issues.dlang.org/show_bug.cgi?id=24681

Description

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");
}
```
@LightBender LightBender removed the P1 label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arch:x86_64 Issues specific to x86_64 OS:Linux Issues specific to Linux Severity:Normal
Projects
None yet
Development

No branches or pull requests

2 participants