Repository navigation
ci: Resolve CEF source lines with addr2line instead of GDB (#2363) - #2551
Merged
Merged
Conversation
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
marked this pull request as ready for review
October 27, 2026 04:13
Member
Author
|
Handed off to the coordinator.
|
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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-r2libcef.so.debug, whose.debug_lineis about 270 MB, and GDB 17.1 aborts while loading it (release run 40364814002, evidencecommand-13.log):So the job fails at the harness, not at the app, and the release gate cannot pass.
RED
bbe666f4fadds two cases toci/test_flatpak_runtime.py. On that committest_cef_line_resolution_uses_binutils_not_gdbfails because the script still contains'gdb', andtest_cef_source_line_requires_a_dwarf_line_for_cef_cpperrors because the helpers do not exist:GREEN
64857a356resolves the same line with binutils, which the job already installs:readelf --syms --wideon the debug file givescef_version_info's address (falling back to the stripped binary's--dyn-syms), andaddr2line -f -i -e <debug file>must print alibcef_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_infosymbol and DWARF):uv run -m unittest discover -s ci -p test_flatpak_runtime.py: 19 tests, OK../lint: the only failure istest_macos_browser_helpers.test_helpers_follow_the_app_identity, which fails the same way on cleanorigin/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.ymldispatch withflatpak-measurement-only+flatpak-runtime-testafter this merges; I will report that run on #2363.