<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>I ran into the error in the subject when running a python script with "script myfile.myscript()".<BR> <BR>The value addr_t parameter used is 0x0000000001223f68, the following works fine:<BR><br>(lldb) scr<br>Python Interactive Interpreter. To exit, type 'quit()', 'exit()' or Ctrl-D.<br>>>> e = lldb.SBError()<br>>>> ptr = lldb.process.ReadPointerFromMemory(0x0000000001223f68, e)<br>>>> print ptr<br>0<br>>>> <BR> <BR>Any suggestion how to further investigate? Thanks.<BR> <BR>myfile.myscript() calls the following function in a loop (iterate through all vtable symbols), which contains the call ReadPointerFromMemory.<BR> <BR>def dump_vtbl(vtableAddr) :<br>    error = lldb.SBError()<br>    vtableEndAddr = lldb.process.ReadPointerFromMemory(vtableAddr+8, error)<br>    if not error.success :<br>        return False<BR>    print "vtable: [%0.16x, %0.16x)" % (vtableAddr, vtableEndAddr)<br>    for addr in range(vtableAddr, vtableEndAddr, 8) :<br>        print "read from address %.016x" % addr<br>        try:<br>            funcAddr = lldb.process.ReadPointerFromMemory(addr, error)<br>        except:<br>            sys.exc_clear()<br>            continue<BR>        if not error.success :<br>            continue<br><BR>                                         </div></body>
</html>