-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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 with Illegal Instruction under Rosetta2 emulation in remote container #236824
Comments
For some reason I can't get any core dumps following these steps. $ coredumpctl list
No journal files were found.
No coredumps found. |
Can you confirm if the ulimit values are configured correctly in the container ? If you have a sample container and some steps to repro, it would be helpful. |
The issue was that I couldn't configure ulimit correctly but I finally got it to work by setting I will provide the core dump once I get another crash.
I think the meaningful parts of the Dockerfile are
I found that using the Jupyter Notebooks and the Python extensions increases the chances for a crash (although I didn't try it for long without extensions). I think to trigger a crash it should be enough to build the container as x86 on a device with an Apple chip, open a folder with Jupyter Notebooks and Python code (not sure if strictly necessary), select a Kernel for the Notebook and run the Notebook, and let vscode run in the background for a couple of hours. |
@deepak1556 Now ulimit is configured correctly:
(from the Docker terminal) But |
Type: Bug
I'm running a x64 container on my M2 MacBook.
The entire container seems to randomly crash with
Illegal Instruction
:This usually means something is trying to use AVX2 instructions which can't be emulated by Rosetta.
The crashes seem to be somehow related to Jupyter Notebooks: The crashes seem to occur more frequently when I search for a Jupyter Kernel.
Sometimes the container also crashes when it is idle for 1h.
I don't know if the issue is related to an extension or not because the remote extension host also seems to randomly crash, but it doesn't take the entire container down.
I didn't experience crashes when running the container without vscode.
I also found #214630 but I'm not sure if this is related because the extension host starts most of the time without any crashes.
VS Code version: Code 1.96.2 (Universal) (fabdb6a, 2024-12-19T10:22:47.216Z)
OS version: Darwin arm64 24.2.0
Modes:
Remote OS version: Linux x64 6.10.14-linuxkit
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Extensions (11)
The text was updated successfully, but these errors were encountered: