Repository navigation
Description
π€ generated based on a failing smoke test in CI
Summary
A Linux Electron smoke test failed because the relaunched Electron browser (main) process crashed with SIGSEGV during startup, before the test driver could attach over the DevTools WebSocket. The minidump shows the top of the crashing stack is in libexpat + libfontconfig, i.e. fontconfig parsing its XML config via expat during font initialization.
This is almost certainly infrastructure flakiness, not a product bug β and it's unrelated to the PR it failed on (#322170 only touches Agents Window smoke tests). The CI already carries a workaround for expat 2.6.1 NULL-deref CVEs in fontconfig parsing, yet the crash still occurred.
Links
- Failing job: https://github.com/microsoft/vscode/actions/runs/27850813533/job/82429344900
- Workflow run: https://github.com/microsoft/vscode/actions/runs/27850813533
- Crash-dump artifact (minidump): https://github.com/microsoft/vscode/actions/runs/27850813533/artifacts/7759317546
- Logs artifact: https://github.com/microsoft/vscode/actions/runs/27850813533/artifacts/7759333287
- Minidump path inside artifact:
smoke-tests-electron/4_suite_test_verifies_that_hot_exit_works_for_dirty_files_with_delay/pending/430a921f-8492-43e3-b347-df0a0fa978e5.dmp
Failing test
VSCode Smoke Tests (Electron)
Data Loss (insiders -> insiders)
verifies that "hot exit" works for dirty files (with delay)
electron.launch: WebSocket error: socket hang up
(46 passing, 63 pending, 1 failing; step exited 255)
The first app instance shut down cleanly (main.log shows app.quit() at 22:19:05). The failure is on Application.restart() β the relaunched process at 22:19:06:
- <launched> pid=7464
- [pid=7464][err] Debugger attached.
- [pid=7464][out] Found --crash-reporter-directory argument...
- [pid=7464][err] DevTools listening on ws://127.0.0.1:45603/devtools/browser/...
- <ws connecting> ws://127.0.0.1:45603/devtools/browser/...
- <ws error> ... socket hang up
- [pid=7464] <process did exit: exitCode=null, signal=SIGSEGV>
Minidump analysis
Parsed from the minidump (timestamp Fri Jun 19 22:19:06 2026, matching the relaunch):
- Signal:
EXCEPTION_SIGSEGV(0xb),ExceptionAddress: 0x0 - Crashing process: browser/main process (
code-oss, withlibgtk-3,libffmpeg,libnss3, full browser module set loaded) - RIP:
0x7fe0a1048806βlibc.so.6+0x48806 - RSP:
0x7fdf7a3e9a90, RBP:0x7fdf7a3e9ac0
Top of the crashing-thread stack (module+offset; no symbols available in CI build):
#0 RIP libc.so.6+0x48806
#1 sp+0x0038 libexpat.so.1+0x20183
#2 sp+0x0040 code-oss+0xc7450b0
#3 sp+0x0068 libexpat.so.1+0xc056
#4 sp+0x0098 libexpat.so.1+0x11568
#5 sp+0x00c8 libfontconfig.so.1+0x2f83e
(Frames #1β#5 are contiguous near RSP and consistent; deeper frames are from a naive stack scan and less reliable.) The expat β fontconfig chain ending in a libc fault strongly indicates a crash while fontconfig parses font-config XML via expat during browser-process font init.
Environment (from job log)
- Runner: Ubuntu 24.04 (noble), x86_64, 4 CPUs
libexpat1: 2.6.1-2ubuntu0.4β has the known NULL-deref CVEs (fixed upstream in expat β₯ 2.7.5)fontconfig / libfontconfig1: 2.15.0-1.1ubuntu2FONTCONFIG_FILE=/tmp/fonts-minimal.conf(the CI workaround is active)
The workflow already has a step "Workaround expat NULL deref CVEs in fontconfig parsing" that writes a minimal fonts.conf with no <include> directives and clears the fontconfig cache, precisely because expat 2.6.1 NULL-derefs when fontconfig parses <include> via XML_ExternalEntityParserCreate. The crash happened despite this workaround.
Hypothesis
The relaunched Electron browser process SIGSEGVs inside fontconfig's expat-based XML config parsing at startup. Even with the minimal FONTCONFIG_FILE workaround, the buggy libexpat 2.6.1 is still being exercised (e.g. fontconfig rebuilding its cache after the CI cache-clear, or a parse path the minimal config doesn't avoid), hitting one of the expat NULL-deref bugs. Because it's a font-init crash in the browser process, it surfaces intermittently and only on app relaunch, presenting to Playwright as electron.launch: WebSocket error: socket hang up.
Suggested next steps
- Symbolicate the dump against this build's
code-oss+ bundled libs to confirm the exact expat/fontconfig frames. - Consider hardening the CI workaround: pin/upgrade
libexpat1to β₯ 2.7.5 on the runner, or ensure fontconfig never parses the system config (verify the minimal conf fully avoids<include>and pre-warm the cache so no rebuild happens mid-run). - Treat the
Data Loss / hot exit (with delay)failure as a flaky native crash on relaunch, not a regression in smoke: fix flaky Agents Window Copilot CLI session activationΒ #322170.
Want me to also extract the renderer/main logs of the crashing window into the issue, or symbolicate the dump if you can point me at the matching symbol server/build?
Activity
alexdima commentedon Jul 5, 2026
I believe this was fixed via #323015