[all-commits] [llvm/llvm-project] 0a3b6a: [ASan][test] Skip Linux/odr_c_test.c on SPARC (#10...

Rainer Orth via All-commits all-commits at lists.llvm.org
Thu Sep 19 01:04:40 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0a3b6af768c95f8d8260aa28adbccabd60f7e9e5
      https://github.com/llvm/llvm-project/commit/0a3b6af768c95f8d8260aa28adbccabd60f7e9e5
  Author: Rainer Orth <ro at gcc.gnu.org>
  Date:   2024-09-19 (Thu, 19 Sep 2024)

  Changed paths:
    M compiler-rt/test/asan/TestCases/Linux/odr_c_test.c

  Log Message:
  -----------
  [ASan][test] Skip Linux/odr_c_test.c on SPARC (#109111)

When ASan testing is enabled on SPARC as per PR #107405, the
```
  AddressSanitizer-sparc-linux :: TestCases/Linux/odr_c_test.c

```
test `FAIL`s on Linux/sparc64:
```
+ projects/compiler-rt/test/asan/SPARCLinuxConfig/TestCases/Linux/Output/odr_c_test.c.tmp
+ count 0
Expected 0 lines, got 13.

AddressSanitizer:DEADLYSIGNAL
=================================================================
==4165420==ERROR: AddressSanitizer: BUS on unknown address (pc 0x7012d5b4 bp 0xffa3b938 sp 0xffa3b8d0 T0)
==4165420==The signal is caused by a READ memory access.
==4165420==Hint: this fault was caused by a dereference of a high value address (see register values below).  Disassemble the provided pc to learn which register was used.
```
The test relies on an unaligned access, which cannot work on a
strict-alignment target like SPARC.

Thus this patch skips the test.

Tested on `sparc64-unknown-linux-gnu`.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list