Repository navigation
ci: fix intermittent fontconfig SIGSEGV on Linux CI - #309451
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a Linux CI workaround to prevent intermittent crashes in libexpat/fontconfig parsing on ubuntu-24.04 runners by forcing fontconfig to use a minimal config that avoids <include> directives, and updates the existing diagnostics step to validate the active config file.
Changes:
- Add a workflow step that detects the installed
libexpat1version and writes a minimal fontconfig XML config to/tmp, exporting it viaFONTCONFIG_FILE. - Update the fontconfig diagnostics step to report/validate the active config (respecting
FONTCONFIG_FILEwhen set).
The Electron main process intermittently crashes during startup on the `[pango] FcInit` thread with a NULL pointer dereference in expat's XML string processing, triggered by fontconfig parsing `<include>` directives in fonts.conf via `XML_ExternalEntityParserCreate`. Set FONTCONFIG_FILE to a minimal config based on upstream fontconfig 2.15.0 fonts.conf.in with `<include>` directives removed and generic family aliases inlined. This avoids the external entity parser codepath entirely. A version check will fail the build once the runner ships expat >= 2.7.5, prompting removal of the workaround.
Robo (deepak1556)
force-pushed
the
robo/workaround_libexpat_crash
branch
from
April 13, 2026 11:35
a0555f0 to
8727e07
Compare
Robo (deepak1556)
marked this pull request as ready for review
April 13, 2026 11:57
Robo (deepak1556)
requested review from
TylerLeonhardt,
João Moreno (joaomoreno),
Ladislau Szomoru (lszomoru) and
Raymond Zhao (rzhao271)
as code owners
April 13, 2026 11:57
Robo (deepak1556)
enabled auto-merge (squash)
April 13, 2026 11:58
Ulugbek Abdullaev (ulugbekna)
approved these changes
Apr 13, 2026
TylerLeonhardt
approved these changes
Apr 13, 2026
Michael Lively (Yoyokrazy)
added a commit
that referenced
this pull request
Apr 22, 2026
Linux electron tests were stabilized by moving to ubuntu-24.04 in #308495 and #309451. Keep that runner GH-hosted while the rest of the PR workflows use 1ES self-hosted pools. Co-authored-by: Copilot <[email protected]>
Michael Lively (Yoyokrazy)
added a commit
that referenced
this pull request
Apr 22, 2026
…311975) * ci: switch PR workflows back to 1ES self-hosted runners with JobId Reverts the GitHub-hosted runner switch for ubuntu/windows jobs in pr*.yml and adds a unique JobId label per job, per the IcM mitigation. The JobId ensures 1ES pool runs are scoped to a specific GitHub Actions run+attempt, which prevents the cancellation issues that occurred with bare pool labels. Pool labels: - 1es-vscode-oss-ubuntu-22.04-x64 - 1es-vscode-oss-windows-2022-x64 macOS jobs (pr-darwin-test.yml, pr-node-modules macOS) remain on GitHub-hosted runners as no 1ES macOS pool exists. Co-authored-by: Copilot <[email protected]> * ci: keep pr-linux-test.yml on ubuntu-24.04 GH-hosted runner Linux electron tests were stabilized by moving to ubuntu-24.04 in #308495 and #309451. Keep that runner GH-hosted while the rest of the PR workflows use 1ES self-hosted pools. Co-authored-by: Copilot <[email protected]> * ci: include inputs.job_name in JobId for reusable test workflows pr-win32-test.yml is invoked 3x from pr.yml (Electron/Browser/Remote) and without a per-invocation discriminator all 3 jobs share the same JobId within a run, defeating the 1ES per-job scoping. Add inputs.job_name to the JobId prefix so each invocation is distinct. Apply the same defense to pr-linux-cli-test.yml for safety. Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Followup to #308495
Still crashes in libexpat with updated runner https://github.com/microsoft/vscode/actions/runs/24335373723/job/71050924332
Minimal config is based on https://gitlab.freedesktop.org/fontconfig/fontconfig/-/blob/main/fonts.conf.in