[Lldb-commits] [Bug 11579] New: lldb::SBValue::CreateValueFromAddress does not verify SBType::GetPointerType succeeds

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Dec 14 16:47:27 PST 2011


http://llvm.org/bugs/show_bug.cgi?id=11579

             Bug #: 11579
           Summary: lldb::SBValue::CreateValueFromAddress does not verify
                    SBType::GetPointerType succeeds
           Product: lldb
           Version: unspecified
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
        AssignedTo: lldb-commits at cs.uiuc.edu
        ReportedBy: nathanhowell at hotmail.com
    Classification: Unclassified


And triggers another segfault. 

(gdb) where
#0  lldb_private::IntrusiveSharingPtr<lldb_private::Type>::get (this=0x18) at
/Source/lldb/include/lldb/Utility/SharingPtr.h:697
#1  0x00000001000c8bee in lldb_private::TypeImpl::IsValid (this=0x0) at
/Source/lldb/include/lldb/Symbol/Type.h:372
#2  0x00000001011e9ac9 in lldb_private::TypeImpl::GetASTContext (this=0x0) at
/Source/lldb/source/Symbol/Type.cpp:775
#3  0x00000001000bde2d in lldb::SBValue::CreateValueFromAddress
(this=0x1050c0660, name=0x102f876e4 "$0_closure", address=4379757008,
type={m_opaque_sp = {ptr_ = 0x7fff5fbfbae8, cntrl_ = 0x7fff5fbfbaf8}}) at
/Source/lldb/source/API/SBValue.cpp:420
#4  0x000000010013a105 in _wrap_SBValue_CreateValueFromAddress
(args=0x102b19db8) at /Source/lldb/source/LLDBWrapPython.cpp:27815
#5  0x000000010273df63 in PyObject_Call ()
#6  0x00000001027bd55e in PyEval_EvalFrameEx ()
#7  0x00000001027bdcde in PyEval_EvalCodeEx ()
#8  0x00000001027bc36e in PyEval_EvalFrameEx ()
#9  0x00000001027bc2f1 in PyEval_EvalFrameEx ()
#10 0x00000001027bc2f1 in PyEval_EvalFrameEx ()
#11 0x00000001027bdcde in PyEval_EvalCodeEx ()
#12 0x000000010275f865 in PyClassMethod_New ()
#13 0x000000010273df63 in PyObject_Call ()
#14 0x00000001027b79eb in PyEval_CallObjectWithKeywords ()
#15 0x00000001000dd8bf in LLDBSwigPythonCallCommand
(python_function_name=0x103b09d48 "ghc.print_obj_dbg",
session_dictionary_name=0x1029779a8 "debugger_1_dict",
debugger=@0x7fff5fbfca00, args=0x1029d4578 "(\"$r14\")",
err_msg=@0x7fff5fbfc9e0, cmd_retobj=@0x1029d4710) at
/Source/lldb/source/LLDBWrapPython.cpp:30237
#16 0x000000010108fb0b in
lldb_private::ScriptInterpreterPython::RunScriptBasedCommand (this=0x10292f8e0,
impl_function=0x103b09d48 "ghc.print_obj_dbg", args=0x1029d4578 "(\"$r14\")",
synchronicity=lldb_private::eScriptedCommandSynchronicitySynchronous,
cmd_retobj=@0x1029d4710, error=@0x7fff5fbfcab8) at
/Source/lldb/source/Interpreter/ScriptInterpreterPython.cpp:1890
#17 0x0000000100e7dc73 in CommandObjectPythonFunction::ExecuteRawCommandString
(this=0x103b08580, raw_command_line=0x1029d4578 "(\"$r14\")",
result=@0x1029d4710) at
/Source/lldb/source/Commands/CommandObjectCommands.cpp:1192
#18 0x000000010105cbf7 in lldb_private::CommandInterpreter::HandleCommand
(this=0x102914f90, command_line=0x1050c6508 "printObj (\"$r14\")",
add_to_history=true, result=@0x1029d4710, override_context=0x0,
repeat_on_empty_command=true, no_context_switching=false) at
/Source/lldb/source/Interpreter/CommandInterpreter.cpp:1503
#19 0x00000001000a9869 in lldb::SBCommandInterpreter::HandleCommand
(this=0x7fff5fbfd5f0, command_line=0x1050c6508 "printObj (\"$r14\")",
result=@0x7fff5fbfd5f8, add_to_history=true) at
/Source/lldb/source/API/SBCommandInterpreter.cpp:97
#20 0x0000000100004ac3 in Driver::HandleIOEvent (this=0x7fff5fbfec40,
event=@0x7fff5fbfda50) at /Source/lldb/tools/driver/Driver.cpp:933
#21 0x0000000100006790 in Driver::MainLoop (this=0x7fff5fbfec40) at
/Source/lldb/tools/driver/Driver.cpp:1341
#22 0x00000001000070aa in main (argc=2, argv=0x7fff5fbfed70,
envp=0x7fff5fbfed88) at /Source/lldb/tools/driver/Driver.cpp:1460

(gdb) print type
$4 = {
  m_opaque_sp = {
    ptr_ = 0x7fff5fbfbae8, 
    cntrl_ = 0x7fff5fbfbaf8
  }
}

(gdb) print real_type 
$5 = {
  m_opaque_sp = {
    ptr_ = 0x0, 
    cntrl_ = 0x0
  }
}

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the lldb-commits mailing list