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

Segfault when performing heavy operations #12168

Open
schettn opened this issue Jun 26, 2024 · 0 comments
Open

Segfault when performing heavy operations #12168

schettn opened this issue Jun 26, 2024 · 0 comments
Labels
crash An issue that could cause a crash linux An issue that only occurs on Linux runtime

Comments

@schettn
Copy link

schettn commented Jun 26, 2024

How can we reproduce the crash?

I am trying to insert 1M records into a SQLlite DB using prisma.

Sometimes it works, sometimes it crashes.

Relevant log output

info: Creating stop times chunk 0 to 100000
info: Creating stop times chunk 100000 to 200000
info: Creating stop times chunk 200000 to 300000
info: Creating stop times chunk 300000 to 400000
info: Creating stop times chunk 400000 to 500000
============================================================
Bun v1.1.17 (bb66bba1) Linux x64 (baseline)
Linux Kernel v6.1.0 | glibc v2.31
Args: "/usr/local/bin/bun" "run" "./node_modules/.bin/pylon-server"
Features: jsc Bun.stdout http_server tsconfig 
Builtins: "bun:main" "node:async_hooks" "node:buffer" "node:child_process" "node:crypto" "node:domain" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:stream" "node:string_decoder" "node:tls" "node:tty" "node:url" "node:util" "node:util/types" "node:zlib" "node:inspector" 
Elapsed: 218582ms | User: 44234ms | Sys: 3929ms
RSS: 2.93GB | Peak: 2.75GB | Commit: 2.93GB | Faults: 0
panic(main thread): Segmentation fault at address 0x0
oh no: Bun has crashed. This indicates a bug in Bun, not your code.
To send a redacted crash report to Bun's team,
please file a GitHub issue using the link below:
 https://bun.report/1.1.17/Br1bb66bbaAygghgE21ozmE+1mOu32z9Duw609Dgo509Dyyw29DoqwqgFm85o4E02wn4E43ut4EA2AA

Stack Trace (bun.report)

Bun v1.1.17 (bb66bba) on linux x86_64_baseline [RunCommand]

Segmentation fault at address 0x00000000

  • ld-temp.o:0: WTF::jscSignalHandler
  • ??
  • StringImpl.h:1154: Bun::formatStackTrace
  • ZigGlobalObject.cpp:571: computeErrorInfoWithoutPrepareStackTrace
  • ZigGlobalObject.cpp:663: computeErrorInfoWrapper
  • Function.h:53: WTF::Detail::CallableWrapper<WTF::String (...)(...), WTF::String, JSC::VM&, WTF::Vector<JSC::StackFrame, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>&, unsigned int&, unsigned int&, WTF::String&, JSC::JSObject*>::call
  • ld-temp.o:0: JSC::ErrorInstance::computeErrorInfo
  • ld-temp.o:0: JSC::Heap::runEndPhase
  • ld-temp.o:0: JSC::Heap::runCurrentPhase
  • ld-temp.o:0: WTF::ScopedLambdaFunctor<void (...), JSC::Heap::collectInMutatorThread()::$_0>::implFunction
@schettn schettn added the crash An issue that could cause a crash label Jun 26, 2024
@github-actions github-actions bot added linux An issue that only occurs on Linux runtime labels Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash An issue that could cause a crash linux An issue that only occurs on Linux runtime
Projects
None yet
Development

No branches or pull requests

1 participant