rpy2 icon indicating copy to clipboard operation
rpy2 copied to clipboard

Segmentation fault on Windows

Open adament opened this issue 3 years ago • 2 comments

As mentioned in #754 I get a segfault on Windows when trying to use current master on Windows.

To Reproduce

So far the only way I have been able to build the package has been using the recipe from conda-forge and then I get the segmentation fault when trying to import robjects.

However it looks like the current CI also segfaults on Windows https://github.com/rpy2/rpy2/runs/1606566615 which is probably a better place to start debugging.

I think I managed to isolate the first occurence of the segmentation fault to d763939.

adament avatar Dec 26 '20 13:12 adament

https://github.com/rpy2/rpy2/blob/bc91910994af7028d777c5854eed9918c53db2e0/rpy2/rinterface_lib/R_API.h#L378-L380

on the version of R 4.0 I am using this should be

extern char *getDLLVersion(void);
extern char *getRUser(void);
extern char *get_R_HOME(void);

note the last 2 lines are not function pointers.

adament avatar Dec 26 '20 15:12 adament

However it looks like the current CI also segfaults on Windows https://github.com/rpy2/rpy2/runs/1606566615 which is probably a better place to start debugging.

Yes, there is a segfault. The CI is here in case there is a contribution from the Windows community. This provides a target for what should ideally work in the end. Otherwise the source for the segfault might with the rpy2, or the way the environment for CI is configured.

I don't have the bandwidth to work much on the Windows version myself.

lgautier avatar Dec 26 '20 22:12 lgautier