[all-commits] [llvm/llvm-project] 9e66e5: tsan: print signal num in errno spoiling reports

Dmitry Vyukov via All-commits all-commits at lists.llvm.org
Fri Mar 18 08:12:30 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9e66e5872c4a0f37731d2359c17ea24838b912d3
      https://github.com/llvm/llvm-project/commit/9e66e5872c4a0f37731d2359c17ea24838b912d3
  Author: Dmitry Vyukov <dvyukov at google.com>
  Date:   2022-03-18 (Fri, 18 Mar 2022)

  Changed paths:
    M compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
    M compiler-rt/lib/tsan/rtl/tsan_report.cpp
    M compiler-rt/lib/tsan/rtl/tsan_report.h
    M compiler-rt/lib/tsan/rtl/tsan_rtl.h
    M compiler-rt/lib/tsan/rtl/tsan_rtl_report.cpp
    M compiler-rt/test/tsan/signal_errno.cpp

  Log Message:
  -----------
  tsan: print signal num in errno spoiling reports

For errno spoiling reports we only print the stack
where the signal handler is invoked. And the top
frame is the signal handler function, which is supposed
to give the info for debugging.
But in same cases the top frame can be some common thunk,
which does not give much info. E.g. for Go/cgo it's always
runtime.cgoSigtramp.

Print the signal number.
This is what we can easily gather and it may give at least
some hints regarding the issue.

Reviewed By: melver, vitalybuka

Differential Revision: https://reviews.llvm.org/D121979




More information about the All-commits mailing list