Skip to content

R 4.0.2 64-bit Windows hangs

1 message · Tomas Kalibera

#
On 8/27/20 8:38 PM, Jeroen Ooms wrote:
I've added a workaround, for now only to R-devel, which fixes both issues:

- infinite recursion on startup in 20197 (and some other pre-releases, 
as reported by others)
- segfault during longjump with gcc10 in multiple versions of Windows 
10, including 20211

The workaround uses NULL as the second argument to _setjmpex, which 
effectively disables SEH in internal R code for jump targets created 
using R's setjmp. This provides the same behavior as we have on Linux, 
potentially improves performance, and most importantly makes the problem 
go away. I've tested on CRAN/BIOC packages and did not find any issues, 
but potentially this could uncover bugs related to improper use of C++ 
with R (relying on that C++ destructors are run on R errors/long jumps). 
Such bugs should, however, have already been found on Linux where 
destructors were never run on long jumps.

Tomas