CosmoMC error Program received signal SIGSEGV: Segmentation fault - invalid memory reference

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Zhu-Yao Wang
Posts: 15
Joined: September 16 2020
Affiliation: Northeastern University

CosmoMC error Program received signal SIGSEGV: Segmentation fault - invalid memory reference

Post by Zhu-Yao Wang » September 23 2020

Hi all,
I met an error when running CosmoMC:

Code: Select all

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:

Could not print backtrace: mmap, errno: 12

Could not print backtrace: mmap, errno: 12

Could not print backtrace: mmap, errno: 12
#0  0x7ff65f4bb2ed in ???
#1  0x7ff65f4ba503 in ???
#2  0x7ff65e8eef1f in ???
#3  0x7ff65e944083 in ???
#4  0x7ff65e944fef in ???
#5  0x7ff65e9472ec in ???
#6  0x7ff66119b79a in ???
#7  0x7ff66119d594 in ???
#8  0x7ff6611a807a in ???
#9  0x7ff66108bf0a in ???
#10  0x7ff661076e05 in ???
#11  0x7ff66110dfb4 in ???
#12  0x7ff66110bf0f in ???
#13  0x7ff661054638 in ???
#14  0x7ff66105561a in ???
#15  0x7ff66105812e in ???
#16  0x7ff66106a260 in ???
#17  0x7ff661112a9d in ???
#18  0x7ff66101416e in ???
#19  0x7ff65e8d1b96 in ???
#20  0x7ff6610141c9 in ???
#21  0xffffffffffffffff in ???
--------------------------------------------------------------------------
mpirun noticed that process rank 1 with PID 0 on node MSI exited on signal 11 (Segmentation fault).
--------------------------------------------------------------------------
Here is my code. It is based on test.ini and test_planck.ini.

Code: Select all

DEFAULT(batch3/plik_rd12_HM_v22_TT.ini)
#low-L temperature
DEFAULT(batch3/lowl.ini)
#low-L EE polarization
DEFAULT(batch3/simall_EE.ini)

#DEFAULT(batch2/lowTEB.ini)
#BAO compilation
DEFAULT(batch3/BAO.ini)

#Pantheon SN
#DEFAULT(batch3/Pantheon18.ini)


#general settings
DEFAULT(batch3/common.ini)

#e.g. to vary r in addition to standard 6:
#(for r>0 also need compute_tensors=T)
#compute_tensors = T
#param[r] = 0.03 0 2 0.04 0.04

#high for new runs, to start learning new proposal matrix quickly
MPI_Max_R_ProposeUpdate = 30

propose_matrix= planck_covmats/base_TT_lensing_lowE_lowl_plikHM.covmat

#Folder where files (chains, checkpoints, etc.) are stored
root_dir = chains/

#Root name for files produced
file_root=mytest
#action= 0 runs chains, 1 importance samples, 2 minimizes
#use action=4 just to quickly test likelihoods
action = 0
#Don't need to set this if OMP_NUM_THREADS set appropriately
num_threads = 0

#if you want to get theory cl for test point
#test_output_root = output_cl_root

start_at_bestfit =F
feedback=1
use_fast_slow = T

#turn on checkpoint for real runs where you want to be able to continue them
checkpoint = T

#sampling_method=7 is a new fast-slow scheme good for Planck
sampling_method = 7
dragging_steps  = 3
propose_scale = 2

#Set >0 to make data files for importance sampling
indep_sample=10

#these are just small speedups for testing
get_sigma8=T
Thanks for your help!

Zhu-Yao Wang
Posts: 15
Joined: September 16 2020
Affiliation: Northeastern University

Re: CosmoMC error Program received signal SIGSEGV: Segmentation fault - invalid memory reference

Post by Zhu-Yao Wang » September 26 2020

In case others meet the same error, it's because I'm using WSL instead of "real" Ubuntu.

Ira *Wolfson
Posts: 69
Joined: January 24 2013
Affiliation: MPA
Contact:

Re: CosmoMC error Program received signal SIGSEGV: Segmentation fault - invalid memory reference

Post by Ira *Wolfson » December 06 2020

so what might be a workaround provided I do not 'Own' the OS?
Any idea?

Post Reply