-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
SEGFAULTs when parallelizing OpenAI transcriptions #14918
Labels
confirmed bug
We can reproduce this issue
crash
An issue that could cause a crash
macOS
An issue that occurs on macOS
Comments
I updated with a crash report from |
Merged
@Jarred-Sumner thanks for the speedy fix. Hope to see it land soon. If you have the energy for it, could I get a TL;DR of what the issue ended up being? |
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)
…On Thu, Oct 31, 2024 at 2:10 AM Parsa Rahimi ***@***.***> wrote:
@Jarred-Sumner <https://github.com/Jarred-Sumner> thanks for the speedy
fix. Hope to see it land soon. If you have the energy for it, could I get a
TL;DR of what the issue ended up being?
—
Reply to this email directly, view it on GitHub
<#14918 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFNGS4EA7EXF6ZI2KXB733Z6HXZ5AVCNFSM6AAAAABQ5GX332VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBZGM3TSMJVGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Makes sense! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
confirmed bug
We can reproduce this issue
crash
An issue that could cause a crash
macOS
An issue that occurs on macOS
How can we reproduce the crash?
Hey y'all! After much investigative work, I am happy to present a segmentation fault that has been driving me nuts. The only way I have been able to reproduce this has been by a) creating creating an mp3 using the ffmpeg command attached, and b) passing it into the official
openai
SDK for transcription. Luckily, the OAI SDK source code is clean and accessible in the package so the implementations are not opaque. Please let me know if I can provide any more insight.I attached a combo of a few different reports below. I don't have all of them but these should be helpful enough I hope.
EDIT: I added a crash from the latest version of Bun. I'm on an outdated one on my project due to a different unfixed bug.
As minimal repro as I could get with consistent breakages. Unfortunately, an OpenAI key is required. I really tried to make this break without.
Relevant log output
No response
Stack Trace (bun.report)
Bun v1.1.29 (
6d43b36
) on macos aarch64 [RunCommand]Segmentation fault at address 0x00050004
JSC::JSLexicalEnvironment::create
operationCreateLexicalEnvironmentUndefined
vmEntryToJavaScript
Features: jsc, Bun.stdin, dotenv, fetch, spawn, transpiler_cache, tsconfig_paths, tsconfig
Sentry Issue: BUN-7R0
Bun v1.1.29 (
6d43b36
) on macos aarch64 [AutoCommand]Segmentation fault at address 0x101B411000000
JSC::ArrayBufferContents::~ArrayBufferContents
WTF::DeferrableRefCounted<JSC::ArrayBuffer>::setIsDeferred
bool JSC::GCIncomingRefCounted<JSC::ArrayBuffer>::filterIncomingReferences<JSC::GCIncomingRefCountedSet<JSC::ArrayBuffer>::sweep(...)::'lambda'(...)::operator(...) const::'lambda'(...)>
JSC::Heap::runEndPhase
JSC::Heap::runCurrentPhase
WTF::ScopedLambdaFunctor<void (...), JSC::Heap::collectInMutatorThread()::$_0>::implFunction
JSC::callWithCurrentThreadState
JSC::Heap::collectInMutatorThread
JSC::Heap::collectIfNecessaryOrDefer
Features: jsc, Bun.stdin, dotenv, fetch, spawn, tsconfig
Bun v1.1.29 (
6d43b36
) on macos aarch64 [RunCommand]Segmentation fault at address 0x93D5BECD8
JSC::DFG::ByteCodeParser::Terminality JSC::DFG::ByteCodeParser::handleVarargsCall<JSC::OpTailCallVarargs>
JSC::DFG::ByteCodeParser::Terminality JSC::DFG::ByteCodeParser::handleVarargsCall<JSC::OpTailCallVarargs>
JSC::DFG::ByteCodeParser::parseBlock
JSC::DFG::ByteCodeParser::parseCodeBlock
JSC::DFG::ByteCodeParser::parse
JSC::DFG::parse
JSC::DFG::Plan::compileInThreadImpl
JSC::JITPlan::compileInThread
JSC::JITWorklistThread::work
Features: jsc, Bun.stdin, dotenv, fetch, spawn, transpiler_cache, tsconfig_paths, tsconfig
Sentry Issue: BUN-7QR
Bun v1.1.29 (
6d43b36
) on macos aarch64 [RunCommand]Segmentation fault at address 0x444800013EF64446
decltype(...) std::__1::__variant_detail::__visitation::__base::__dispatcher<0ul>::__dispatch[abi:nn180100]<std::__1::__variant_detail::__dtor<std::__1::__variant_detail::__traits<JSC::StructureTransitionStructureStubClearingWatchpoint, JSC::AdaptiveValueStructureStubClearingWatchpoint>, (...)1>::__destroy[abi:nn180100](...)&&, std::__1::__variant_detail::__base<(...)1, JSC::StructureTransitionStructureStubClearingWatchpoint, JSC::AdaptiveValueStructureStubClearingWatchpoint>&>
decltype(...) std::__1::__variant_detail::__visitation::__base::__dispatcher<0ul>::__dispatch[abi:nn180100]<std::__1::__variant_detail::__dtor<std::__1::__variant_detail::__traits<JSC::StructureTransitionStructureStubClearingWatchpoint, JSC::AdaptiveValueStructureStubClearingWatchpoint>, (...)1>::__destroy[abi:nn180100](...)&&, std::__1::__variant_detail::__base<(...)1, JSC::StructureTransitionStructureStubClearingWatchpoint, JSC::AdaptiveValueStructureStubClearingWatchpoint>&>
JSC::PolymorphicAccessJITStubRoutine::observeZeroRefCountImpl
JSC::InlineCacheHandler::~InlineCacheHandler
JSC::InlineCacheHandler::~InlineCacheHandler
JSC::StructureStubInfo::~StructureStubInfo
JSC::CodeBlock::~CodeBlock
void JSC::MarkedBlock::Handle::specializedSweep<true, (...)1, (...)1, (...)1, (...)0, (...)1, (...)1, JSC::DefaultDestroyFunc>
void JSC::MarkedBlock::Handle::finishSweepKnowingHeapCellType<JSC::DefaultDestroyFunc>(...)::'lambda'(...)
Features: jsc, Bun.stdin, dotenv, fetch, spawn, transpiler_cache, tsconfig_paths, tsconfig
Sentry Issue: BUN-5MM
Bun v1.1.33 (
247456b
) on macos aarch64 [RunCommand]Segmentation fault at address 0x112DB57A00020
JSC::ObjectPropertyConditionSet::numberOfConditionsWithKind
JSC::ObjectPropertyConditionSet::numberOfConditionsWithKind
bool JSC::OpRet::emitImpl<(...)1, true, JSC::BytecodeGenerator>
JSC::Heap::webAssemblyFunctionSpaceSlow
WTF::SharedTaskFunctor<void (...), JSC::FTL::Output::doubleTrunc(...)::$_0>::~SharedTaskFunctor
JSC::BlockDirectory::findBlockForAllocation
JSC::FTL::slowPathCallThunkGenerator
JSC::GCClient::Heap::javaScriptCallFrameSpaceSlow
void std::__1::__introsort<std::__1::_ClassicAlgPolicy, JSC::HeapSnapshot::finalize()::$_0&, JSC::HeapSnapshotNode*, false>
Features: Bun.stdin, dotenv, fetch, jsc, spawn, tsconfig
Sentry Issue: BUN-7R5
The text was updated successfully, but these errors were encountered: