Repository: vscode
Issue: Segmentation fault in VS Code Dev Container
Labels: info-needed,freeze-slow-crash-leak,macos,containers


Type: <b>Bug</b>

**Version Information**:
- **VS Code Version**: 1.95.0-insider (8d8f0cd9d4b25e89621ce897e82f2111eca6a278)
- **Dev Containers Version**: 0.388.0
- **Docker Desktop Version**: 4.24.2
- **Docker Engine Version**: 24.0.6
- **OS**: macOS (Docker context: desktop-linux)
- **Base Image**: mcr.microsoft.com/devcontainers/base:jammy (Ubuntu 22.04.5 LTS)

## The Problem
Segmentation fault occurs when running a project in a dev container. The issue persists even after rebuilding the container and restarting the extension host.

## Steps to Reproduce
1. Open a project using the following `devcontainer.json` configuration:
   ```json
   {
     "name": "Netstream Lab Dev Container",
     "image": "mcr.microsoft.com/devcontainers/base:jammy",
     "runArgs": [
       "--cap-add=SYS_PTRACE",
       "--security-opt",
       "seccomp=unconfined"
     ],
     "customizations": {
       "settings": {
         "terminal.integrated.shell.linux": "/bin/bash"
       },
       "extensions": [
         "ms-vscode.cpptools"
       ]
     }
   }
   ```
2. Attempt to start the container and begin development.
3. Observe the segmentation fault after a few seconds, as the container fails to initialize properly.

## Error Logs

```
[5843 ms] Segmentation fault
[5867 ms] Command failed: /home/vscode/.vscode-server-insiders/bin/8d8f0cd9d4b25e89621ce897e82f2111eca6a278-insider/bin/code-server-insiders --log debug --force-disable-user-env --server-data-dir /home/vscode/.vscode-server-insiders --use-host-proxy --telemetry-level all --accept-server-license-terms --host 127.0.0.1 --port 0 --connection-token-file /home/vscode/.vscode-server-insiders/data/Machine/.connection-token-8d8f0cd9d4b25e89621ce897e82f2111eca6a278-insider --extensions-download-dir /home/vscode/.vscode-server-insiders/extensionsCache --start-server --disable-websocket-compression --skip-requirements-check
[5868 ms] Segmentation fault
[5868 ms] Exit code 139
```

## Attempted Resolutions
- Rebuilt the container using the Dev Containers extension.
- Restarted the extension host.
- Issue persists in all cases.

## Additional Information
- The segmentation fault occurs immediately after initializing the container environment. The `docker` logs show the container starting normally, but it crashes before loading the VS Code server completely.

Let me know if any additional details are required for further investigation.


VS Code version: Code - Insiders 1.95.0-insider (Universal) (8d8f0cd9d4b25e89621ce897e82f2111eca6a278, 2024-10-15T05:04:26.261Z)
OS version: Darwin x64 24.0.0
Modes:
Connection to '開発コンテナー: Netstream Lab Dev Container @ desktop-linux' could not be established 

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i5-1030NG7 CPU @ 1.10GHz (8 x 1100)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_graphite: disabled_off<br>video_decode: enabled<br>video_encode: enabled<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled<br>webnn: disabled_off|
|Load (avg)|2, 3, 5|
|Memory (System)|16.00GB (0.18GB free)|
|Process Argv|. --crash-reporter-id 0a1b33d4-aad7-487f-ac64-c514829f6cd5|
|Screen Reader|no|
|VM|0%|

Connection to '開発コンテナー: Netstream Lab Dev Container @ desktop-linux' could not be established 
</details>Extensions: none<details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
vsaa593:30376534
py29gd2263:31024238
vscaac:30438845
c4g48928:30535728
962ge761:30841072
pythongtdpath:30726887
pythonnoceb:30776497
asynctok:30898717
dsvsc014:30777825
dsvsc015:30821418
pythonmypyd1:30859725
h48ei257:31000450
pythontbext0:30879054
cppperfnew:30980852
pythonait:30973460
724cj586:31013169
a69g1124:31018687
dvdeprecation:31040973
dwnewjupytercf:31046870
nb_pkg_only:31057982
nativerepl1:31134653
refactort:31084545
pythonrstrctxt:31093868
wkspc-onlycs-t:31132770
nativeloc1:31118317
wkspc-ranged-t:31151552
cf971741:31144450
parsetypescript:31116713
e80f6927:31120813
autoexpandse:31146404
i21gd607:31141543
iacca1:31150324
notype1:31143044
f8igb616:31140137
dwcopilot:31158714
g7688163:31155431
iconenabled:31158249

```

</details>

<!-- generated by issue reporter -->