<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Segfault on `p $0`"
href="https://bugs.llvm.org/show_bug.cgi?id=42895">42895</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Segfault on `p $0`
</td>
</tr>
<tr>
<th>Product</th>
<td>lldb
</td>
</tr>
<tr>
<th>Version</th>
<td>8.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>lldb-dev@lists.llvm.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>whitequark@whitequark.org
</td>
</tr>
<tr>
<th>CC</th>
<td>jdevlieghere@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=22342" name="attach_22342" title="Communication with GDB stub">attachment 22342</a> <a href="attachment.cgi?id=22342&action=edit" title="Communication with GDB stub">[details]</a></span>
Communication with GDB stub
I am using LLDB 8 from Debian. To reproduce:
(lldb) gdb-remote 1234
Process 1 stopped
* thread #1, stop reason = signal SIGTRAP
frame #0: 0xffffffffffffffff
(lldb) p $0
(lldb) p $0
Thread 1 "lldb-8" received signal SIGSEGV, Segmentation fault.
EvaluateExpression () at
/build/llvm-toolchain-8-8.0.1/tools/lldb/source/Target/Target.cpp:2389
2389 /build/llvm-toolchain-8-8.0.1/tools/lldb/source/Target/Target.cpp: No
such file or directory.
(gdb) bt
#0 EvaluateExpression () at
/build/llvm-toolchain-8-8.0.1/tools/lldb/source/Target/Target.cpp:2389
#1 0x00007ffff2bcc196 in EvaluateExpression () at
/build/llvm-toolchain-8-8.0.1/tools/lldb/source/Commands/CommandObjectExpression.cpp:441
#2 0x00007ffff2bcd0e8 in DoExecute () at
/build/llvm-toolchain-8-8.0.1/tools/lldb/source/Commands/CommandObjectExpression.cpp:658
#3 0x00007ffff277692f in Execute () at
/build/llvm-toolchain-8-8.0.1/tools/lldb/source/Interpreter/CommandObject.cpp:997
#4 0x00007ffff276ddf2 in HandleCommand () at
/build/llvm-toolchain-8-8.0.1/tools/lldb/source/Interpreter/CommandInterpreter.cpp:1761
#5 0x00007ffff2771531 in IOHandlerInputComplete () at
/build/llvm-toolchain-8-8.0.1/tools/lldb/source/Interpreter/CommandInterpreter.cpp:2801
#6 0x00007ffff26c63e1 in Run () at
/build/llvm-toolchain-8-8.0.1/tools/lldb/source/Core/IOHandler.cpp:558
#7 0x00007ffff26abb86 in ExecuteIOHandlers () at
/build/llvm-toolchain-8-8.0.1/tools/lldb/source/Core/Debugger.cpp:988
#8 0x00007ffff2772376 in RunCommandInterpreter () at
/build/llvm-toolchain-8-8.0.1/tools/lldb/source/Interpreter/CommandInterpreter.cpp:3003
#9 0x00007ffff2561121 in RunCommandInterpreter () at
/build/llvm-toolchain-8-8.0.1/tools/lldb/source/API/SBDebugger.cpp:934
#10 0x0000000000407131 in MainLoop () at
/build/llvm-toolchain-8-8.0.1/tools/lldb/tools/driver/Driver.cpp:756
#11 0x0000000000407d51 in main () at
/build/llvm-toolchain-8-8.0.1/tools/lldb/tools/driver/Driver.cpp:936
Communication with GDB stub is attached.
This is a MIPS target and I was trying to get the value of register $0.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>