<div dir="ltr">We&#39;re using the `swift-3.0-RELEASE` tag from the swift-lldb github repo to build lldb and we are building our app with Xcode 8. Are these not the same swift versions?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 7, 2016 at 10:48 AM, Jim Ingham <span dir="ltr">&lt;<a href="mailto:jingham@apple.com" target="_blank">jingham@apple.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This error usually comes from some Swift component in you app not being built with exactly the same Swift compiler as the one that the lldb you are using is built with.  For instance, if you are building your own lldb, you have to use the Swift compiler that&#39;s built in the process of building lldb.<br>
<br>
If that&#39;s not the case we&#39;ll need to look at the logs generated by putting:<br>
<br>
log enable -f /tmp/lldb-log.txt lldb expr types<br>
<br>
in your ~/.lldbinit and then running your debug session.  These logs can get pretty big so it&#39;s better to file a bug and attach these logs to the bug.  Note, the logs get overwritten every time you start a debug session, so when you get the failure, grab the logs and add them to the bug you file.<br>
<br>
Thanks,<br>
<br>
Jim<br>
<div class="HOEnZb"><div class="h5"><br>
&gt; On Oct 6, 2016, at 9:18 PM, Todd Fiala via swift-lldb-dev &lt;<a href="mailto:swift-lldb-dev@swift.org">swift-lldb-dev@swift.org</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi Rex,<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Thu, Oct 6, 2016 at 5:22 PM, Rex Fenley via swift-lldb-dev &lt;<a href="mailto:swift-lldb-dev@swift.org">swift-lldb-dev@swift.org</a>&gt; wrote:<br>
&gt; Hi!<br>
&gt;<br>
&gt; I run lldb, platform select ios-simulator, connect to the right simulator and attach to my app and when trying to try to do anything in the repl I get the following kind of error at the bottom for an Abort, please help! The repl works fine in Xcode, not sure why it wouldn&#39;t work in this case.<br>
&gt;<br>
&gt; (lldb) process attach -n &lt;App Name&gt; --waitfor<br>
&gt;<br>
&gt; Process 27857 stopped<br>
&gt;<br>
&gt; * thread #1: tid = 0x1eadf9, 0x00007fff6d4ca5e2 dyld`pread + 10, stop reason = signal SIGSTOP<br>
&gt;<br>
&gt;     frame #0: 0x00007fff6d4ca5e2 dyld`pread + 10<br>
&gt;<br>
&gt; dyld`pread:<br>
&gt;<br>
&gt; -&gt;  0x7fff6d4ca5e2 &lt;+10&gt;: jae    0x7fff6d4ca5ec            ; &lt;+20&gt;<br>
&gt;<br>
&gt;     0x7fff6d4ca5e4 &lt;+12&gt;: movq   %rax, %rdi<br>
&gt;<br>
&gt;     0x7fff6d4ca5e7 &lt;+15&gt;: jmp    0x7fff6d4c9c01            ; cerror<br>
&gt;<br>
&gt;     0x7fff6d4ca5ec &lt;+20&gt;: retq<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Executable module set to &quot;/Users/Rex/Library/Developer/<wbr>CoreSimulator/Devices/<wbr>ACC5BC4E-C7B1-4635-A591-<wbr>6BE65F05B7EC/data/Containers/<wbr>Bundle/Application/ECA295A8-<wbr>DB79-4A4A-8ADE-0E616CAB0093/&lt;<wbr>App Name&gt;.app/&lt;App Name&gt;&quot;.<br>
&gt;<br>
&gt; Architecture set to: x86_64h-apple-ios.<br>
&gt;<br>
&gt; (lldb) continue<br>
&gt;<br>
&gt; Process 27857 resuming<br>
&gt;<br>
&gt; (lldb) process interrupt<br>
&gt;<br>
&gt; Process 27857 stopped<br>
&gt;<br>
&gt; * thread #1: tid = 0x1eadf9, 0x0000000115929f72 libsystem_kernel.dylib`mach_<wbr>msg_trap + 10, stop reason = signal SIGSTOP<br>
&gt;<br>
&gt;     frame #0: 0x0000000115929f72 libsystem_kernel.dylib`mach_<wbr>msg_trap + 10<br>
&gt;<br>
&gt; libsystem_kernel.dylib`mach_<wbr>msg_trap:<br>
&gt;<br>
&gt; -&gt;  0x115929f72 &lt;+10&gt;: retq<br>
&gt;<br>
&gt;     0x115929f73 &lt;+11&gt;: nop<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; libsystem_kernel.dylib`mach_<wbr>msg_overwrite_trap:<br>
&gt;<br>
&gt;     0x115929f74 &lt;+0&gt;:  movq   %rcx, %r10<br>
&gt;<br>
&gt;     0x115929f77 &lt;+3&gt;:  movl   $0x1000020, %eax          ; imm = 0x1000020<br>
&gt;<br>
&gt; (lldb) repl<br>
&gt;<br>
&gt;   1&gt; import Foundation<br>
&gt;<br>
&gt; warning: Swift error in module &lt;App Name&gt;.<br>
&gt;<br>
&gt; Debug info from this module will be unavailable in the debugger.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; This part looks suspicious.  I&#39;m assuming &lt;App Name&gt; is really something else on your end.  If you do have a space in the name, you might want to try without a space as something in the toolchain might be mishandling spaces in pathnames.<br>
&gt;<br>
&gt;<br>
&gt; Assertion failed: (!HasFatalErrors()), function GetNumModuleSearchPaths, file /Users/Rex/Documents/projects/<wbr>swift-lldb/lldb/source/Symbol/<wbr>SwiftASTContext.cpp, line 3587.<br>
&gt;<br>
&gt; Abort trap: 6<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; This bit above definitely means something is wrong.  I suspect it&#39;s a cascading error for the debugger not being able to find debug info.<br>
&gt;<br>
&gt; There are a couple members of the team that will likely have some thoughts on what to try.  I&#39;ll make sure they see this tomorrow.<br>
&gt;<br>
&gt; Thanks for passing that along,<br>
&gt; Todd<br>
&gt;<br>
&gt; --<br>
&gt; Rex Fenley  |  IOS DEVELOPER<br>
&gt;<br>
&gt;<br>
</div></div><div class="HOEnZb"><div class="h5">&gt; Remind.com |  BLOG  |  FOLLOW US  |  LIKE US<br>
&gt;<br>
&gt; ______________________________<wbr>_________________<br>
&gt; swift-lldb-dev mailing list<br>
&gt; <a href="mailto:swift-lldb-dev@swift.org">swift-lldb-dev@swift.org</a><br>
&gt; <a href="https://lists.swift.org/mailman/listinfo/swift-lldb-dev" rel="noreferrer" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-lldb-<wbr>dev</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; -Todd<br>
&gt; ______________________________<wbr>_________________<br>
&gt; swift-lldb-dev mailing list<br>
&gt; <a href="mailto:swift-lldb-dev@swift.org">swift-lldb-dev@swift.org</a><br>
&gt; <a href="https://lists.swift.org/mailman/listinfo/swift-lldb-dev" rel="noreferrer" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-lldb-<wbr>dev</a><br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:16px;font-family:Arial;background-color:transparent;font-style:italic;vertical-align:baseline;white-space:pre-wrap">Rex Fenley</span><span style="font-size:16px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">  </span><span style="font-size:11px;font-family:Arial;color:rgb(153,153,153);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">|</span><span style="line-height:1.15;font-family:Arial;color:rgb(153,153,153);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">  </span><span style="font-size:11px;font-family:Arial;color:rgb(153,153,153);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">IOS DEVELOPER</span><br></p></span><span><br><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11px;font-family:Arial;color:rgb(153,153,153);vertical-align:baseline;white-space:pre-wrap;background-color:transparent"><img src="https://lh5.googleusercontent.com/xMgzw3JkFL3DLkdwyq0WxJzKs_XP57gVVCaBMvgi1FKCjSeue0xdx3JZeCWBlxN4KRHhHOfdvJbc1N-AjTwXcKIq4cjJg9H7iaFpQ8WbO4N3c9Y5dzi19cPOs_owPquuqw" width="250px;" height="53px;" style="border:none"></span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><a href="https://www.remind.com/" style="text-decoration:none" target="_blank"><span style="font-size:11px;font-family:Arial;color:rgb(17,85,204);font-weight:bold;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">Remind.com</span></a><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent"> </span><span style="font-size:11px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">|  </span><a href="http://blog.remind.com/" style="text-decoration:none" target="_blank"><span style="font-size:11px;font-family:Arial;color:rgb(17,85,204);text-decoration:underline;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">BLOG</span></a><span style="font-size:11px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">  |  </span><a href="https://twitter.com/remindhq" style="text-decoration:none" target="_blank"><span style="font-size:11px;font-family:Arial;color:rgb(17,85,204);text-decoration:underline;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">FOLLOW US</span></a><span style="font-size:11px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">  | </span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent"> </span><span style="text-decoration:underline;font-size:11px;font-family:Arial;color:rgb(17,85,204);vertical-align:baseline;white-space:pre-wrap;background-color:transparent"><a href="https://www.facebook.com/remindhq" style="text-decoration:none" target="_blank">LIKE US</a></span></p></span></div></div>
</div>