Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] [Csnd] pyruni seg fault

Date2011-12-01 07:35
Fromhackbarth
SubjectRe: [Cs-dev] [Csnd] pyruni seg fault
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

Date2011-12-01 10:28
FromVictor Lazzarini
SubjectRe: [Cs-dev] [Csnd] pyruni seg fault
Thanks, I'll try to have a look at this today.
On 1 Dec 2011, at 07:35, 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

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

Date2011-12-01 15:41
FromAndres Cabrera
SubjectRe: [Cs-dev] [Csnd] pyruni seg fault
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://

Date2011-12-01 15:55
FromVictor Lazzarini
SubjectRe: [Cs-dev] [Csnd] pyruni seg fault
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

Date2011-12-01 19:39
Fromhackbarth
SubjectRe: [Cs-dev] [Csnd] pyruni seg fault
good catch Andres.

unfortunately, i get the same segfault with pyinit.

corrected csd: http://pastebin.com/nkGDaf9f

printout:
MacBookPro-0016CB974ADE-2:Desktop ben$ csound 4gDwNXVU.csd 
time resolution is 1000.000 ns
0dBFS level = 32768.0
Csound version 5.14 beta (float samples) Nov  4 2011
libsndfile-1.0.21
UnifiedCSD:  4gDwNXVU.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
orchname: 
/var/folders/1g/fh_w7btx15xd5ym1vsyfxtph0000gn/T//csound-gehrYV.orc
scorename:
/var/folders/1g/fh_w7btx15xd5ym1vsyfxtph0000gn/T//csound-y9agoq.sco
orch compiler:
433 (434) lines read
internal error: strsav: string length > STRSPACE
Csound tidy up: Segmentation fault
Removing temporary file
/var/folders/1g/fh_w7btx15xd5ym1vsyfxtph0000gn/T//csound-y9agoq.sco ...
Removing temporary file
/var/folders/1g/fh_w7btx15xd5ym1vsyfxtph0000gn/T//csound-gehrYV.orc ...

--
View this message in context: http://csound.1045644.n5.nabble.com/Re-Csnd-pyruni-seg-fault-tp5037830p5039719.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

Date2011-12-01 22:15
FromVictor.Lazzarini@nuim.ie
SubjectRe: [Cs-dev] [Csnd] pyruni seg fault
AttachmentsNone  None  None  None  

Date2011-12-02 01:53
Fromhackbarth
SubjectRe: [Cs-dev] [Csnd] pyruni seg fault
hi victor,

i am running osx 10.7 with git sources from Nov. 4th (i compiled against
python 2.6).  i can't imagine that something has changed in the source since
then, but i can try recompiling with the latest sources.

just a datapoint: if i remove around half of the lines in the python code,
the segfault goes away.  this leads me to believe that it is indeed an error
related to STRSPACE allocation.  

thanks
--ben

--
View this message in context: http://csound.1045644.n5.nabble.com/Re-Csnd-pyruni-seg-fault-tp5037830p5040416.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

Date2011-12-02 09:56
FromVictor Lazzarini
SubjectRe: [Cs-dev] [Csnd] pyruni seg fault
The sources have changed substantially this month. Here's my terminal output just to show it works:
=====================
mu-lap-2h2-1:csound5-double victor$ ./csound ~/Desktop/pyops.csd -d --old-parser
time resolution is 1000.000 ns
CoreMIDI real time MIDI plugin for Csound
PortMIDI real time MIDI plugin for Csound
PortAudio real-time audio module for Csound
virtual_keyboard real time MIDI plugin for Csound
0dBFS level = 32768.0
Csound version 5.14 beta (double samples) Nov 30 2011
libsndfile-1.0.21
UnifiedCSD:  /Users/victor/Desktop/pyops.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
graph init 
rtaudio: PortAudio module enabled ... using callback interface
rtmidi: PortMIDI module enabled
orch compiler:
435 (436) lines read
internal message: strsav: buffer length now 13616
	instr	1	
Elapsed time at end of orchestra compile: real: 0.005s, CPU: 0.004s
sorting score ...
	... done
Elapsed time at end of score sort: real: 0.005s, CPU: 0.004s
Csound version 5.14 beta (double samples) Nov 30 2011
displays suppressed
0dBFS level = 32768.0
orch now loaded
audio buffered in 1024 sample-frame blocks
writing 4096-byte blks of shorts to /Users/victor/audio/bamboo.wav (WAV)
SECTION 1:
new alloc for instr 1:
B  0.000 ..  1.000 T  1.000 TT  1.000 M:  15874.7  15874.7
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.		   overall amps:  15874.7  15874.7
	   overall samples out of range:        0        0
0 errors in performance
Elapsed time at end of performance: real: 0.084s, CPU: 0.056s
2048 4096 sample blks of shorts written to /Users/victor/audio/bamboo.wav (WAV)

====================================
On 2 Dec 2011, at 01:53, hackbarth wrote:

> hi victor,
> 
> i am running osx 10.7 with git sources from Nov. 4th (i compiled against
> python 2.6).  i can't imagine that something has changed in the source since
> then, but i can try recompiling with the latest sources.
> 
> just a datapoint: if i remove around half of the lines in the python code,
> the segfault goes away.  this leads me to believe that it is indeed an error
> related to STRSPACE allocation.  
> 
> thanks
> --ben
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Re-Csnd-pyruni-seg-fault-tp5037830p5040416.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

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

Date2011-12-02 11:37
Fromjohn ffitch
SubjectRe: [Cs-dev] [Csnd] pyruni seg fault
> internal error: strsav: string length > STRSPACE

You have exhausted internal space for strings.  this is an area that
has been changed in the next version
==John ffitch

------------------------------------------------------------------------------
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

Date2011-12-17 04:31
Fromhackbarth
SubjectRe: [Cs-dev] [Csnd] pyruni seg fault
thank you john.  it wasn't clear to me that you had settled on a solution and
committed changes.  i'll grab the latest source and let you know if the
problem persists.

thanks,
--ben

--
View this message in context: http://csound.1045644.n5.nabble.com/Re-Csnd-pyruni-seg-fault-tp5037830p5082072.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net