Skip to content

Crash when attempting to create a database with an invalid name with lmdb #21682

@gsemyong

Description

@gsemyong

How can we reproduce the crash?

Run bun init with tw, install those deps:

"@ai-sdk/react": "^2.0.8",
"@openrouter/ai-sdk-provider": "^1.1.0",
"@tanstack/react-db": "^0.1.1",
"ai": "^5.0.8",
"bun-plugin-tailwind": "^0.0.15",
"lmdb": "^3.4.2",
"react": "^19.1.1",
"react-dom": "^19.1.1",
"tailwindcss": "^4.1.11",
"zod": "^4.0.15"

},
"devDependencies": {
"@types/react": "^19.1.9",
"@types/react-dom": "^19.1.7",
"@types/bun": "^1.2.19"

write some code, then run bun dev, it crashes on start afaiu.

Relevant log output

Stack Trace (bun.report)

Bun v1.2.19 (aad3abe) on macos aarch64 [AutoCommand]

panic: Aborted

  • napi.h:154: napi_remove_env_cleanup_hook
  • 6 unknown/js code
  • NapiClass.cpp:68: long long Zig::NapiClass_ConstructorFunction<false>
  • 1 unknown/js code
  • jsc_llint_commonCallOp__llintOpWithMetadata__llintOpWithReturn__llintOp__commonOp__fn__fn__makeReturn__fn__fn__fn__666_callHelper__dispatch_LowLevelInterpreter64_asm_2535

Features: transpiler_cache, tsconfig, tsconfig_paths, process_dlopen, bunfig, dotenv, jsc

Sentry Issue: BUN-M5Q

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed bugWe can reproduce this issuecrashAn issue that could cause a crashmacOSAn issue that occurs on macOSnapiCompatibility with the native layer of Node.jsruntime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions