<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/61320>61320</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Solaris (and illumos) have no /proc/%d/task/
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          mtelka
      </td>
    </tr>
</table>

<pre>
    I noticed that on illumos the [ThreadLister](https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp#L979) is compiled in (tested with gcc-10.4.0), but the `/proc/%d/task/` directory it not provided by procfs there.  I suggest to change the condition at line 979 from:
```
#if !SANITIZER_NETBSD
```
to
```
#if !SANITIZER_NETBSD && !SANITIZER_SOLARIS
```
or maybe even to
```
#if SANITIZER_LINUX
```
because I suspect the `/proc/%d/task/` directory is Linux-only.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUU91q9DYUfBr55rBGPv5Z-8IXm-5nWFhS-DaF0psgS2dtNbJkJHnT7dMXOw0hkBYCBlseMRrNmREh6MEStax8YOUxEUscnW-nSOZFJL1T9_YE1kUtSUEcRQRnQRuzTC5AHAlY-fA0ehLqrEMkz8ojw3qMcQ4sPzDsGHaDjuPSp9JNDDtjbu-v3ezdnyQjw643rmfYTUJbhp1006wN-Z1fMaNXKAiro_6b_LN00-Tsp19G2-WvVM4zw_zc7BuGDegA__Io0BYY1pFCJAWvOo4wSLnLeFqknGHD8Bfol_h2n4oz7Gbv5Ca-VAy7KMLLuqo4KO1JRufvoOPqC8ze3bQiBf19_ZbXzRZPKcAJwjIMFCJEB3IUdqDtCOms0lE7CyKC0Zag2Tdw9W5aLeNHxg-rirfnbYm5vgLD7HJ4PD2d_vjx8_nxx9PD5fjl7ui-RwIMK4bVZ-jy6_nw83T5ksl5mMS9J6AbWfjf4z4Iz6fH337_cmdPUiyBNr_CTPK7gwhwXue_c9bc00S1uWryRiTUZtW-LnJelftkbPdVea3rMi-or0rMRKPy_HpteK8aXvMeE90ix5znGedVUWT7tKgFFlI1lKHitVCs4DQJbdI1vKnzQ6JDWKitshx5YkRPJmw9QrT0ChvIENda-XYLfL8MgRXc6BDDB0vU0VB7cUZ4HdagCqveO7YmeRQ3Auvgv-xIFm_ab1dukxcYdpv8fwIAAP__qrA5gw">