Conditions
```
cd ~/src/codeplex/rdotnet/TestApps/MeasureRuntime/bin/Debug
./MeasureRuntime.exe
```
works, however
```
./MeasureRuntime.exe 1000 24 ~/tmp/rdotnetruntimes.csv
```
does not. Gets the followins crash
```
*** Error in `/usr/bin/cli': double free or corruption (fasttop): 0x00000000028e6b40 ***
Stacktrace:
```
The init of the R engine fails because of the following being added to the command line argument
```
argv.Add("--max-mem-size=" + parameter.MaxMemorySize);
```
Comments: Removed the use of the CMD line argument max-mem-size on Unix. This solves the issue described. It is worth noting the following behavior however; if I use: ``` ./MeasureRuntime.exe 1000 26 ~/tmp/rdotnetruntimes.csv ``` Then I get in trought for large vectors. Note that the exact segfault message may vary. ``` Error: vector memory exhausted (limit reached?) In addition: Warning message: 'memory.limit()' is Windows-specific *** caught segfault *** address 0x10, cause 'memory not mapped' ``` However, increasing to 6000 MB does work. So passing the StartupParameter.MaxMemorySize directly to the C layer does seem to have an effect. ``` ./MeasureRuntime.exe 6000 26 ~/tmp/rdotnetruntimes.csv ```
```
cd ~/src/codeplex/rdotnet/TestApps/MeasureRuntime/bin/Debug
./MeasureRuntime.exe
```
works, however
```
./MeasureRuntime.exe 1000 24 ~/tmp/rdotnetruntimes.csv
```
does not. Gets the followins crash
```
*** Error in `/usr/bin/cli': double free or corruption (fasttop): 0x00000000028e6b40 ***
Stacktrace:
```
The init of the R engine fails because of the following being added to the command line argument
```
argv.Add("--max-mem-size=" + parameter.MaxMemorySize);
```
Comments: Removed the use of the CMD line argument max-mem-size on Unix. This solves the issue described. It is worth noting the following behavior however; if I use: ``` ./MeasureRuntime.exe 1000 26 ~/tmp/rdotnetruntimes.csv ``` Then I get in trought for large vectors. Note that the exact segfault message may vary. ``` Error: vector memory exhausted (limit reached?) In addition: Warning message: 'memory.limit()' is Windows-specific *** caught segfault *** address 0x10, cause 'memory not mapped' ``` However, increasing to 6000 MB does work. So passing the StartupParameter.MaxMemorySize directly to the C layer does seem to have an effect. ``` ./MeasureRuntime.exe 6000 26 ~/tmp/rdotnetruntimes.csv ```