[R-SIG-Mac] R-devel segmentation fault in combination RStudio/R GUI

Sebastian Kreutzer @eb@@t|@n@kreutzer @end|ng |rom un|-he|de|berg@de
Wed Sep 25 20:12:41 CEST 2024


Hello, 

Thanks again to Prof Ripley and Simon; however, I am afraid I have to get back 
to you on this because my “I am good for now" was premature.

The R-devel builds now appear again on https://mac.r-project.org/; thank you very much!

Unfortunately, I have the same issue with these builds as with the ones I have produced locally.

- I installed and tried the binary builds from https://mac.r-project.org/big-sur/last-success/ and 
https://mac.r-project.org/ but when I use RStudio (just updated before once more) and try to load
a package, the session crashes immediately. The same goes for the R GUI; it won’t start anymore.

- As before, calling R from the terminal works fine without any issue

- When I return to R-4.4.1-arm64.pkg (always freshly installed, no version switching), 
everything works as expected, with no error or issue. 

- I’ve looked up the RStudio GitHub issue list but found no report

- The console shows the following errors (shorted; I can provide full reports if wanted): 

RStudio:  EXC_CRASH (SIGABRT)
R GUI: codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":”SIGABRT"

- To be absolutely sure, I then tried to install the R-devel build from https://mac.r-project.org/ on my private M1 Mac mini, still running macOS 14.7 and 
I got the same crashes. Other than being from Apple, these two machines (the M2 and the private M1) have nothing in common 
regarding the setup. 

This observation makes me somewhat think that it is likely that someone else can perhaps reproduce this "issue"? 

Thanks once more for your support and kind regards, 

Sebastian 

P.S. Sorry for the HTML in my last messages. Prof Ripley was so kind as to point me to the e-mail certificate that caused these HTML tags. It should be fine now. 


> On 25. Sep 2024, at 11:50, Prof Brian Ripley <ripley using stats.ox.ac.uk> wrote:
> 
> On 25/09/2024 10:26, Sebastian Kreutzer wrote:
>> Hi Simon,
>> Many thanks for your prompt reply and the link; it greatly helps, and I appreciate it!
>> Yes, sorry for not detailing my issue further, but I did not want to
>> spam anybody with the log and configuration files I am using, so I cut it short.
>> I will also look more carefully into the differences between “my” build process and the CRAN builds;
>> it seems evident that I have overlooked something. My initial thought was just that with all the API
>> changes going on and me using a more recent version of macOS for the build than CRAN does,
> 
> The machine used for the M1mac additional issue is fully up-to-date, see https://www.stats.ox.ac.uk/pub/bdr/M1mac/README.txt
> 
> Following the instructions in the R-admin manual and not by some third party is always a good idea before posting.
> 
> Do please stop sending HTML, as required in the posting guide.
> 
>> it would not surprise me that, at some point, something
>> had changed in macOS, causing this “user-interface-only” crash.
>> Anyway, so as not to bother you further, thanks again for the help. I am good for now,
>> and if I figure out what has to be changed in my configuration to make it work again,  I will post it.
>> Kind regards,
>> Sebastian
>>> On 25. Sep 2024, at 01:40, Simon Urbanek <simon.urbanek using R-project.org> wrote:
>>> 
>>> Sebastian,
>>> 
>>> if you want to replicate the CRAN builds, you have to also use the same settings, otherwise you may have a build which is not binary compatible. It is unclear from your description how you built R (there are several variants such as framework install vs "unix"-style install and they are incompatible). You can see the flags actually used at the top of ${R_HOME}/etc/Makevars.
>>> 
>>> As for macOS R binaries, all latest builds are always available from
>>> https://mac.r-project.org/big-sur/last-success/
>>> 
>>> The fact that the main page itself is not showing R-devel is certainly not intentional since the binaries are there - I’ll look into that, thanks for reposting (you shouldn't wait months to report that ;)).
> 
> I did report it a month ago to Simon.
> 
>>> 
>>> Thanks,
>>> Simon
>>> 
>>> 
>>> 
>>>> On 24 Sep 2024, at 02:27, Sebastian Kreutzer <sebastian.kreutzer using uni- heidelberg.de> wrote:
>>>> 
>>>> Hello,
>>>> 
>>>> I am writing because I have been struggling for a couple of months to get R-devel to work in combination with
>>>> RStudio or the R GUI.
>>>> 
>>>> In the past, I had been downloading R-devel for macOS from https:// mac.r-project.org/, which
>>>> nearly always worked, however, for some (months I have in mind), there aren't daily R-devel builds. So I started building
>>>> R from source following https://stackoverflow.com/questions/75595875/ how-do-i-build-r-from-sources-on-macos
>>>> 
>>>> Adapted to my system, this worked surprisingly well, so I kept drawing R-devel from the SNV server on a regular
>>>> basis and built it from the source. However, it stopped working in mid-August. In a nutshell:
>>>> 
>>>> - I can build R-devel from the source without any issue flagged, and when started in the terminal, it works as expected.
>>>> - However, it crashes reproducibly when trying to load a package in RStudio (stable/nightly build) and the R GUI (always the latest version)
>>>> terminates the R session on start. Error messages in the console I get read as follows:
>>>> 
>>>>> R GUI: Termination Reason:  Namespace SIGNAL, Code 11 Segmentation fault: 11
>>>>> RStudio: Exception Type: EXC_CRASH (SIGABRT) ->    /usr/lib/dyld 0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
>>>> 
>>>> I can share the full logs, but I want to keep it short for now.
>>>> 
>>>> My questions are:
>>>> 
>>>> - Did anybody encounter such an issue with the latest R-devel and R GUI, RStudio?
>>>> - Is this perhaps why an R-devel binary is currently not available on https://mac.r-project.org/?
>>>> 
>>>> If I know that this is a known issue, it is all good; however, if it works
>>>> For all others without, then the error must be on my end, and I have to keep digging further.
>>>> 
>>>> - Tested systems: M2 -> macOS 14.5 to 15.0 with the Xcode on always the latest version available at the time.
>>>> - SNV: Always the latest check out
>>>> 
>>>> 
>>>> Kind regards,
>>>> 
>>>> 
>>>> Sebastian Kreutzer
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>> _______________________________________________
>> R-SIG-Mac mailing list
>> R-SIG-Mac using r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
> 
> 
> -- 
> Brian D. Ripley,                  ripley using stats.ox.ac.uk
> Emeritus Professor of Applied Statistics, University of Oxford



















	[[alternative HTML version deleted]]



More information about the R-SIG-Mac mailing list