rstudio - R Session Aborted when attaching lldb debuger -


i try use lldb debug seg fault error in r package developing. i've seen other questions on use lldb debug r packages successfully. can't work....

i first start new rstudio process , want attach lldb rsession process following command:

(lldb) process attach -name rsession 

and rstudio "r session aborted" , have following message in lldb:

process 20658 stopped * thread #1, queue = 'com.apple.main-thread', stop reason = signal sigstop     frame #0: 0x00007fffb69b2bf2 libsystem_kernel.dylib`__psynch_cvwait + 10 libsystem_kernel.dylib`__psynch_cvwait: ->  0x7fffb69b2bf2 <+10>: jae    0x7fffb69b2bfc            ; <+20>     0x7fffb69b2bf4 <+12>: movq   %rax, %rdi     0x7fffb69b2bf7 <+15>: jmp    0x7fffb69abcaf            ; cerror_nocancel     0x7fffb69b2bfc <+20>: retq   

and type c command lldb, lldb gives me message process resuming, rstudio still stucked "r session aborted".

(lldb) c process 20658 resuming (lldb)  

if click rstudio's start new session, have new rsession process, not attached lldb....

what should debug rsession using lldb?

i'm using mac sierra 10.12.5

this approach worked me

in first terminal window

> lldb /applications/rstudio.app/contents/macos/rstudio (lldb) b fork (lldb) run # breakpoint hit - start second lldb # after running second lldb (lldb) cont                # first fork (lldb) cont                # second call fork 

in second terminal window

lldb (lldb) pro @ -n rsession -w process 1428 stopped .... executable module set "/applications/rstudio.app/contents/macos/rsession". architecture set to: x86_64-apple-macosx. (lldb) cont process 1428 resuming (lldb) 

i inside lldb , don't nasty message regarding failing session.

update:

it reported @consistency using different command in lldb might required:

(lldb) pro @ -n rsession 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -