Repository navigation
ci: bump github runner to ubuntu-24.04 to address fontconfig crash - #308495
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a diagnostic step to the Linux PR test workflow to help investigate a suspected fontconfig-related crash during app launch in CI.
Changes:
- Print installed font-related package versions and installed font packages.
- Validate
/etc/fonts/fonts.confand/etc/fonts/conf.d/*.confwithxmllint. - Attempt to clear and rebuild fontconfig caches and print the fontconfig version.
Collaborator
Author
|
libexpat is on v2.4.7, very likely related to libexpat/libexpat@e5d6bf0 which is only fixed from v2.6.3 Never mind, the version carries the patches https://launchpadlibrarian.net/846116146/expat_2.4.7-1ubuntu0.6_2.4.7-1ubuntu0.7.diff.gz |
Fixes an intermittent SIGSEGV on the [pango] FcInit thread during Electron startup in CI integration tests. Root cause: Chromium's InitializeGlobalFontConfigAsync() posts FcInit() to a thread pool worker (crbug.com/404311), while pango's pangoft2 backend independently calls FcInit() from its own thread during GTK initialization. fontconfig 2.13.1 (shipped in ubuntu-22.04) lacks thread-safe initialization — concurrent first-time FcInit() calls race and both enter FcConfigParse(), corrupting shared global state. This causes expat (called by fontconfig to parse fonts.conf) to dereference a NULL pointer. ubuntu-24.04 ships fontconfig 2.15.0 which includes the thread-safe initialization from 2.14+.
Robo (deepak1556)
marked this pull request as ready for review
April 8, 2026 14:04
Robo (deepak1556)
requested review from
TylerLeonhardt,
João Moreno (joaomoreno),
Ladislau Szomoru (lszomoru) and
Raymond Zhao (rzhao271)
as code owners
April 8, 2026 14:04
Robo (deepak1556)
marked this pull request as draft
April 8, 2026 14:07
Robo (deepak1556)
marked this pull request as ready for review
April 8, 2026 14:19
Robo (deepak1556)
enabled auto-merge (squash)
April 8, 2026 14:19
Ladislau Szomoru (lszomoru)
approved these changes
Apr 8, 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.
For https://github.com/microsoft/vscode/actions/runs/24122759225/job/70380360453?pr=293913
Root cause: Chromium's
InitializeGlobalFontConfigAsyncpostsFcInitto a thread pool worker (crbug.com/404311), while pango's pangoft2 backend independently callsFcInitfrom its own thread during GTKinitialization. Fontconfig 2.13.1 (shipped in ubuntu-22.04) lacks thread-safe initialization — concurrent first-time
FcInitcalls race and both enterFcConfigParse, corrupting shared global state. This causes expat (called by fontconfig to parse fonts.conf) to dereference a NULL pointer.ubuntu-24.04 ships fontconfig 2.15.0 which includes the thread-safe initialization from 2.14+.