[R-SIG-Mac] incompatible lldb on mojave?

Simon Urbanek @|mon@urb@nek @end|ng |rom R-project@org
Sun May 3 05:26:10 CEST 2020


Vince,

Apple no longer allows debugging of distributed apps - see R for Mac FAQ 10.17:
http://mac.r-project.org/bin/macosx/RMacOSX-FAQ.html#I-cannot-attach-debugger-to-R

Another (not recommended) work-around is to disable SIP.

Cheers,
Simon



> On 3/05/2020, at 10:42 AM, Vincent Carey <stvjc using channing.harvard.edu> wrote:
> 
> I'd like to make use of material in
> 
> https://kevinushey.github.io/blog/2015/04/13/debugging-with-lldb/
> 
> But with R 4.0 I get
> 
> %vjcair> R -d lldb
> 
> (lldb) target create "/Library/Frameworks/R.framework/Resources/bin/exec/R"
> 
> Current executable set to
> '/Library/Frameworks/R.framework/Resources/bin/exec/R' (x86_64).
> 
> (lldb) run
> 
> error: process exited with status -1 (Error 1)
> 
> (lldb) quit
> 
> %vjcair> which lldb
> 
> /usr/bin/lldb
> 
> %vjcair> lldb --version
> 
> lldb-1100.0.30.12
> 
> Apple Swift version 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)
> 
> 
> with gdb, there is a little more info -- and a peculiar warning that
> mentions /Volumes/Builds/Simon/R4/h ...
> 
> 
> %vjcair> R -d gdb
> 
> GNU gdb (GDB) 8.1
> 
> Copyright (C) 2018 Free Software Foundation, Inc.
> 
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>> 
> 
> This is free software: you are free to change and redistribute it.
> 
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> 
> and "show warranty" for details.
> 
> This GDB was configured as "x86_64-apple-darwin16.7.0".
> 
> Type "show configuration" for configuration details.
> 
> For bug reporting instructions, please see:
> 
> <http://www.gnu.org/software/gdb/bugs/>.
> 
> Find the GDB manual and other documentation resources online at:
> 
> <http://www.gnu.org/software/gdb/documentation/>.
> 
> For help, type "help".
> 
> Type "apropos word" to search for commands related to "word"...
> 
> Reading symbols from /Library/Frameworks/R.framework/Resources/bin/exec/R...
> 
> warning:
> `/Volumes/Builds/Simon/R4/high-sierra-x86_64/R-4.0-branch/src/main/Rmain.o':
> can't open to read symbols: No such file or directory.
> 
> (no debugging symbols found)...done.
> 
> (gdb) run
> 
> Starting program:
> /Library/Frameworks/R.framework/Versions/4.0/Resources/bin/exec/R
> 
> Unable to find Mach task port for process-id 59032: (os/kern) failure (0x5).
> 
> (please check gdb is codesigned - see taskgated(8))
> 
>> sessionInfo()
> 
> R version 4.0.0 Patched (2020-04-27 r78309)
> 
> Platform: x86_64-apple-darwin17.0 (64-bit)
> 
> Running under: macOS Mojave 10.14.6
> 
> 
> Matrix products: default
> 
> BLAS:
> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
> 
> LAPACK:
> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
> 
> -- 
> The information in this e-mail is intended only for th...{{dropped:8}}



More information about the R-SIG-Mac mailing list