Skip to content

ci: Resolve CEF source lines with addr2line instead of GDB (#2363) - #2551

Merged
zackees merged 2 commits into
masterfrom
fix/2363-cef-line-addr2line
Oct 27, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/2363-cef-line-addr2line

Conversation

@zackees

@zackees zackees commented Oct 27, 2026

Copy link
Copy Markdown
Member

Refs #2363

The Flatpak Saved Profile job runs gdb -batch ... 'info line cef_version_info' against the installed Debug extension. Since #2474 that extension carries the CEF 8078-r2 libcef.so.debug, whose .debug_line is about 270 MB, and GDB 17.1 aborts while loading it (release run 40364814002, 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

So the job fails at the harness, not at the app, and the release gate cannot pass.

RED bbe666f4f adds two cases to ci/test_flatpak_runtime.py. On that commit test_cef_line_resolution_uses_binutils_not_gdb fails because the script still contains 'gdb', and test_cef_source_line_requires_a_dwarf_line_for_cef_cpp errors because the helpers do not exist:

AssertionError: <re.Match object; span=(15586, 15591), match="'gdb'"> is not false : the CEF line check must not invoke gdb (#2363)
AttributeError: module 'flatpak_runtime' has no attribute 'check_cef_source_line'

GREEN 64857a356 resolves the same line with binutils, which the job already installs: readelf --syms --wide on the debug file gives cef_version_info's address (falling back to the stripped binary's --dyn-syms), and addr2line -f -i -e <debug file> must print a libcef_dll2.cc:<line> location. The build-ID equality check is unchanged, and the check still fails closed on ??:0.

Exercised against a real ELF, not only mocks (a synthetic shared object with a cef_version_info symbol and DWARF):

addresses: ['0x400c', '0x400c']
addr2line: ??
/tmp/cef-line-check/obj/libcef_dll2/libcef_dll2.cc:2
?? ...
rejected as expected: installed CEF Debug extension has no line table for cef_version_info

uv run -m unittest discover -s ci -p test_flatpak_runtime.py: 19 tests, OK. ./lint: the only failure is test_macos_browser_helpers.test_helpers_follow_the_app_identity, which fails the same way on clean origin/master (unrelated helper-name list).

The real check runs only on dispatch, schedule and the release gate, so the PR CI run does not execute it. Verification is a ci.yml dispatch with flatpak-measurement-only + flatpak-runtime-test after this merges; I will report that run on #2363.

RED: the Flatpak Saved Profile check calls gdb 'info line cef_version_info'
and GDB 17.1 aborts with 'malloc(): corrupted top size' while loading the
270 MB .debug_line of the 8078-r2 debug file. These cases require a binutils
resolution instead: readelf --syms for the address, addr2line for the line.
GDB 17.1 aborts ('malloc(): corrupted top size') while loading the 270 MB
.debug_line of the CEF 8078-r2 debug file, so the Flatpak Saved Profile job
never reaches its own check. Read cef_version_info's address from the debug
file's symbol table (falling back to the stripped binary's dynamic symbols)
and resolve its source line with addr2line, which the same check already
requires binutils for.
@zackees
zackees marked this pull request as ready for review October 27, 2026 04:13
@zackees
zackees added this pull request to the merge queue Oct 27, 2026
@zackees

zackees commented Oct 27, 2026

Copy link
Copy Markdown
Member Author

Handed off to the coordinator.

  • Green: CI Gate ✅, Fast Gate ✅, Format ✅ on 64857a3 (all other lanes skipped by path scope).
  • Base is current master (bc3db16), no rebase needed; branch is fix/2363-cef-line-addr2line.
  • Local: uv run -m unittest discover -s ci -p test_flatpak_runtime.py 19/19 OK; the only ./lint failure is test_macos_browser_helpers.test_helpers_follow_the_app_identity, which fails identically on clean origin/master.
  • No local-gate stamp: the pre-existing master lint failure would block the lane; PR CI is green.
  • The real check runs only on a ci.yml dispatch (flatpak-measurement-only + flatpak-runtime-test), which I will run and report on ci: Flatpak Saved Profile fails on master: GDB can't resolve CEF source lines from the Debug extension #2363 after the merge.

Merged via the queue into master with commit 1bfe5e3 Oct 27, 2026
31 checks passed
@zackees
zackees deleted the fix/2363-cef-line-addr2line branch October 27, 2026 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant