stefano-meschiari / Systemic2

Systemic is a C library for modeling exoplanetary radial velocities, with an R binding and a full GUI IDE.
http://www.stefanom.org/?systemic
GNU General Public License v3.0
54 stars 17 forks source link

Loading .sys file causes R to crash #24

Open ajtribick opened 7 years ago

ajtribick commented 7 years ago

Kubuntu 16.10 (amd64), R 3.3.1, OpenJDK 1.8.0_121, Systemic 2.2.0

Attempting to load a .sys file (11Com.sys) causes R to die with the following message:

=> kload.system(k, '...path.../linux/Systemic/datafiles/11Com.sys')

 *** caught segfault ***
address 0xffffffff9f096d20, cause 'memory not mapped'

Traceback:
 1: .dyncall.default(<pointer: 0x7fc8b857c110>, "pZ)B", ...)
 2: K_addDataFromSystem(k$h, datafile)
 3: kload.system(k, '...path.../linux/Systemic/datafiles/11Com.sys")
An irrecoverable exception occurred. R is aborting now ...

I'm sorry, username. I'm afraid I can't do that... :(

It appears the Console (or its R kernel) has crashed.
ajtribick commented 7 years ago

Managed to resolve the issue: the compiler standard should be "-std=gnu99" not "-std=c99" (update OPTIMIZED_FLAGS and DEBUG_FLAGS in Makefile.linux)