Skip to content

v1.2.12 Seg Fault Issue with @react/email #19518

@patrickrollinson

Description

@patrickrollinson

How can we reproduce the crash?

Bug: @react-email render function causes segmentation fault in v1.2.12

Upgrading Bun from from v1.2.9 to v1.2.12 causes a segmentation fault when calling the render function on @react-email. This issue did not occur in v1.2.9 and appears to be a regression.

Minimal repro:

import {render} from "@react-email/components";

 const emailHtml = await render(
    InviteEmail({registerUrl, orgName, recipientEmail: toEmail})
  );

Relevant log output

Stack Trace (bun.report)

Bun v1.2.12 (32a47ae) on macos aarch64 [AutoCommand]

Segmentation fault at address 0x00000010

  • 2 unknown/js code
  • js_ast.Expr.Data.Store.append__anon_235372
  • js_parser.NewParser_
  • js_parser.NewParser_
  • js_parser.NewParser_
  • js_parser.NewParser_
  • js_parser.Parser._parse__anon_547511
  • cache.JavaScript.parse
  • transpiler.Transpiler.parseMaybeReturnFileOnlyAllowSharedBuffer__anon_326333

Features: transpiler_cache, tsconfig, tsconfig_paths, process_dlopen, Bun.stderr, Bun.stdout, bunfig, dotenv, http_server, jsc, dev_server

Sentry Issue: BUN-HS6

Metadata

Metadata

Assignees

No one assigned

    Labels

    crashAn issue that could cause a crashmacOSAn issue that occurs on macOSregression

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions