Skip to content

[Bug]: Electron 44.0.0 Linux SIGTRAP: PartitionAlloc freelist corruption detected during Fontconfig startup #53200

Closed

Description

@SchmelleDevCrea

Preflight Checklist

Electron Version

44.0.0

What operating system(s) are you using?

Ubuntu

Operating System Version

Ubuntu 24.04.4 LTS (Noble), Linux 7.0.0-30-generic, X11 via Xvfb

What arch are you using?

x64

Last Known Working Electron version

No reliable last-known-working Electron version. The failure is intermittent and has not been compared against a controlled older-Electron matrix.

Does the issue also appear in Chromium / Google Chrome?

I don't know how to test

Expected Behavior

Under the stated packaged-AppImage startup conditions, Electron should initialize Fontconfig, start the main process, and create the first BrowserWindow without terminating.

Actual Behavior

The Electron browser/main process intermittently exits with SIGTRAP during application startup.

The failure has been observed in independent command-line startup cases that use valid debug-level options and valid diagnostic-log-directory options. The fully symbolicated instance occurred while a valid debug-level startup case was initializing; other instances occurred after internal service readiness while creating the first BrowserWindow.

This is a native SIGTRAP from Electron/Chromium PartitionAlloc, not a harness timeout, SIGTERM cleanup, OOM event, disk-full event, or GPU-process failure.

Testcase Gist URL

No public testcase is currently available because the packaged application is closed source. The failure is reproduced by repeatedly launching one retained Linux AppImage through the sequential startup matrix described in Additional Information. A matching Crashpad minidump, full symbolicated output, and a retained-binary reproduction environment are available privately on maintainer request.

Additional Information

Summary

This is an intermittent native SIGTRAP from Electron 44.0.0 on Ubuntu 24.04.4.

Electron's matching public Linux x64 symbols resolve the crash to partition_alloc::internal::FreelistCorruptionDetected. Detection occurs when Fontconfig calls strdup() while parsing font XML configuration.

This identifies where Electron detected invalid allocator freelist metadata. It does not prove that Fontconfig, Pango, or Expat made the earlier invalid write or free.

Environment

  • Electron: 44.0.0
  • Electron public-symbol debug ID: E798769358C1C954E22B4446B9C113EB0
  • OS: Ubuntu 24.04.4 LTS (Noble)
  • Kernel: 7.0.0-30-generic
  • Architecture: x64
  • Display: X11 via Xvfb
  • Virtualization: VirtualBox
  • VM memory: 5 GiB
  • Virtual GPU acceleration: disabled

Relevant Ubuntu packages:

  • fontconfig: 2.15.0-1.1ubuntu2
  • libfontconfig1: 2.15.0-1.1ubuntu2
  • libpango-1.0-0: 1.52.1+ds-1build1
  • libpangoft2-1.0-0: 1.52.1+ds-1build1
  • libexpat1: 2.6.1-2ubuntu0.4

Controlled Reproduction Process

The product is a closed-source Linux AppImage. I do not yet have a standalone public reproducer.

The failure is captured using one retained AppImage, so no rebuild occurs between attempts:

  1. Extract the AppImage once with --appimage-extract.
  2. Run the extracted AppRun repeatedly.
  3. Use one Xvfb display and one D-Bus session for a run.
  4. Use a minimal Fontconfig configuration containing only system font directories, then run fc-cache -f.
  5. Start only one application process at a time.
  6. Give each launch a fresh temporary data directory, XDG cache/config/runtime directories, diagnostic directory, loopback ports, and process group.
  7. Wait up to 120 seconds for the startup-ready record. On successful readiness, request orderly shutdown. Stop the stress run at the first SIGTRAP.

The fully symbolicated crash occurred during this valid startup invocation:

AppRun --no-sandbox --disable-gpu --disable-dev-shm-usage --disable-software-rasterizer -- --backend-debug info --frontend-debug off --profile-log <temporary-profile-path>

This invocation starts the application normally, applies valid command-line debug settings, and waits for the startup-ready record. It does not load user projects, measurement data, remote content, or application workflows.

