Skip to content

ci: Flatpak Saved Profile fails on master: GDB can't resolve CEF source lines from the Debug extension #2363

Description

@zackees

The Flatpak Saved Profile job fails on master in ci/flatpak_runtime.py:299:

RuntimeError: GDB could not resolve CEF source lines from the installed Debug extension

Evidence:

What the check does: the CEF binary and the libcef.so.debug in the Debug extension exist and their build IDs match (that check comes first and passes). Then gdb -batch ... 'info line cef_version_info' has to print Line N of .*libcef_dll2.cc, and it doesn't.

Likely causes, to investigate:

The job's flatpak-runtime-evidence artifact has the logs.

This job only runs on dispatch, schedule and the release gate, so PRs don't see it. It will fail the release gate.

Activity

  1. added
    bug
    on Oct 25, 2026
  2. zackees commented on Oct 25, 2026

    @zackees
    MemberAuthor

    Claiming: #2363.

  3. zackees commented on Oct 25, 2026

    @zackees
    MemberAuthor

    Claiming: investigating from run 40176339062's flatpak-runtime-evidence.

  4. added
    ready
    on Oct 25, 2026
  5. zackees commented on Oct 25, 2026

    @zackees
    MemberAuthor

    Root cause

    From the evidence artifact of master run 40176339062 (command-11.log):

    add symbol table from file ".../com.obsproject.Studio.Debug/.../libcef.so.debug"
    No line number information available for address 0x390ffd0 <cef_version_info>
    

    GDB resolves the symbol but finds no line table. The build IDs match (5efc141e...), so it's the right debug file.

    Since #1948, Linux uses our own CEF 8078 (obs-rust/cef release 8078). It is built by obs-rust/obs-studio-libs recipes/cef/linux/build.sh:21:

    GN_DEFINES="is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome use_sysroot=true symbol_level=0 chrome_pgo_phase=0"
    

    symbol_level=0 produces no DWARF, only the symbol table. The check in ci/flatpak_runtime.py:298 (from #1771) expects Line N of ...libcef_dll2.cc, which upstream's 7871 binaries, built with line tables, gave. So the job has failed since #1948 merged, and only dispatch, schedule and the release gate run it.

    Options (needs a decision)

    1. Rebuild CEF 8078 with symbol_level=1. That adds line tables only, so crash stacks have file:line, and the check passes unchanged. Cost: one long CEF rebuild in obs-studio-libs, a new obs-rust/cef asset with a new sha256 in the manifest, and a bigger libcef.so.debug in the Debug extension (it is zstd-compressed by eu-elfcompress, and symbol_level=1 is roughly hundreds of MB raw).
    2. Relax the check to what symbol_level=0 gives. Require GDB to resolve cef_version_info to an address from the Debug extension, plus the build ID match. Cheap, but crash reports from browser sources lose file:line inside CEF.

    I'd do 1, because the Debug extension exists to give line numbers. Until then, 2 keeps the release gate green, and it should be marked as temporary with a link to the rebuild. I'm leaving the choice open because 1 is a cross-repo rebuild.

  6. zackees commented on Oct 25, 2026

    @zackees
    MemberAuthor

    Root cause

    The CEF 8078 build has no debug info at all, so there's no line table to resolve.

    • Evidence log command-11.log (run 40176339062): gdb loads libcef.so.debug and finds the symbol, but prints No line number information available for address 0x390ffd0 <cef_version_info>. The name comes from the exported dynamic symbol table, not from DWARF.
    • build: Linux x86_64 uses CEF 8078 (Chromium 156) with proprietary codecs (#1864) #1948 moved Linux x86_64 to the obs-rust CEF 8078 binary (obs-rust/cef release 8078). Its recipe, obs-rust/obs-studio-libs recipes/cef/linux/build.sh:21, builds with GN_DEFINES="is_official_build=true ... symbol_level=0 ...".
    • symbol_level=0 means no DWARF. The libcef.so.debug that flatpak-builder splits off holds only the symbol table. The check passed before build: Linux x86_64 uses CEF 8078 (Chromium 156) with proprietary codecs (#1864) #1948, so the 7871 mirror CEF presumably carried line tables. I haven't checked that binary.

    So none of the runner's GDB, the DWARF version or the file name is the cause, and the Flatpak job will fail like this on every release gate.

    Fix options

    1. Rebuild CEF 8078 with symbol_level=1 (line tables only, no type info) in obs-studio-libs, publish it, and bump the manifest's URL and sha256. This keeps the check meaningful: crash backtraces in browser sources get source lines. It costs one CEF rebuild in obs-studio-libs CI and a larger debug extension, roughly hundreds of MB. Because the line tables live only in the Debug extension, the app itself doesn't grow.
    2. Relax ci/flatpak_runtime.py:299 so a symbol hit counts when CEF has no DWARF. Cheap, but it gives up what the check exists to prove.

    I recommend 1. It is the obs-studio-libs owner's call, since that repo builds and publishes CEF and the rebuild is long. I'll do 2 as a stop-gap only if you want the release gate green before the rebuild lands.

  7. zackees commented on Oct 25, 2026

    @zackees
    MemberAuthor

    I opened the fix in obs-studio-libs: the CEF 8078 recipe now builds with symbol_level=1 (PR linked above). After it merges, CEF needs a rebuild and release, and then the obs-studio pin needs bumping.

  8. zackees commented on Oct 26, 2026

    @zackees
    MemberAuthor

    The rebuilt CEF is published: obs-rust/cef release 8078-r2, with cef_binary_8078_linux_x86_64.tar.xz at 272,413,736 bytes. sha256 is dc463c360d4b8e4eb482fa78a5b92b996b053a4a8650dba3052c89390430ac9c (GitHub's asset digest matches). It's built with symbol_level=1, and readelf -S on Release/libcef.so shows .debug_line and .debug_info, the line table the GDB check needs. Release 8078 stays up, so master keeps working until the bump.

    The pin bump for a worker touches these files:

    • CMakePresets.json:62: ubuntu-x86_64 hash, and the download URL to releases/download/8078-r2/ wherever the preset builds it;
    • build-aux/io.github.obs_rust.OBSStudioRust.json:125-126: url and sha256;
    • ci/data/cef-linux-x86_64-files.txt:3: sha256 comment. Regenerate the file list from the new archive; the debug sections add no files, but check.

    Acceptance: the Flatpak Saved Profile job (ci/flatpak_runtime.py:299) resolves info line cef_version_info. Marking ready.

  9. zackees commented on Oct 26, 2026

    @zackees
    MemberAuthor

    Claiming: #2363 pin bump. Move the CEF URL/sha256 to 8078-r2 in CMakePresets.json, the Flatpak manifest and the file list; verify with a Flatpak-only ci.yml dispatch (Saved Profile GDB check).

  10. zackees commented on Oct 26, 2026

    @zackees
    MemberAuthor

    Claiming: #2363, the 8078-r2 pin bump (CMakePresets.json, the Flatpak manifest, ci/data/cef-linux-x86_64-files.txt regenerated from the new archive).

  11. zackees commented on Oct 26, 2026

    @zackees
    MemberAuthor

    Withdrawing my claim above: #2474 from the other claim covers the same change (with more tests). I didn't push.

  12. 2 remaining items

  13. moved this from In progress to Done in obs-rust Multiviewon Oct 26, 2026
  14. zackees commented on Oct 26, 2026

    @zackees
    MemberAuthor

    This now blocks releases: release-rust.yaml run 40364814002 on master fails its release gate at Flatpak Saved Profile, the same harness. The log isn't out until the run finishes; last time the step failed it was ci/flatpak_runtime.py:364 'saved profile must produce exactly one OBS log'. No signed macOS release (#2383) can publish until this passes, so I'm raising it to P1.

  15. zackees commented on Oct 26, 2026

    @zackees
    MemberAuthor

    Progress, and a new cause. In release run 40364814002 the Flatpak Saved Profile step got past the log check and reached the GDB step (ci/flatpak_runtime.py:324), and GDB itself crashed (evidence command-13.log):

    add symbol table from file ".../libcef.so.debug"
    malloc(): corrupted top size
    Fatal signal: Aborted ... A fatal error internal to GDB has been detected
    

    GDB 17.1 (Ubuntu resolute) aborts while it loads the r2 debug file, whose .debug_line is about 270 MB. The line table is there now, which is what the rebuild was for, but the checking tool falls over on it. Suggested harness fix for a worker: resolve the line with addr2line, or llvm-dwarfdump --lookup, instead of GDB. Take cef_version_info's address from nm -D libcef.so, run addr2line -e libcef.so.debug <addr>, and require a file:line answer that isn't ??:0. That checks the same thing, a line table resolvable from the Debug extension, without GDB loading every CU. This is still the P1 blocking releases.

  16. zackees commented on Oct 26, 2026

    @zackees
    MemberAuthor

    Reopening: #2474 closed this automatically, but the release gate still fails. In release run 40364814002 (17:02, after #2474), the Flatpak Saved Profile job fails at ci/flatpak_runtime.py:324 because GDB 17.1 aborts while loading the r2 libcef.so.debug; see my earlier comment for the fix (use addr2line instead of GDB). It's still the P1 blocking releases.

  17. zackees commented on Oct 27, 2026

    @zackees
    MemberAuthor

    Merged: #2551 (1bfe5e346), the harness fix for the GDB abort.

    Instead of GDB, the check now reads cef_version_info's address with readelf --syms --wide on the Debug extension's libcef.so.debug (falling back to the stripped binary's --dyn-syms) and resolves its source line with addr2line -f -i, requiring a libcef_dll2.cc:<line> location and still failing closed on ??:0. The build-ID equality check is unchanged.

    Verification dispatched against the existing r2 export, so no Flatpak rebuild is needed: ci.yml on master with flatpak-runtime-reuse-run=40317038292 → run 40449886253, job Recheck Flatpak Saved Profile. That run's export already contains the r2 CEF (cef_build_id 9c3a219d…). I'll report the outcome here; the release gate is the real confirmation.

  18. zackees commented on Oct 27, 2026

    @zackees
    MemberAuthor

    Verified: the Flatpak Saved Profile job passes on master with the binutils check. Run 40449886253 (flatpak-runtime-reuse-run=40317038292, job 122009880500) is green: status: success with cef_build_id 9c3a219d52e2ca944f4ac44745a743f284c2a21b, i.e. the same r2 CEF/debug pair that aborted GDB 17.1.

    The check fails closed on ??:0 or a location outside libcef_dll2.cc, so passing means addr2line resolved cef_version_info to a real CEF source line from the installed Debug extension — the exact assertion GDB could not complete. The build-ID equality check ran first and passed as before, and the rest of the qualification (four saved sources, 12 s recording, clean exit, log count, module inventory) is unchanged and green.

    Closing: root cause was GDB, not the app or the CEF build. The release gate is the final confirmation on the next release run.

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

Metadata

Metadata

Assignees

Labels

P1bugready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions