[lldb-dev] [Bug 37190] New: 'memory read' reports 0s for unreadable memory on FreeBSD

via lldb-dev lldb-dev at lists.llvm.org
Fri Apr 20 17:17:53 PDT 2018


            Bug ID: 37190
           Summary: 'memory read' reports 0s for unreadable memory on
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: emaste at freebsd.org
                CC: llvm-bugs at lists.llvm.org

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
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"?)

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20180421/79819b01/attachment.html>

More information about the lldb-dev mailing list