-
Notifications
You must be signed in to change notification settings - Fork 26
Description
A user reported a seg fault at the end of MCMC:
"""
I am having an "caught segfault" error on the execution of the MCMC. After a few hours of the execution of the first chain the following error pops up.
*** caught segfault ***
address 0x7fcfa3bc8240, cause 'memory not mapped'
Traceback:
1: as.matrix.CmodelValues(mcmc$mvSamples)
2: as.matrix(mcmc$mvSamples)
3: runMCMC(cMy.MCMC, niter = 120000, nburnin = 80000, nchains = 3, summary = TRUE)
An irrecoverable exception occurred. R is aborting now ...
/appl/opt/csc-cli-utils/bin/singularity_wrapper: line 42: 1711121 Segmentation fault apptainer --silent exec $SING_FLAGS
"""
I have reproduced this with the user's code (side note: it doesn't seem to be related to using Singularity). However it doesn't occur with shorter runs, and the full run (120k iterations, 80k burnin) takes something like 1.5 days. So I am still trying to track it down. When browsing in as.matrix.CmodelValues, it occurs the first time that fastMatrixInsert is inserting a single column, though I don't know if that is related to the problem.
This is of course heavily-used code, so quite curious. At the moment I'm trying to see if there is anything odd about the actual values being inserted in that single column.