You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For both tests, at -O1 and above one line number in the stacktrace is missing:
#0 0x00100f1c in main compiler-rt/test/asan/TestCases/global-overflow.cpp
It turns out this happens because .debug_line, which llvm-symbolizer uses to map the address to source file and line, is wrong, as seen with llvm-dwarfdump --debug-line:
0x0000000000100f1c 0 0 0 0 0 0
while at -O0 things are fine:
#0 0x00100ed8 in main compiler-rt/test/asan/TestCases/global-overflow.cpp:14:13
0x0000000000100ed8 14 13 0 0 0 0 is_stmt
g++ gets this right OTOH: the test works irrespective of optimization.
The text was updated successfully, but these errors were encountered:
When enabling ASan testing on SPARC as per PR llvm#107405, two tests `FAIL` in
similar ways as detailed in Issue llvm#108194: at `-O1` and above, one line of
the stacktrace lacks the line number info, causing the tests to `FAIL`. I
could trace this to `clang` generating incomplete line number info; `g++`
gets this right.
To avoid this, this patch `XFAIL`s the affected tests on SPARC.
Tested on `sparcv9-sun-solaris2.11`.
When enabling ASan testing on SPARC as per PR #107405, two tests `FAIL`
in similar ways as detailed in Issue #108194: at `-O1` and above, one
line of the stacktrace lacks the line number info, causing the tests to
`FAIL`. I could trace this to `clang` generating incomplete line number
info; `g++` gets this right.
To avoid this, this patch `XFAIL`s the affected tests on SPARC.
Tested on `sparcv9-sun-solaris2.11`.
When enabling ASan on SPARC with PR #107405, two tests
FAIL
in similar ways:For both tests, at
-O1
and above one line number in the stacktrace is missing:It turns out this happens because
.debug_line
, whichllvm-symbolizer
uses to map the address to source file and line, is wrong, as seen withllvm-dwarfdump --debug-line
:while at
-O0
things are fine:g++
gets this right OTOH: the test works irrespective of optimization.The text was updated successfully, but these errors were encountered: