Skip to content

Symbolize libSegFault backtraces in test runs - #18628

Merged
kevinushey merged 1 commit into
mainfrom
codex/symbolize-libsegfault-backtraces
Aug 24, 2026
Merged

kevinushey merged 1 commit into
mainfrom
codex/symbolize-libsegfault-backtraces

Conversation

@kevinushey

Copy link
Copy Markdown
Collaborator

Summary

  • capture libSegFault diagnostics to a temporary file
  • extract executable-relative frame offsets and resolve them with addr2line
  • use the exact adjacent split-debug file produced by package builds
  • replay the original crash report and retain the existing GDB/core-dump fallback

This makes package-build crash logs useful even when Apport or another core collector consumes the core dump. It also resolves local and static functions without exporting additional symbols from the executable.

Validation

  • exercised the watchdog in Ubuntu 20.04 with a deliberately crashed, stripped PIE executable and adjacent .debug file; crash_here(+0x...) resolved to its function and exact source line
  • build/src/cpp/rstudio-tests --scope rsession (432 tests passed)
  • Bash syntax and git diff --check

@github-actions

Copy link
Copy Markdown

RStudio E2E - all platforms

1 test(s) failed

###################- 99% pass rate

Passed Failed Skipped Flaky
2408 1 152 0
Platform ✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
✅ auth-teardown 2 0 10 0
✅ desktop-linux 598 0 31 0
✅ desktop-macos 604 0 26 0
✅ desktop-windows 604 0 31 0
❌ server-linux 574 1 44 0
✅ setup 26 0 10 0
View / download the full report

View report online -- opens in the browser, no download needed. Available for 14 days.

Download playwright-report.zip -- extract and open index.html

Includes screenshots, traces, and step-by-step details for every test. Expires in 15 days.


All platforms - commit 1ac265e0b515dccd2fb47690d7b8cee7fb24dfa2 - Run #683

@kevinushey
kevinushey merged commit 0014113 into main Aug 24, 2026
28 of 29 checks passed
@kevinushey
kevinushey deleted the codex/symbolize-libsegfault-backtraces branch August 24, 2026 19:48

This branch was previously deployed

1 inactive deployment
e2e-playwright — 1ac265e0 Deployed Aug 24, 2026 by kevinushey via windows / e2e-desktop-windows (5) #683
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant