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 0x0 #16293

Open
Psionyc opened this issue Jan 9, 2025 · 1 comment
Open

Segmentation fault at address 0x0 #16293

Psionyc opened this issue Jan 9, 2025 · 1 comment
Labels
crash An issue that could cause a crash runtime windows An issue that is known to occur on Windows

Comments

@Psionyc
Copy link

Psionyc commented Jan 9, 2025

How can we reproduce the crash?

Bun v1.1.18 (5a0b935) Windows x64
Args: "C:\Users\Ione\AppData\Roaming\npm\node_modules\bun\bin\bun.exe" "test"
Features: jsc Bun.stdin(2) dotenv http_server transpiler_cache(51) tsconfig(9) WebSocket(3)
Builtins: "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:crypto" "node:dns" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:process" "node:stream" "node:string_decoder" "node:timers" "node:timers/promises" "node:tls" "node:tty" "node:url" "node:util" "node:util/types" "node:zlib" "node:worker_threads" "ws" "node-fetch"
Elapsed: 2359ms | User: 1046ms | Sys: 203ms
RSS: 0.37GB | Peak: 0.37GB | Commit: 0.47GB | Faults: 96786

I get this error when I run bun test and it seems to occur once every two tries

When running on Elysia I got an error my package dependies are listed below

{
  "name": "backend",
  "version": "1.0.50",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "dev": "bun run --watch src/index.ts",
    "email": "email dev",
    "generate-contract-types": "typechain --target ethers-v6 --out-dir src/abis/ts src/abis/json/*.json"
  },
  "dependencies": {
    "@ankr.com/ankr.js": "^0.5.2",
    "@elysiajs/cors": "^1.2.0",
    "@elysiajs/eden": "^1.2.0",
    "@elysiajs/jwt": "^1.1.1",
    "@elysiajs/swagger": "^1.1.6",
    "@faker-js/faker": "^9.3.0",
    "@react-email/components": "0.0.31",
    "@solana/spl-token": "^0.4.9",
    "@solana/web3.js": "^1.98.0",
    "@typechain/ethers-v6": "^0.5.1",
    "axios": "^1.7.9",
    "bs58": "^6.0.0",
    "bullmq": "^5.34.5",
    "elysia": "^1.1.6",
    "ethers": "^6.13.4",
    "graphql-request": "^7.1.2",
    "install": "^0.13.0",
    "logixlysia": "^4.0.0",
    "lru-cache": "^11.0.2",
    "mongoose": "^8.9.2",
    "npm": "^11.0.0",
    "react": "19.0.0",
    "react-dom": "19.0.0",
    "resend": "^4.0.1",
    "tronweb": "^6.0.0",
    "ts-pattern": "^5.6.0",
    "typechain": "^8.3.2",
    "viem": "^2.21.56",
    "winston": "^3.17.0"
  },
  "devDependencies": {
    "@types/react": "^19.0.2",
    "bun-types": "latest",
    "openapi": "^1.0.1",
    "react-email": "3.0.4"
  },
  "module": "src/index.js"
}

Relevant log output

Stack Trace (bun.report)

Bun v1.1.18 (5a0b935) on windows x86_64 [AutoCommand]

Segmentation fault at address 0x00000000

Sentry Issue: BUN-AYD

@Psionyc Psionyc added the crash An issue that could cause a crash label Jan 9, 2025
@github-actions github-actions bot added runtime windows An issue that is known to occur on Windows labels Jan 9, 2025
Copy link
Contributor

github-actions bot commented Jan 9, 2025

@Psionyc, the latest version of Bun is v1.1.42, but this crash was reported on Bun v1.1.18.

Are you able to reproduce this crash on the latest version of Bun?

bun upgrade

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 runtime windows An issue that is known to occur on Windows
Projects
None yet
Development

No branches or pull requests

1 participant