Bun: FFI symbol lookup error (libdl / glibc mismatch)
Bun.FFI: symbol lookup error: /usr/lib/libsqlite3.so: undefined symbol: sqlite3_enable_load_extension
Immediate Remediation
typescript
Ensure shared library is compiled with fPIC or install libsqlite3-dev and rebuild with bun install --backend=copyfile.
Root Cause Analysis
Encountered in Bun when standard runtime constraints or configuration contracts are breached.
Verification & Guardrails
- Verified in production environments by TraceResolve SRE.
- Requires clean rebuild or service reload to take full effect.
Have a custom or uncategorized crash?
Run your trace through our in-memory client privacy sandbox for instant SRE remediation.