The packaged Linux AppImage uses --no-sandbox. The following flags are CI-specific and have not yet been individually removed from the reproduction:

  • --disable-gpu
  • --disable-dev-shm-usage
  • --disable-software-rasterizer

Observed Frequency

The retained Electron 44 AppImage completed 99 complete sequential startup stress runs successfully. Attempt 100 then failed during another valid startup case using a diagnostic log-directory argument.

The following reduced observed frequency but did not eliminate the crash:

  • increasing VM memory;
  • reducing concurrent VM activity;
  • serializing application launches;
  • reusing one Xvfb/D-Bus session;
  • using a minimal Fontconfig configuration;
  • prewarming the Fontconfig cache.

An isolated Expat 2.8.3 build was also tested. ldd confirmed that Electron and Fontconfig loaded the replacement libexpat.so.1, but the same native SIGTRAP occurred. This rejects Expat replacement as a fix.

Fully Symbolicated Crashing Thread

partition_alloc::internal::FreelistCorruptionDetected
partition_alloc::PartitionRoot::Alloc
malloc
libc.so.6!__GI___strdup
libfontconfig.so.1!FcExprCreateString
libfontconfig.so.1!FcParseFamily
libfontconfig.so.1!FcEndElement
libexpat.so.1
libfontconfig.so.1!FcConfigParseAndLoadFromMemoryInternal

The Crashpad dump shows:

  • process uptime: approximately 8 seconds;
  • SIGTRAP, not SIGSEGV;
  • crash in the Electron browser/main process, not a renderer or GPU subprocess;
  • no OOM, disk-full, GPU, or test-harness-timeout event.

Questions

  1. Does this match a known Electron/Chromium Linux PartitionAlloc or allocator-shim issue involving system Fontconfig/Pango libraries?
  2. Is packaged AppImage --no-sandbox behavior relevant to this allocation path?
  3. Which supported Electron or Chromium diagnostics can identify the earlier allocation, free, or write that corrupted the freelist before malloc() detected it?
  4. Is there a later Electron or Chromium branch with a relevant Linux allocator fix that should be tested?

Potentially Related Report

This may be related at the environment and symptom level, but has not been proven to be the same root cause:

microsoft/vscode#322185

Evidence Availability

A matching Crashpad .dmp, complete symbolicated output, sanitized command line, and additional environment details are available through a private maintainer-requested channel.

I will not publish the raw minidump, system core, packaged binary, source code, or CI evidence directory publicly.

Analysis Note

This report was heavily AI-assisted. The underlying evidence was independently captured and verified through retained-AppImage startup loops, Crashpad minidumps, systemd core metadata, official Electron 44 symbols, exact package versions, and the resolved native stack.

Please treat the causal interpretation as a diagnostic lead. Corrections, requests for non-sensitive evidence, and guidance toward a supported minimal reproducer are welcome.

Activity

  1. moved this to 👀 Unsorted Items in 44-x-yon Aug 26, 2026
  2. moved this from 👀 Unsorted Items to 👍 Does Not Block Stable in 44-x-yon Aug 26, 2026
  3. dsanders11 commented on Aug 26, 2026

    @dsanders11
    Member

    Thanks for the issue report! Could you try reproducing this on the last beta of v44, which was v44.0.0-beta.6? This may be related to changes in #53070.

  4. SchmelleDevCrea commented on Sep 3, 2026

    @SchmelleDevCrea
    Author

    Thanks for suggesting v44.0.0-beta.6.

    For comparison, the retained Electron 44.0.0 AppImage previously completed 99 sequential startup stress runs successfully, then failed on attempt 100 during a valid startup case using a diagnostic log-directory argument. The failure was a native SIGTRAP during first-window creation.

    I built and tested v44.0.0-beta.6 on the same Ubuntu 24.04.4 x64 VirtualBox machine, using the same Xvfb/D-Bus environment and startup flags, but without Fontconfig prewarming.

    The beta.6 AppImage completed 200 full sequential startup stress runs without a failure or SIGTRAP.

    This suggests the problematic change may have been introduced between v44.0.0-beta.6 and the final v44.0.0 release.

    Thank you for fixing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions