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

Instant segfault when performing Bun.build() on a codebase. #14037

Open
l1mey112 opened this issue Sep 19, 2024 · 1 comment · Fixed by #14047
Open

Instant segfault when performing Bun.build() on a codebase. #14037

l1mey112 opened this issue Sep 19, 2024 · 1 comment · Fixed by #14047
Labels
crash An issue that could cause a crash linux An issue that occurs on Linux

Comments

@l1mey112
Copy link

How can we reproduce the crash?

Clone the repository randomx.js at commit hash 9984d2f. Then perform a simple bun build pointing at the library root, after running make.

await Bun.build({
	entrypoints: ['src/index.ts'],
	outdir: 'dist',
})

Keep in mind, make is needed to create the WASM files. You will need a simple clang installation, with the WABT and Binaryen toolchains installed.

Relevant log output

No response

Stack Trace (bun.report)

Bun v1.1.28 (cf4e9cb) on linux x86_64 [AutoCommand]

Segmentation fault at address 0x00000004

@l1mey112 l1mey112 added the crash An issue that could cause a crash label Sep 19, 2024
@github-actions github-actions bot added the linux An issue that occurs on Linux label Sep 19, 2024
@l1mey112
Copy link
Author

@dylan-conway I do not think this solves the problem, you have added a loader for WASM but I've implemented WASM imports as a Uint8Array with a Bun plugin. Look inside the bunfig.toml for more details, this may be a plugin issue.

@dylan-conway dylan-conway reopened this Sep 19, 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 occurs on Linux
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants