Dear Mat
As said here all you need to reproduce the issue, I tested both nvfortran 25.1-0 and 23.5-0:
$ git clone git@github.com:lstorchi/CAMB.git
$ cd CAMB/
$ git checkout issuet2
$ git clone git@github.com:lstorchi/forutils.git
$ cd forutils/
$ git checkout gpuport
$ cd …/fortran/
$ make
Then using the attached
param.txt (2.1 KB)
input file just run it (I renamed it as params.txt to upload it):
$ ./camb params.ini
Here the back tracking, it is basically returning a 0x0 address:
Program received signal SIGSEGV, Segmentation fault.
0x00000000004edc62 in mathutils::integrate_romberg (obj=…, fin=4.3552442222233553e-150, a=0, b=1, tol=3.6787944117144237e-05, maxit=<error reading variable: Cannot access memory at address 0x0>, minsteps=<error reading variable: Cannot access memory at address 0x0>, abs_tol=<error reading variable: Cannot access memory at address 0x0>) at …/MathUtils.f90:47
47 gmax=h*(f(obj,a)+f(obj,b))
(gdb) bt
#0 0x00000000004edc62 in mathutils::integrate_romberg (obj=…, fin=4.3552442222233553e-150, a=0, b=1,
tol=3.6787944117144237e-05, maxit=<error reading variable: Cannot access memory at address 0x0>,
minsteps=<error reading variable: Cannot access memory at address 0x0>,
abs_tol=<error reading variable: Cannot access memory at address 0x0>) at …/MathUtils.f90:47
#1 0x000000000043375c in results::cambdata_deltaphysicaltimegyr (this=…, a1=0, a2=1,
in_tol=<error reading variable: Cannot access memory at address 0x0>) at …/results.f90:1261
#2 0x00000000004425f2 in results::thermo_init (this=…, state=…, taumin=9.5238099563149024e-05)
at …/results.f90:2760
#3 0x00000000004da845 in cambmain::initvars (state=…) at …/cmbmain.f90:816
#4 0x00000000004d401e in cambmain::cmbmain () at …/cmbmain.f90:145
#5 0x000000000040a6bf in camb::camb_getresults (outdata=…, params=…,
error=<error reading variable: Cannot access memory at address 0x0>,
onlytransfer=<error reading variable: Cannot access memory at address 0x0>,
onlytimesources=<error reading variable: Cannot access memory at address 0x0>) at …/camb.f90:109
#6 0x000000000041d40d in camb::camb_runfromini (ini=…, inputfile=…, errmsg=…) at …/camb.f90:1065
#7 0x000000000042128d in camb::camb_commandlinerun (inputfile=…) at …/camb.f90:1158
#8 0x0000000000404ef2 in driver () at …/inidriver.f90:15
There is also another issue related to the definition of the “dtauda” function but we will discuss this after that one.
Thanks indeed