Hello
I have been working on getting pymultinest to run. I have compiled multinest version 2.7 together with the current iteration of pymultinest. I have managed to get the code to compile and I can import pymultinest, but running the demo generates a segfault:
(gdb) backtrace
#0 0x00007ffff7ff8fc1 in ?? ()
#1 0x00007ffff6597946 in _LogLike (Cube=0x17396d0, ndim=0x7ffff65967c4, npars=0x7ffff6596990, lnew=
0x7fffffffcc70) at cnest.c:19
#2 0x00007ffff638efcd in gen_initial_live (p=..., phyp=..., l=..., loglike=
0x7ffff659790c <_LogLike>, context=0) at nested.F90:383
#3 0x00007ffff638ff29 in nestsample (loglike=0x7ffff659790c <_LogLike>, context=0)
#4 0x00007ffff63913b9 in nestrun (nest_mmodal=.TRUE., nest_ceff=.FALSE., nest_nlive=1000,
nest_tol=0.5, nest_ef=0.29999999999999999, nest_ndims=2, nest_totpar=2, nest_ncdims=2,
maxclst=100, nest_updint=100, nest_ztol=0.5, nest_root=..., seed=-1, nest_pwrap=...,
nest_fb=.TRUE., nest_resume=.TRUE., loglike=0x7ffff659790c <_LogLike>, context=0,
_nest_root=-10924) at nested.F90:195
#5 0x00007ffff6597b66 in run (mmodal=1, ceff=0, nlive=1000, tol=0.5, efr=0.29999999999999999,
ndims=2, nPar=2, nClsPar=2, maxModes=100, updInt=100, Ztol=0.5, rootstr=
0x7ffff7f0dbec "chains/1-", seed=-1, pWrap=0x19787f0, fb=1, resume=1, context=0) at cnest.c:48
#6 0x00007ffff67b102c in ffi_call_unix64 ()
at /build/buildd/python2.6-2.6.5/Modules/_ctypes/libffi/src/x86/unix64.S:75
#7 0x00007ffff67b0713 in ffi_call (cif=0x7fffffffda60, fn=,
rvalue=<value optimized out>, avalue=<value optimized out>)
at /build/buildd/python2.6-2.6.5/Modules/_ctypes/libffi/src/x86/ffi64.c:430
#8 0x00007ffff67ab134 in _call_function_pointer (pProc=,
argtuple=<value optimized out>, flags=<value optimized out>, argtypes=<value optimized out>,
restype=<value optimized out>, checker=<value optimized out>)
at /build/buildd/python2.6-2.6.5/Modules/_ctypes/callproc.c:816
#9 _CallProc (pProc=, argtuple=,
I get an identical error with Sergey Kopsovs code when running it with multinest 2.14. I use Python 2.6.5, and gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5). Any hints to with combinations of linux, python and compilers that do work.
Best regards, Kennet Harpsøe