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

Subprocess: fix crash when stdin outlives it #12983

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Conversation

nektro
Copy link
Member

@nektro nektro commented Jul 31, 2024

Pulled out of changes for #11492, making separate patch to isolate against other test results, will rebase once merged. fixes crash reproducible on that branch on windows in test/js/bun/spawn/spawn-streaming-stdin.test.ts that occurred when Subprocess destroys itself before stdin does.

@robobun
Copy link

robobun commented Jul 31, 2024

@nektro, your commit 4955eb0 has 19 failures in #1073

@Jarred-Sumner
Copy link
Collaborator

Which test failure is this fixing?

Copy link
Collaborator

@Jarred-Sumner Jarred-Sumner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few comments

@nektro nektro requested a review from Jarred-Sumner August 1, 2024 01:54
Copy link
Collaborator

@Jarred-Sumner Jarred-Sumner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While the crash is fixed, the Subprocess no longer uses the FileSink pointer, and the FileSink pointer no longer uses the Subprocess pointer

What is the purpose of having this shared pointer now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants