Skip to content

try fix Pyrefly crashes VSCode when allocating memory on glibc 2.17 #1636#4122

Open
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:1636
Open

try fix Pyrefly crashes VSCode when allocating memory on glibc 2.17 #1636#4122
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:1636

Conversation

@asukaminato0721

Copy link
Copy Markdown
Contributor

Summary

Fixes #1636

Musl binaries, including the bundled Linux x64 VS Code binary, now use mimalloc instead of jemalloc, GNU Linux and macOS retain jemalloc.

Test Plan

@kinto0

kinto0 commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

cool! do you have a source for the musl change? and are we able to reproduce the issue -> fix resolution anywhere?

@kinto0 kinto0 self-assigned this Jul 13, 2026
@asukaminato0721

Copy link
Copy Markdown
Contributor Author

The Linux x64 VS Code extension is indeed built for x86_64-unknown-linux-musl (source (ca7e66d)), and I confirmed that the published 0.42.2 binary is a static PIE using jemalloc.

for the allocator change reason, jemalloc/jemalloc#1328


but it's hard to make a test for it... maybe @varchasgopalaswamy can have a test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pyrefly crashes VSCode when allocating memory on glibc 2.17

2 participants