Commit 54da527
authored
ruby: disable backtrace (#15022)
This PR removes backtrace from the ruby build. The reason we want to
remove that is to disable [this code
block](https://github.com/ruby/ruby/blob/56bdb93b024495bfd544c75a00eaf5d68b15be6c/vm.c#L4108-L4124).
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](https://github.com/ruby/ruby/blob/56bdb93b024495bfd544c75a00eaf5d68b15be6c/vm.c#L4109).
Signed-off-by: Adam Korczynski <adam@adalogics.com>1 parent 97db22c commit 54da527
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
| 104 | + | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| |||
0 commit comments