<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - NativeProcessLinux::MonitorCallback incorrectly logs value of libc "signal" function"
   href="https://bugs.llvm.org/show_bug.cgi?id=40588">40588</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>NativeProcessLinux::MonitorCallback incorrectly logs value of libc "signal" function
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jcowgill+llvm@jcowgill.uk
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>In commit 4d99ca2308f9 ("Add pretty-printer for wait(2) statuses and modernize
the code handling them"), the "signal" parameter was removed from
NativeProcessLinux::MonitorCallback. Unfortunately not all uses of this
parameter were removed and as a result these uses now refer to the "signal"
function from libc which is probably unintended!

Both users are debug logging calls.

Call 1:
 LLDB_LOG(log, "got exit signal({0}) , tid = {1} ({2} main thread)", signal,
          pid, is_main_thread ? "is" : "is not");

Call 2:
 LLDB_LOG(log,
          "GetSignalInfo failed: {0}, tid = {1}, signal = {2}, "
          "status = {3}, main_thread = {4}, thread_found: {5}",
          info_err, pid, signal, status, is_main_thread, thread_found);</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>