[swift-lldb-dev] Cannot use swift REPL from stand alone lldb build

Rex Fenley rex at remind101.com
Thu Oct 6 19:22:10 CDT 2016


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't work in this case.

(lldb) process attach -n <App Name> --waitfor

Process 27857 stopped

* thread #1: tid = 0x1eadf9, 0x00007fff6d4ca5e2 dyld`pread + 10, stop
reason = signal SIGSTOP

    frame #0: 0x00007fff6d4ca5e2 dyld`pread + 10


->  0x7fff6d4ca5e2 <+10>: jae    0x7fff6d4ca5ec            ; <+20>

    0x7fff6d4ca5e4 <+12>: movq   %rax, %rdi

    0x7fff6d4ca5e7 <+15>: jmp    0x7fff6d4c9c01            ; cerror

    0x7fff6d4ca5ec <+20>: retq

Executable module set to
Name>.app/<App Name>".

Architecture set to: x86_64h-apple-ios.

(lldb) continue

Process 27857 resuming

(lldb) process interrupt

Process 27857 stopped

* thread #1: tid = 0x1eadf9, 0x0000000115929f72
libsystem_kernel.dylib`mach_msg_trap + 10, stop reason = signal SIGSTOP

    frame #0: 0x0000000115929f72 libsystem_kernel.dylib`mach_msg_trap + 10


->  0x115929f72 <+10>: retq

    0x115929f73 <+11>: nop


    0x115929f74 <+0>:  movq   %rcx, %r10

    0x115929f77 <+3>:  movl   $0x1000020, %eax          ; imm = 0x1000020

(lldb) repl

  1> import Foundation

warning: Swift error in module <App Name>.

Debug info from this module will be unavailable in the debugger.

Assertion failed: (!HasFatalErrors()), function GetNumModuleSearchPaths,
line 3587.

Abort trap: 6


Rex Fenley  |  IOS DEVELOPER

Remind.com <https://www.remind.com/> |  BLOG <http://blog.remind.com/>
US <https://twitter.com/remindhq>  |  LIKE US
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-lldb-dev/attachments/20161006/997073b8/attachment.html>

More information about the swift-lldb-dev mailing list