Open mProjectsCode opened 3 weeks ago
idk it happens when i tested bun build instead of esbuild to build my project. Here is my build config.
await Bun.build({ banner: { js: banner, }, entryPoints: ['packages/obsidian/src/main.ts'], bundle: true, external: [ 'obsidian', 'electron', '@codemirror/autocomplete', '@codemirror/collab', '@codemirror/commands', '@codemirror/language', '@codemirror/lint', '@codemirror/search', '@codemirror/state', '@codemirror/view', '@lezer/common', '@lezer/highlight', '@lezer/lr', ...builtins, ], format: 'esm', target: 'browser', logLevel: 'info', sourcemap: "none", treeShaking: true, outfile: 'main.js', minify: true, metafile: true, define: { MB_GLOBAL_CONFIG_DEV_BUILD: 'false', }, plugins: [ // @ts-ignore esbuildSvelte({ compilerOptions: { css: 'injected', dev: false, sveltePath: 'svelte' }, preprocess: sveltePreprocess(), filterWarnings: warning => { // we don't want warnings from node modules that we can do nothing about return !warning.filename?.includes('node_modules'); }, }), ], });
Bun v1.1.18 (5a0b9352) Linux x64 WSL Kernel v5.15.153 | glibc v2.39 Args: "bun" "run" "automation/build/bun_test.ts" Features: jsc bunfig transpiler_cache tsconfig(2) Builtins: "bun:main" "node:fs" "node:module" "node:path" "node:string_decoder" "node:util" "node:util/types" Elapsed: 114ms | User: 76ms | Sys: 43ms RSS: 1.07GB | Peak: 0.16GB | Commit: 1.07GB | Faults: 3 panic(main thread): Segmentation fault at address 0x4 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.18/lr15a0b935AiigggF2stknE+xpRk866qE26v5qE2+m8qEirg5pEsxxonFqp/s8E_ygws9DA2AI Illegal instruction
Bun v1.1.18 (5a0b935) on linux x86_64 [RunCommand]
5a0b935
Segmentation fault at address 0x00000004
ld-temp.o:0
WTF::jscSignalHandler
??
JSC::ReturnNode::emitBytecode
JSC::SourceElements::emitBytecode
JSC::FunctionNode::emitBytecode
JSC::BytecodeGenerator::generate
JSC::ScriptExecutable::prepareForExecutionImpl
operationDefaultCall
llint_op_call_ignore_result
This still happens on the latest canary, here is the extra CPU info CPU: sse42 popcnt avx avx2
CPU: sse42 popcnt avx avx2
Still happens with bun 1.1.20
How can we reproduce the crash?
idk it happens when i tested bun build instead of esbuild to build my project. Here is my build config.
Relevant log output
Stack Trace (bun.report)
Bun v1.1.18 (
5a0b935
) on linux x86_64 [RunCommand]Segmentation fault at address 0x00000004
ld-temp.o:0
:WTF::jscSignalHandler
??
ld-temp.o:0
:JSC::ReturnNode::emitBytecode
ld-temp.o:0
:JSC::SourceElements::emitBytecode
ld-temp.o:0
:JSC::FunctionNode::emitBytecode
ld-temp.o:0
:JSC::BytecodeGenerator::generate
ld-temp.o:0
:JSC::ScriptExecutable::prepareForExecutionImpl
ld-temp.o:0
:operationDefaultCall
ld-temp.o:0
:llint_op_call_ignore_result