[R-SIG-Mac] Using lldb with R 3.6.3 and the current R-devel causes an error exit from the process
Simon Urbanek
@|mon@urb@nek @end|ng |rom R-project@org
Fri Apr 10 22:27:37 CEST 2020
Jim,
yes, this is something that was bound to come sooner or later. All the changes Apple is doing are security constraints, so there is by definition no way around it. It could be possible that in theory with disabled SIP you could do something, but I didn't test if that's possible and not a wise idea for users anyway.
However, code-signing and enabling hardened runtime in the new R4 build system happens at the packaging step, so the binary tar ball
http://mac.r-project.org/high-sierra/R-4.0-branch/x86_64/R-4.0-branch.tar.gz
and
http://mac.r-project.org/high-sierra/R-devel/x86_64/R-4.0-branch.tar.gz
don't use hardened runtime. You could try and see if those work, apart from signing (and thus entitlements enforcement like hardened runtime) they are identical to the packages. If it does solve the problem we could publish the tar balls of released versions on CRAN (you can always get the nightlies from the mac site).
Cheers,
Simon
> On 11/04/2020, at 5:52 AM, Jim Hester <james.f.hester using gmail.com> wrote:
>
> See below, lldb works with prior versions of R without a problem. Perhaps
> the new hardened runtime is the issue. The behavior seems similar to that
> discussed in this thread (https://forums.developer.apple.com/thread/119059).
>
> It would be pretty detrimental not to be able to debug R with lldb, so
> hopefully we can find a way to make this work again.
>
>> R --version
> R version 3.6.3 (2020-02-29) -- "Holding the Windsock"
> Copyright (C) 2020 The R Foundation for Statistical Computing
> Platform: x86_64-apple-darwin15.6.0 (64-bit)
>
>> 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) r
> error: process exited with status -1 (Error 1)
> (lldb)
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
More information about the R-SIG-Mac
mailing list