| yes adding pyinit did it, it does no crash anymore.
Victor
On 1 Dec 2011, at 15:41, Andres Cabrera wrote:
> Hi,
>
> Does adding pyinit before pyrun solve the problem?
>
> Cheers,
> Andres
>
> On Thu, Dec 1, 2011 at 7:35 AM, hackbarth wrote:
>> hello,
>>
>> per victor, i'm moving my message regarding pyruni segfaults here.
>>
>> here is the offending csd:
>> http://pastebin.com/4gDwNXVU
>>
>> thanks!
>> --ben
>>
>> On Wed, Nov 30, 2011 at 1:16 AM, Victor Lazzarini
>> wrote:
>>> OK, could you do two things for me? One: post the offending CSD; Two: move
>>> this discussion to the developer's list.
>>>
>>> On 30 Nov 2011, at 07:19, ben hackbarth wrote:
>>>
>>>> bump in hopes of finding a solution. i myself cannot offer any
>>>> insight into the python error, unfortunately.
>>>>
>>>> might there be a more elegant way of feeding python code into the
>>>> orchestra than using pyrun?
>>>>
>>>> thanks in advance,
>>>> -- ben
>>>>
>>>>
>>>>
>>>> On Wed, Nov 23, 2011 at 1:53 PM, Tito Latini
>>>> wrote:
>>>>> 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"
>>>>>
>>>>>
>>>>
>>>>
>>>> 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"
>>>>
>>>
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>>
>>>
>>>
>>>
>>>
>>> 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"
>>>
>>
>>
>>
>> --
>> View this message in context: http://csound.1045644.n5.nabble.com/Re-Csnd-pyruni-seg-fault-tp5037830p5037830.html
>> Sent from the Csound - Dev mailing list archive at Nabble.com.
>>
>> ------------------------------------------------------------------------------
>> All the data continuously generated in your IT infrastructure
>> contains a definitive record of customers, application performance,
>> security threats, fraudulent activity, and more. Splunk takes this
>> data and makes sense of it. IT sense. And common sense.
>> http://p.sf.net/sfu/splunk-novd2d
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, application performance,
> security threats, fraudulent activity, and more. Splunk takes this
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |