<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 - 'memory read' reports 0s for unreadable memory on FreeBSD"
   href="https://bugs.llvm.org/show_bug.cgi?id=37190">37190</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>'memory read' reports 0s for unreadable memory on FreeBSD
          </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>Windows NT
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </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>emaste@freebsd.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>ptrace returns an error but it's not propagated to the user:

(lldb) memory read -format hex -size 8 0
reebsd.operationptrace(PT_IO, 92788, 0x7fffdedfaed8, 0) called from file
/tank/emaste/src/git-stable-11/contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp
line 166
reebsd.operationPT_IO: op=READ_D offs=0 size=512
reebsd.operationptrace() failed; errno=14 (<unknown>)
0x00000000: 0x0000000000000000 0x0000000000000000
0x00000010: 0x0000000000000000 0x0000000000000000
0x00000020: 0x0000000000000000 0x0000000000000000
0x00000030: 0x0000000000000000 0x0000000000000000

I tried as far back as lldb37 and it fails there.

(For reference, "reebsd.operation" is the thread name - final 16 chars of
"lldb.process.freebsd.operation"; it seems "-n" mode is enabled by default in
"log enable posix all"?)</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>