Skip to content

ThreadSanitizer doesn't work on aarch64? #187

Closed as not planned
Closed as not planned
@huangtianhua

Description

@huangtianhua

I build/test apache/kudu on aarch64, when I enable tsan then all tests are failed(they are success without tsan enable), the error info like:

+++++++++++++++++++++++++++++++++++++++++++++++
ThreadSanitizer:DEADLYSIGNAL
==6175==ERROR: ThreadSanitizer: SEGV on unknown address 0x000000000000 (pc 0x000000000000 bp 0xfffffffff0f0 sp 0xfffffffff0f0 T6175)
==6175==Hint: pc points to the zero page.
==6175==The signal is caused by a READ memory access.
==6175==Hint: address points to the zero page.

ThreadSanitizer can not provide additional info.
SUMMARY: ThreadSanitizer: SEGV (<unknown module>)
==6175==ABORTING
+++++++++++++++++++++++++++++++++++++++++++++++++++++++

I also print the sig info as:

(gdb) p sig
$3 = (const __sanitizer::SignalContext &) @0xfffff633ad68: {siginfo = 0xfffff633ada0,
  context = 0xfffff633ae20, addr = 0, pc = 0, sp = 281474976706768, bp = 281474976706768,
  is_memory_access = true, write_flag = __sanitizer::SignalContext::READ}

Ps: we use LLVM: 9.0.0

According to llvm documents, tsan support linux aarch64 platform, and I try the example mentioned in llvm document. So would you please help me, what's the problem to make all tests failed?
Thanks very much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    compiler-rt:tsanThread sanitizerincompleteIssue not complete (e.g. missing a reproducer, build arguments, etc.)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions