Repository navigation
Revert "ci: drop external DTD from minimal fontconfig to avoid expat NULL-deref crash (#322909)" - #322994
Closed
Alexandru Dima (alexdima) wants to merge 2 commits into
Closed
Revert "ci: drop external DTD from minimal fontconfig to avoid expat NULL-deref crash (#322909)"#322994Alexandru Dima (alexdima) wants to merge 2 commits into
Alexandru Dima (alexdima) wants to merge 2 commits into
Conversation
…NULL-deref crash (#322909)" This reverts commit 70c0a5d. The change made the Linux Electron-Smoke crash *worse*, not better. Measured against the PR workflow, the Linux / Electron-Smoke job failure rate rose from ~8% (1/13) before the merge to ~19% (8/43) after it — roughly double. The original hypothesis (that fontconfig feeds the external DTD to expat as an external parameter entity and triggers the not-yet-backported NULL-deref CVEs) was not supported by the evidence. A proper frame-pointer backtrace of an after-merge crash dump shows the same intermittent libpangoft2 -> libfontconfig -> libexpat -> libc NULL-deref as before, just more frequently. The minimal config without the DOCTYPE actually parses *less* XML than the system config yet crashes more often, which points at a flaky race/heap issue in the expat 2.6.1 + fontconfig stack that this change perturbed rather than a deterministic content problem. Revert to restore the previous, lower crash rate. The durable fix remains shipping libexpat >= 2.7.5 on the runner (the workaround step already auto-disables itself when that version is detected); that is being tracked separately. Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
Reverts the change from #322909 in the Linux smoke-test workflow by restoring the external DTD (<!DOCTYPE ...>) line in the generated minimal fontconfig config, returning the job to the previously observed (lower) crash rate behavior.
Changes:
- Re-add the
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">line to/tmp/fonts-minimal.confgeneration. - Restore/simplify the workaround commentary around the minimal fontconfig config.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/pr-linux-test.yml | Restores the DOCTYPE line in the minimal fontconfig config used as the expat/fontconfig workaround for Linux smoke tests. |
Copilot's findings
- Files reviewed: 1/1 changed files
- Comments generated: 1
TylerLeonhardt
previously approved these changes
Jun 25, 2026
Ladislau Szomoru (lszomoru)
previously approved these changes
Jun 25, 2026
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Raymond Zhao (rzhao271)
dismissed stale reviews from Ladislau Szomoru (lszomoru) and TylerLeonhardt
via
June 25, 2026 18:09
13c3c5b
Alexandru Dima (alexdima)
enabled auto-merge (squash)
June 25, 2026 18:13
Alexandru Dima (alexdima)
marked this pull request as draft
June 25, 2026 18:23
auto-merge was automatically disabled
June 25, 2026 18:23
Pull request was converted to draft
Member
Author
|
Update: I am trying to see if #323001 would be a better fix |
Member
Author
|
closed in favor of a classical revert #323009 |
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.
Reverts the fontconfig change from #322909.
Why revert
The change was intended to reduce the intermittent fontconfig/expat SIGSEGV that crashes Electron at smoke-test launch. It did the opposite.
Measured on the
pr.ymlworkflow (theLinux / Electron-Smokejob specifically), around the merge of #322909 (2026-06-25 13:06 UTC):The failure rate roughly doubled.
What the dump actually shows
I pulled a crash dump from an after-merge failure (run 28188049700,
Language Featuressuite) and walked the frame-pointer (RBP) chain — more reliable than the heuristic stack scan used to justify #322909:It's the same
pango → fontconfig → expat → libcNULL-deref as before, just more frequent. The original "external parameter entity via DOCTYPE" theory doesn't hold: the minimal config without the DOCTYPE parses less XML than the system config, yet crashes more. That points at a flaky race / heap issue in the expat 2.6.1 + fontconfig stack that removing the DOCTYPE perturbed, not a deterministic content bug.Net
Restore the previous (lower) crash rate now. The durable fix is still getting
libexpat >= 2.7.5onto the runner — the workaround step already auto-disables itself when it detects that version. That will be pursued separately.Companion harness PR #322905 (fail fast on launch crash) stays in; it doesn't affect crash frequency, only how quickly/clearly a crash is surfaced.
Co-authored-by: Copilot [email protected]