-
Notifications
You must be signed in to change notification settings - Fork 326
segmentation fault in code-server #10921
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
Comments
other relevant info: extension info, issue occurs with single extension in use: Identifier |
@krishanjmistry thank you for the link to your issue. |
I'm facing the same issue. I've tried to reduce the configuration as simple as possible. I'm on a 2020 MacBook Pro with an Intel i7 processor. ` // Features to add to the dev container. More info: https://containers.dev/features. // Use 'forwardPorts' to make a list of ports inside the container available locally. // Use 'postCreateCommand' to run commands after the container is created. // Configure tool-specific properties. // "mounts": ["source=${env:HOME}${env:USERPROFILE}/.aws,target=/home/node/.aws,type=bind"] // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. Docker version 28.1.1, build 4eba377 Edit: Downgrading Docker worked for me as a band-aid fix! |
This seems to be an upstream issue between Node.js and Docker. docker/for-mac#7667 mentions memory protection keys. /fyi @deepak1556 |
Docker Desktop 4.41 configures the Linux VM kernel with support for memory protection keys. That's not a problem per-se, but it's causing vscode-server to hit a segmentation fault when it uses the mem protection keys mechanism. Apparently the problem only occurs on Mac with Intel processors, so it may be a virtualization layer issue. More info on docker/for-mac#7667. |
Does this issue occur when all extensions are disabled?: Unable to verify - cannot startup application in this way on corporate Mac.
Steps to Reproduce:
Error log:
[2025-04-30T14:06:27.476Z] userEnvProbe PATHs:
Probe: '/usr/local/sdkman/bin:/usr/local/sdkman/candidates/java/current/bin:/usr/local/sdkman/candidates/gradle/current/bin:/usr/local/sdkman/candidates/maven/current/bin:/usr/local/sdkman/candidates/ant/current/bin:/usr/local/share/nvm/current/bin:/usr/local/sdkman/bin:/usr/local/sdkman/candidates/java/current/bin:/usr/local/sdkman/candidates/gradle/current/bin:/usr/local/sdkman/candidates/maven/current/bin:/usr/local/sdkman/candidates/ant/current/bin:/usr/lib/jvm/msopenjdk-current/bin:/usr/local/sdkman/bin:/usr/local/sdkman/candidates/java/current/bin:/usr/local/sdkman/candidates/gradle/current/bin:/usr/local/sdkman/candidates/maven/current/bin:/usr/local/sdkman/candidates/ant/current/bin:/usr/local/share/nvm/current/bin:/usr/local/sdkman/bin:/usr/local/sdkman/candidates/java/current/bin:/usr/local/sdkman/candidates/gradle/current/bin:/usr/local/sdkman/candidates/maven/current/bin:/usr/local/sdkman/candidates/ant/current/bin:/usr/lib/jvm/msopenjdk-current/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/vscode/.local/bin'
Container: '/usr/local/sdkman/bin:/usr/local/sdkman/candidates/java/current/bin:/usr/local/sdkman/candidates/gradle/current/bin:/usr/local/sdkman/candidates/maven/current/bin:/usr/local/sdkman/candidates/ant/current/bin:/usr/local/share/nvm/current/bin:/usr/local/sdkman/bin:/usr/local/sdkman/candidates/java/current/bin:/usr/local/sdkman/candidates/gradle/current/bin:/usr/local/sdkman/candidates/maven/current/bin:/usr/local/sdkman/candidates/ant/current/bin:/usr/lib/jvm/msopenjdk-current/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
[2025-04-30T14:06:27.476Z] Start: Run in container: mkdir -p '/tmp/devcontainers-72b097d9-d0e1-4e4d-b134-3dae21c042fd1746021983097' && cat > '/tmp/devcontainers-72b097d9-d0e1-4e4d-b134-3dae21c042fd1746021983097/env-loginInteractiveShell.json' << 'envJSON'
[2025-04-30T14:06:27.485Z]
[2025-04-30T14:06:27.485Z]
[2025-04-30T14:06:27.485Z] Stop (9 ms): Run in container: mkdir -p '/tmp/devcontainers-72b097d9-d0e1-4e4d-b134-3dae21c042fd1746021983097' && cat > '/tmp/devcontainers-72b097d9-d0e1-4e4d-b134-3dae21c042fd1746021983097/env-loginInteractiveShell.json' << 'envJSON'
[2025-04-30T14:06:27.505Z] Segmentation fault
[2025-04-30T14:06:27.518Z] Stop (247 ms): Run in container: /home/vscode/.vscode-server/bin/17baf841131aa23349f217ca7c570c76ee87b957/bin/code-server --log debug --force-disable-user-env --server-data-dir /home/vscode/.vscode-server --use-host-proxy --telemetry-level all --accept-server-license-terms --host 127.0.0.1 --port 0 --connection-token-file /home/vscode/.vscode-server/data/Machine/.connection-token-17baf841131aa23349f217ca7c570c76ee87b957 --extensions-download-dir /home/vscode/.vscode-server/extensionsCache --start-server --disable-websocket-compression --skip-requirements-check
[2025-04-30T14:06:27.523Z] Command failed: /home/vscode/.vscode-server/bin/17baf841131aa23349f217ca7c570c76ee87b957/bin/code-server --log debug --force-disable-user-env --server-data-dir /home/vscode/.vscode-server --use-host-proxy --telemetry-level all --accept-server-license-terms --host 127.0.0.1 --port 0 --connection-token-file /home/vscode/.vscode-server/data/Machine/.connection-token-17baf841131aa23349f217ca7c570c76ee87b957 --extensions-download-dir /home/vscode/.vscode-server/extensionsCache --start-server --disable-websocket-compression --skip-requirements-check
[2025-04-30T14:06:27.523Z] Segmentation fault
[2025-04-30T14:06:27.523Z] Exit code 139
The text was updated successfully, but these errors were encountered: