[Lldb-commits] [Bug 11560] New: lldb::SBTarget::FindFirstType crashes when passed None

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Dec 13 16:25:51 PST 2011


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

             Bug #: 11560
           Summary: lldb::SBTarget::FindFirstType crashes when passed None
           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


Looks like a missing null check somewhere. I'm running r146478.

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
[Switching to process 50838 thread 0x4707]
0x00007fff84fa7642 in strstr ()
(gdb) where
#0  0x00007fff84fa7642 in strstr ()
#1  0x0000000100f30144 in StripTypeName (name_cstr=0x0) at
/Source/lldb/source/Core/Module.cpp:509
#2  0x0000000100f30051 in lldb_private::Module::FindTypes (this=0x1029ba9a0,
sc=@0x1222079d8, name=@0x122207990, namespace_decl=0x0, append=false,
max_matches=1, types=@0x1222079a0) at /Source/lldb/source/Core/Module.cpp:529
#3  0x00000001000b6b4b in lldb::SBModule::FindFirstType (this=0x122207ad8,
name_cstr=0x0) at /Source/lldb/source/API/SBModule.cpp:402
#4  0x0000000100084310 in lldb::SBTarget::FindFirstType (this=0x11a45ed90,
type=0x0) at /Source/lldb/source/API/SBTarget.cpp:1211
#5  0x000000010012a584 in _wrap_SBTarget_FindFirstType (args=0x10397d680) at
/Source/lldb/source/LLDBWrapPython.cpp:23303
#6  0x000000010273df63 in PyObject_Call ()
#7  0x00000001027bd55e in PyEval_EvalFrameEx ()
#8  0x00000001027bdcde in PyEval_EvalCodeEx ()
#9  0x00000001027bc36e in PyEval_EvalFrameEx ()
#10 0x00000001027bc2f1 in PyEval_EvalFrameEx ()
#11 0x00000001027bdcde in PyEval_EvalCodeEx ()
#12 0x00000001027ba36d in PyEval_EvalFrameEx ()
#13 0x00000001027bdcde in PyEval_EvalCodeEx ()
#14 0x00000001027bc36e in PyEval_EvalFrameEx ()
#15 0x00000001027bdcde in PyEval_EvalCodeEx ()
#16 0x00000001027bc36e in PyEval_EvalFrameEx ()
#17 0x00000001027bc2f1 in PyEval_EvalFrameEx ()
#18 0x00000001027bc2f1 in PyEval_EvalFrameEx ()
#19 0x00000001027bc2f1 in PyEval_EvalFrameEx ()
#20 0x00000001027bc2f1 in PyEval_EvalFrameEx ()
#21 0x00000001027bdcde in PyEval_EvalCodeEx ()
#22 0x00000001027bdd71 in PyEval_EvalCode ()
#23 0x00000001027d565e in Py_CompileString ()
#24 0x00000001027d5809 in PyRun_StringFlags ()
#25 0x00000001027d6f2b in PyRun_SimpleStringFlags ()
#26 0x000000010108abdd in
lldb_private::ScriptInterpreterPython::RunEmbeddedPythonInterpreter
(baton=0x10292f930) at
/Source/lldb/source/Interpreter/ScriptInterpreterPython.cpp:1621
#27 0x00000001010352ca in ThreadCreateTrampoline (arg=0x121b50b50) at
/Source/lldb/source/Host/common/Host.cpp:533
#28 0x00007fff84fa7fd6 in _pthread_start ()
#29 0x00007fff84fa7e89 in thread_start ()
(gdb) frame 5
#5  0x000000010012a584 in _wrap_SBTarget_FindFirstType (args=0x10397d680) at
/Source/lldb/source/LLDBWrapPython.cpp:23303
23303      result = (arg1)->FindFirstType((char const *)arg2);
Current language:  auto; currently c++
(gdb) print arg2
$1 = 0x0
(gdb)

-- 
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