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

crash found while running emberjs tests #14348

Closed
nektro opened this issue Oct 4, 2024 · 1 comment
Closed

crash found while running emberjs tests #14348

nektro opened this issue Oct 4, 2024 · 1 comment
Labels
crash An issue that could cause a crash runtime

Comments

@nektro
Copy link
Member

nektro commented Oct 4, 2024

What version of Bun is running?

1.1.30-debug+9446fd60c

What platform is your computer?

Darwin 23.5.0 arm64 arm

What steps can reproduce the bug?

git clone https://github.com/ember-cli/ember-cli.git
bun install
bun --bun run test

What is the expected behavior?

no crash

What do you see instead?

most pass
a few fail with #10768
ends with crash

    ✔ prints human-readable file sizes (including gzipped sizes) of css and js files in the output path (142ms)
node(20820,0x94c507000) malloc: at szone_check counter=10000
node(20820,0x949d1b000) malloc: at szone_check counter=20000
    ✔ does not print gzipped file sizes of empty files (157ms)
node(20820,0xa57f07000) malloc: at szone_check counter=30000
node(20820,0xa57813000) malloc: at szone_check counter=40000
    ✔ does not print project test helper file sizes (163ms)
============================================================
Bun Debug v1.1.30 (cf630422) macOS Silicon
macOS v14.5
Args: "node" "--unhandled-rejections=strict" "tests/runner"
Features: Bun.stdin(2) http_server(3) jsc spawn(113) transpiler_cache(24) tsconfig(34) tsconfig_paths(3) workers_spawned(24) 
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:timers" "node:tls" "node:tty" "node:url" "node:util" "node:util/types" "node:zlib" "node:worker_threads" "node:punycode" "utf-8-validate" "node:http2" 
Elapsed: 220733ms | User: 69091ms | Sys: 26942ms
RSS: 1.77GB | Peak: 1.77GB | Commit: 2.11GB | Faults: 99

panic: Segmentation fault at address 0x10D4D0000
???:?:?: 0x19e8d7583 in ??? (libsystem_platform.dylib)
???:?:?: 0x8472800104726207 in ??? (???)
???:?:?: 0x1055c73d3 in __ZN3JSC6ParserINS_5LexerIhEEE16popScopeInternalERNS_8ScopeRefEb (???)
???:?:?: 0x1055f8d97 in __ZN3JSC6ParserINS_5LexerIhEEE17parseFunctionInfoINS_13SyntaxCheckerEEEbRT_NS_24FunctionNameRequirementsEbNS_15ConstructorKindENS_12SuperBindingEjRNS_18ParserFunctionInfoIS6_EENS3_22FunctionDefinitionTypeENSt3__18optionalIiEE (???)
???:?:?: 0x1055f6e57 in __ZN3JSC6ParserINS_5LexerIhEEE23parseFunctionExpressionINS_13SyntaxCheckerEEENT_10ExpressionERS6_ (???)
???:?:?: 0x1055f423f in __ZN3JSC6ParserINS_5LexerIhEEE21parseMemberExpressionINS_13SyntaxCheckerEEENT_10ExpressionERS6_ (???)
???:?:?: 0x1056125a3 in __ZN3JSC6ParserINS_5LexerIhEEE20parseUnaryExpressionINS_13SyntaxCheckerEEENT_10ExpressionERS6_ (???)
???:?:?: 0x105611fd7 in __ZN3JSC6ParserINS_5LexerIhEEE21parseBinaryExpressionINS_13SyntaxCheckerEEENT_10ExpressionERS6_ (???)
???:?:?: 0x105611257 in __ZN3JSC6ParserINS_5LexerIhEEE26parseConditionalExpressionINS_13SyntaxCheckerEEENT_10ExpressionERS6_ (???)
???:?:?: 0x10560ff43 in __ZN3JSC6ParserINS_5LexerIhEEE25parseAssignmentExpressionINS_13SyntaxCheckerEEENT_10ExpressionERS6_RNS3_25ExpressionErrorClassifierE (???)

error: script "test" was terminated by signal SIGTRAP (Trace or breakpoint trap)

Additional information

No response

@nektro nektro added bug Something isn't working crash An issue that could cause a crash labels Oct 4, 2024
@nektro nektro removed the bug Something isn't working label Oct 26, 2024
@Jarred-Sumner
Copy link
Collaborator

Very high chance this is heap corruption caused by worker_threads

Tracking this in #15964

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

No branches or pull requests

2 participants