<p dir="ltr">Hi Ziming,</p>
<p dir="ltr">The first thing you want to do is build and install the latest LLDB from <a href="http://llvm.org">llvm.org</a>. If it is still a problem, please file a bug (with trivial repro steps if possible).</p>
<p dir="ltr">Vince<br>
</p>
<div class="gmail_quote">On Dec 18, 2014 6:01 PM, "Ziming Song" <<a href="mailto:s.ziming@hotmail.com">s.ziming@hotmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">Hello, everyone<div><br><div>I am using LLDB API to implement a gui debugger, but if I set a breakpoint using the following code:<div><br></div><div><div><font face="Courier New, sans-serif">// variable i is the line number to set breakpoint at.</font></div><div><font face="Courier New, sans-serif">SBBreakpoint b = m_target.BreakpointCreateByLocation(m_target.GetExecutable().GetFilename(), i);</font></div><div><font face="Courier New, sans-serif">qDebug("Created Breakpoint %s At Line %d.", qPrintable(QString::number(b.GetNumLocations()).toLocal8Bit()), i);</font></div></div><div><br></div><div>When I launch the program using m_target.LaunchSimple(NULL, NULL, "/") and when the target hit the breakpoint, the gui debugger crashes and exits. If I start the gui debugger using lldb I can see the following output:</div></div></div><div><font face="Courier New, sans-serif"><br></font></div><div><div><font face="Courier New, sans-serif">(lldb) r</font></div><div><font face="Courier New, sans-serif">Process 14932 launched: '/home/szm/Documents/workSpace/qt/build-studio2-LLVM_qt5-Debug/studio2' (x86_64)</font></div><div><font face="Courier New, sans-serif">Process 14932 stopped and restarted: thread 1 received signal: SIGCHLD</font></div><div><font face="Courier New, sans-serif" color="#008a17">Created Breakpoint 0 At Line 7. <-- this is my program's output.</font></div><div><font face="Courier New, sans-serif">Process 14932 stopped and restarted: thread 9 received signal: SIGCHLD</font></div><div><font face="Courier New, sans-serif">Process 14932 stopped</font></div><div><font face="Courier New, sans-serif">* thread #9: tid = 14953, 0x00007f1c5d5fa102 liblldb.so`ProcessMonitor::ServeOperation(ProcessMonitor::OperationArgs*) + 50, name = 'operation', stop reason = invalid address (fault address: 0x11)</font></div><div><font face="Courier New, sans-serif"> frame #0: 0x00007f1c5d5fa102 liblldb.so`ProcessMonitor::ServeOperation(ProcessMonitor::OperationArgs*) + 50</font></div><div><font face="Courier New, sans-serif">liblldb.so`ProcessMonitor::ServeOperation(ProcessMonitor::OperationArgs*) + 50:</font></div><div><font face="Courier New, sans-serif">-> 0x7f1c5d5fa102: callq *0x10(%rdx)</font></div><div><font face="Courier New, sans-serif"> 0x7f1c5d5fa105: movq %rbp, %rdi</font></div><div><font face="Courier New, sans-serif"> 0x7f1c5d5fa108: callq 0x7f1c5c8c1a80 ; symbol stub for: sem_post</font></div><div><font face="Courier New, sans-serif"> 0x7f1c5d5fa10d: jmp 0x7f1c5d5fa0f0 ; ProcessMonitor::ServeOperation(ProcessMonitor::OperationArgs*) + 32</font></div><div><font face="Courier New, sans-serif">(lldb) </font></div></div><div><br></div><div>Seems that the program got SIGCHLD because the "invalid address", but I have no idea how to fix it. (<span style="font-size:12pt">I'm using ubuntu 14.04 with lldb-3.4-dev from apt-get.)</span></div><div><br></div><div>Thanks,</div><div>Song Ziming</div><div><br></div> </div></div>
<br>_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
<br></blockquote></div>