Skip to content

ruby: disable backtrace#15022

Merged
DavidKorczynski merged 1 commit intogoogle:masterfrom
AdamKorcz:ruby-fix-coverage-build
Feb 25, 2026
Merged

ruby: disable backtrace#15022
DavidKorczynski merged 1 commit intogoogle:masterfrom
AdamKorcz:ruby-fix-coverage-build

Conversation

@AdamKorcz
Copy link
Copy Markdown
Collaborator

This PR removes backtrace from the ruby build. The reason we want to remove that is to disable this code block. From what I can tell, this code block breaks the coverage build; When clang compiles a codebase with coverage instrumentation (-fcoverage-mapping), it can produce a malformed record in the __llvm_covfun ELF section — a ULEB128 value has its continuation bit set but no following byte. Since llvm-cov parses the section sequentially and aborts on the first malformed record, this single bad record (193 bytes out of ~7.4 MB in Rubys case during local testing) causes the entire coverage report to show 0%. This is the case with the Ruby coverage report: The coverage report builds but it incorrectly shows 0% coverage. I don't know why that code block causes that, perhaps it is the inline include.

Signed-off-by: Adam Korczynski <adam@adalogics.com>
@AdamKorcz AdamKorcz marked this pull request as ready for review February 24, 2026 22:59
@DavidKorczynski DavidKorczynski merged commit 54da527 into google:master Feb 25, 2026
30 of 31 checks passed
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.

2 participants