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

Segfault running Bun + Remix (w/ vite) #15353

Closed
michaelgmcd opened this issue Nov 22, 2024 · 1 comment
Closed

Segfault running Bun + Remix (w/ vite) #15353

michaelgmcd opened this issue Nov 22, 2024 · 1 comment
Labels
crash An issue that could cause a crash macOS An issue that occurs on macOS

Comments

@michaelgmcd
Copy link

How can we reproduce the crash?

Running a custom remix server in development crashes with Bun.

Reproduction: https://github.com/michaelgmcd/bun-remix-repro

Server code:

import { createServer } from 'vite';

import { Hono } from 'hono';

await createServer();

const app = new Hono();

Bun.serve({ port: 3000, fetch: app.fetch });

Relevant log output

Stack Trace (bun.report)

Bun v1.1.36 (ededc16) on macos aarch64 [AutoCommand]

Segmentation fault at address 0x0006024C

  • 1 unknown/js code
  • src.install.dependency.parseWithTag
  • src.resolver.resolver.Resolver.parsePackageJSON__anon_97690
  • src.resolver.resolver.Resolver.dirInfoUncached
  • src.resolver.resolver.Resolver.dirInfoCached
  • src.resolver.resolver.Resolver.loadNodeModules
  • src.resolver.resolver.Resolver.resolveWithoutRemapping
  • src.resolver.resolver.Resolver.resolveAndAutoInstall
  • src.bun.js.javascript.VirtualMachine.resolveMaybeNeedsTrailingSlash__anon_116799
  • src.bun.js.api.BunObject.doResolveWithArgs__anon_110045

Features: process_dlopen, Bun.stdin, dotenv, jsc, spawn, tsconfig, tsconfig_paths, tsconfig_paths

Sentry Issue: BUN-8NE

@michaelgmcd michaelgmcd added the crash An issue that could cause a crash label Nov 22, 2024
@github-actions github-actions bot added the macOS An issue that occurs on macOS label Nov 22, 2024
@Jarred-Sumner
Copy link
Collaborator

Fixed in #15332

This will be part of the Bun v1.1.37 release, which is today

For now, you can run bun upgrade --canary

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
Projects
None yet
Development

No branches or pull requests

2 participants