[SciPy-user] odr thread safe?

Christian ckkart@hoc....
Tue Mar 20 22:15:12 CDT 2007


Hi,
I noticed that I cannot run odr more than once at a time using python threads.
Is that true? Debugging yields:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1294730336 (LWP 9312)]
0xb6fe0934 in fcn_callback (n=0xb2d3e9ec, m=0xb2d3e9e8, np=0xb2d3e9e4,
nq=0xb2d3e9e0,
    ldn=0xb2d3e9ec, ldm=0xb2d3e9e8, ldnp=0xb2d3e9e4, beta=0x90e0350,
xplusd=0xb19b4e58,
    ifixb=0x90e6580, ifixx=0x90e65d8, ldfix=0xb2d3e9c4, ideval=0xb701a098,
f=0xb19d76e8,
    fjacb=0xb19d8ec0, fjacd=0xb19b2008, istop=0xb2d3e288) at
./peak_o_mat/odr/__odrpack.c:70
70        Py_INCREF(odr_global.pyBeta);

Can someone advise me how to change the wrapper to be thread safe?

Christian



More information about the SciPy-user mailing list