>From python-2.7.2 source file: `PyImport_GetModuleDict' call `PyThreadState_GET()->interp' PyThreadState_GET() is a macro in pystate.h: #ifdef Py_DEBUG #define PyThreadState_GET() PyThreadState_Get() #else #define PyThreadState_GET() (_PyThreadState_Current) #endif the PyThreadState_Get() function: PyThreadState * PyThreadState_Get(void) { if (_PyThreadState_Current == NULL) Py_FatalError("PyThreadState_Get: no current thread"); return _PyThreadState_Current; } Probably _PyThreadState_Current is NULL tito On Wed, Nov 23, 2011 at 08:02:49PM -0000, jpff@cs.bath.ac.uk wrote: > > > > john: here is a csd which seg faults (for me): > > http://pastebin.com/4gDwNXVU > > > Thanks; I am getting a segfault in PyImport_GetModuleDict () > > whatever that it. What should it do? > create_instrument: instr num 1 > create_opcode: Found node for opcode bamboo > create_opcode: Found node for opcode outs > Instr 0 check on opcode==.r > Instr 0 check on opcode==.r > Instr 0 check on opcode==.r > Instr 0 check on opcode=pyruni > Elapsed time at end of orchestra compile: real: 115.312s, CPU: 0.090s > sorting score ... > ... done > Elapsed time at end of score sort: real: 115.314s, CPU: 0.090s > Csound version 5.14 beta (double samples) Nov 21 2011 > 0dBFS level = 32768.0 > > Program received signal SIGSEGV, Segmentation fault. > 0x00007fffed0fb85b in PyImport_GetModuleDict () > from /usr/lib64/libpython2.7.so.1.0 > (gdb) where > #0 0x00007fffed0fb85b in PyImport_GetModuleDict () > from /usr/lib64/libpython2.7.so.1.0 > #1 0x00007fffed12f24c in PyImport_AddModule () > from /usr/lib64/libpython2.7.so.1.0 > #2 0x00007fffed3e3c84 in run_statement_in_given_context ( > csound=, p=0x7fffe937afc8) > at Opcodes/py/pythonopcodes.c:71 > #3 pyruni_irate (csound=, p=0x7fffe937afc8) > at Opcodes/py/pyx.auto.c:134 > #4 0x0000000000435761 in init0 (csound=0x7ffff7efb0a0) at Engine/insert.c:55 > #5 0x0000000000442e5b in oload (p=) > at Engine/otran.c:1451 > #6 0x000000000043c142 in musmon (csound=0x7ffff7efb0a0) at > Engine/musmon.c:210 > #7 0x0000000000414956 in csoundCompile (csound=0x7ffff7efb0a0, > argc=, argv=0x7fffffffe088) at Top/main.c:453 > #8 0x000000000040a769 in main (argc=3, argv=0x7fffffffe088) > at frontends/csound/csound_main.c:136 > > > > > Send bugs reports to the Sourceforge bug tracker > https://sourceforge.net/tracker/?group_id=81968&atid=564599 > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"