[all-commits] [llvm/llvm-project] 009e17: [sanitizer_common] Fix TgKill on Solaris (#98000)

Rainer Orth via All-commits all-commits at lists.llvm.org
Tue Jul 16 06:51:12 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 009e176b880f660e7b01dda1f665a1b221375fd8
      https://github.com/llvm/llvm-project/commit/009e176b880f660e7b01dda1f665a1b221375fd8
  Author: Rainer Orth <ro at gcc.gnu.org>
  Date:   2024-07-16 (Tue, 16 Jul 2024)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp

  Log Message:
  -----------
  [sanitizer_common] Fix TgKill on Solaris (#98000)

While working on safestack on Solaris, I noticed that the `TgKill`
implementation is wrong here: `TgKill` is supposed to return `-1` on
error, while `thr_kill` returns `errno` instead. This patch compensates
for that.

This went unnoticed so far since `TgKill` has been unused.

Tested on `amd64-pc-solaris2.11` and `sparcv9-sun-solaris2.11` together
with a subsequent patch to make safestack actually work on Solaris.



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