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

bug: bun run rsbuild api crash #15106

Closed
veaba opened this issue Nov 12, 2024 · 1 comment
Closed

bug: bun run rsbuild api crash #15106

veaba opened this issue Nov 12, 2024 · 1 comment
Labels
crash An issue that could cause a crash runtime windows An issue that is known to occur on Windows

Comments

@veaba
Copy link

veaba commented Nov 12, 2024

How can we reproduce the crash?

// app.mjs

import { createRsbuild } from '@rsbuild/core'

const startDev = async () => {
  const rsbuild = await createRsbuild({
    rsbuildConfig: {
      root: './',
      environments: {
        web: {
          source: {
            entry: {
              index: './src/renderer/src/main.tsx'
            }
          },
        }
      }
    }
  })

  const server = await rsbuild.startDevServer()
  console.log('server=>', server)
 
}

startDev()
  • use bun run command
bun run app.mjs

Image

node is working.

Relevant log output

log

Bun v1.1.34 (5e5e7c60) Windows x64
Windows v.win10_fe
CPU: sse42 avx avx2
Args: "C:\Users\Veaba\.bun\bin\bun.exe" ".\run-script-main.mjs"
Features: Bun.stdin(2) http_server jsc transpiler_cache(11) tsconfig(2) 
Builtins: "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:constants" "node:crypto" "node:events" "node:fs" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:process" "node:querystring" "node:readline" "node:stream" "node:string_decoder" "node:tls" "node:tty" "node:url" "node:util" "node:util/types" "node:vm" "node:zlib" "node:inspector" 
Elapsed: 308ms | User: 62ms | Sys: 15ms
RSS: 0.49GB | Peak: 0.49GB | Commit: 0.65GB | Faults: 122145

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,
please file a GitHub issue using the link below:

Stack Trace (bun.report)

Bun v1.1.34 (5e5e7c6) on windows x86_64 [RunAsNodeCommand]

Segmentation fault at address 0x00000005

Features: Bun.stdin, bunfig, http_server, jsc, spawn, tsconfig

Sentry Issue: BUN-29T

@veaba veaba added the crash An issue that could cause a crash label Nov 12, 2024
@github-actions github-actions bot added runtime windows An issue that is known to occur on Windows labels Nov 12, 2024
@nektro
Copy link
Member

nektro commented Nov 13, 2024

duplicate of #11628

@nektro nektro closed this as not planned Won't fix, can't repro, duplicate, stale Nov 13, 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 runtime windows An issue that is known to occur on Windows
Projects
None yet
Development

No branches or pull requests

2 participants