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

Segmentation fault at address 0x5 #18004

Open
vdata1 opened this issue Mar 8, 2025 · 0 comments
Open

Segmentation fault at address 0x5 #18004

vdata1 opened this issue Mar 8, 2025 · 0 comments
Labels
crash An issue that could cause a crash macOS An issue that occurs on macOS runtime

Comments

@vdata1
Copy link

vdata1 commented Mar 8, 2025

How can we reproduce the crash?

Hi,

I want to report a bug causing a segmentation fault in Bun, it can reproduced by running the following code example:

function Module() {
  (async function () {
    const output = await (Bun.$)`pwd`.text();
    console.log(output);
  })();
    new Float64Array(badObj);
}
function f() {
  try {
    var fuse = f();
    if (fuse == 0) Module();
  } catch (e) {
    return 0;
  }
}
f();

Regards,

AH

Relevant log output

Bun Canary v1.1.39-canary.38 (00b7d647) macOS x64
macOS v15.3.1
CPU: sse42 popcnt avx avx2
Args: "bun" "run" "bug.js"
Features: jsc 
Builtins: "bun:main" 
Elapsed: 24ms | User: 21ms | Sys: 14ms
RSS: 25.76MB | Peak: 25.76MB | Commit: 1.07GB | Faults: 0

panic(main thread): Segmentation fault at address 0x5
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

To send a redacted crash report to Bun's team,

Stack Trace (bun.report)

Bun v1.1.39-canary (00b7d64) on macos x86_64 [RunCommand]

Segmentation fault at address 0x00000005

  • 2 unknown/js code
  • ??
  • ??
  • ??
  • ??
  • ??
  • 3 unknown/js code

Features: jsc

Sentry Issue: BUN-22K

@vdata1 vdata1 added the crash An issue that could cause a crash label Mar 8, 2025
@github-actions github-actions bot added macOS An issue that occurs on macOS runtime labels Mar 8, 2025
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 macOS An issue that occurs on macOS runtime
Projects
None yet
Development

No branches or pull requests

1 participant