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

Fixes #14918 #14921

Merged
merged 1 commit into from
Oct 31, 2024
Merged

Fixes #14918 #14921

merged 1 commit into from
Oct 31, 2024

Conversation

Jarred-Sumner
Copy link
Collaborator

@Jarred-Sumner Jarred-Sumner commented Oct 31, 2024

What does this PR do?

When creating a File from another File and then appending it to FormData, once that FormData gets GC’d it can potentially crash because the file name’s string’s reference count was not incremented when the File object was duplicated (because this code was originally for Blob, which didn’t have a file name)

Fixes #14918

How did you verify your code works?

There is a test

@robobun
Copy link

robobun commented Oct 31, 2024

@Jarred-Sumner Jarred-Sumner merged commit 7035a11 into main Oct 31, 2024
42 of 44 checks passed
@Jarred-Sumner Jarred-Sumner deleted the jarred/fixes-14918 branch October 31, 2024 21:26
190n pushed a commit that referenced this pull request Nov 2, 2024
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.

SEGFAULTs when parallelizing OpenAI transcriptions
3 participants