Skip to content

build: Inherit libunwind config from Chromium - #12966

Merged
andrewsavage1 merged 4 commits into
youtube:mainfrom
hferreiro:unwind-config
Sep 30, 2026
Merged

andrewsavage1 merged 4 commits into
youtube:mainfrom
hferreiro:unwind-config

Conversation

@hferreiro

Copy link
Copy Markdown
Collaborator

Rework unwind_config and unwind_starboard_config to rely on Chromium's libunwind config, and just add additional config on top. This adds a missing _LIBUNWIND_IS_NATIVE_ONLY define that fixes arm64 unwinding.

Without that, unwinding a frame whose return address is signed fails, which is every frame on arm64 with pointer authentication.

Bug: 495203133

Rework unwind_config and unwind_starboard_config to rely on Chromium's
libunwind config, and just add additional config on top. This adds a missing
`_LIBUNWIND_IS_NATIVE_ONLY` define that fixes arm64 unwinding.

Without that, unwinding a frame whose return address is signed fails, which
is every frame on arm64 with pointer authentication.

Bug: 495203133

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes several stack and symbolization tests from the evergreen-arm64-aosp filter, adds a fallback wrapper for the process_vm_readv syscall in musl, and refactors the GN build configuration for libunwind to deduplicate common compiler flags. Feedback on the libunwind build changes highlights that using the -= operator to remove configurations can cause build failures if those configurations are not present in all build types; it is recommended to use filter_exclude instead to safely remove them.

@github-actions

Copy link
Copy Markdown
Contributor

🤖 Gemini Suggested Commit Message


build: Inherit libunwind config from Chromium

Rework the libunwind and libunwind_starboard build configurations
to inherit from Chromium's libunwind config. This ensures Cobalt
picks up critical defines like _LIBUNWIND_IS_NATIVE_ONLY.

On arm64 architectures using pointer authentication, return
addresses are signed. libunwind requires specific configuration to
correctly handle these frames. This fix enables proper unwinding
and symbolization on these platforms, allowing the removal of
related test filters for arm64 Evergreen targets.

Bug: 495203133

💡 Pro Tips for a Better Commit Message:

  1. Influence the Result: Want to change the output? You can write custom prompts or instructions directly in the Pull Request description. The model uses that text to generate the message.
  2. Re-run the Generator: Post a comment with: /generate-commit-message
@github-actions

github-actions Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor
Context State Description
CI / All Pass ⏳ PENDING Checks are running
CI / android ⏳ PENDING Checks are running
CI / evergreen ⏳ PENDING Checks are running
CI / linux ✅ PASS Passed
CI / tvos ✅ PASS Passed
@andrewsavage1
andrewsavage1 enabled auto-merge (squash) September 30, 2026 16:42
@andrewsavage1
andrewsavage1 merged commit f3468bb into youtube:main Sep 30, 2026
515 of 519 checks passed
@github-actions github-actions Bot added the cp-27.lts Cherry Pick to the 27.lts branch label Sep 30, 2026
@hferreiro
hferreiro deleted the unwind-config branch October 1, 2026 06:43
@oxve oxve removed the cp-27.lts Cherry Pick to the 27.lts branch label Oct 5, 2026
briantting pushed a commit that referenced this pull request Oct 6, 2026
Refer to original PR: #12966

Rework unwind_config and unwind_starboard_config to rely on Chromium's
libunwind config, and just add additional config on top. This adds a
missing `_LIBUNWIND_IS_NATIVE_ONLY` define that fixes arm64 unwinding.

Without that, unwinding a frame whose return address is signed fails,
which is every frame on arm64 with pointer authentication.

Bug: 495203133

(cherry picked from commit f3468bb)
briantting pushed a commit that referenced this pull request Oct 16, 2026
Refer to original PR: #12966

Rework unwind_config and unwind_starboard_config to rely on Chromium's
libunwind config, and just add additional config on top. This adds a
missing `_LIBUNWIND_IS_NATIVE_ONLY` define that fixes arm64 unwinding.

Without that, unwinding a frame whose return address is signed fails,
which is every frame on arm64 with pointer authentication.

Bug: 495203133

(cherry picked from commit f3468bb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

5 participants