Csound Csound-dev Csound-tekno Search About

[Cs-dev] compile problem...

Date2013-04-08 19:01
FromRory Walsh
Subject[Cs-dev] compile problem...
I'm having recompiling with the API again. I get the following
backtrace when I try to recompile an instance of Csound:

0  0x000000000040f9c6  psignal@plt
1  0x00000000008db3f3  signal_handler
/home/rory/sourcecode/csound5/csound5/Top/csound.c  912
2  0x00007ffff5c764a0  
3  0x00007ffff5c76425  raise
4  0x00007ffff5c79b8b  abort
5  0x00007ffff5cb439e  ??
6  0x00007ffff5cbeb96  ??
7  0x000000000098c8ff  delete_local_namepool
/home/rory/sourcecode/csound5/csound5/Engine/csound_orc_compile.c
1726
8  0x000000000098adff  insprep
/home/rory/sourcecode/csound5/csound5/Engine/csound_orc_compile.c
1336
9  0x000000000098aa08  csound_orc_compile
/home/rory/sourcecode/csound5/csound5/Engine/csound_orc_compile.c
1274
10  0x000000000098f1d9  new_orc_parser
/home/rory/sourcecode/csound5/csound5/Engine/new_orc_parser.c  184
11  0x00000000008e133b  csoundCompile
/home/rory/sourcecode/csound5/csound5/Top/main.c  336
12  0x00000000004bd845  Csound::Compile  /usr/include/csound/csound.hpp  147

The steps I take in recompiling are as follows:

csound->DeleteChannelList(csoundChanList);
csound->Reset();
csound->PreCompile();

csound->SetMessageCallback(CabbagePluginAudioProcessor::messageCallback);
csound->SetExternalMidiInOpenCallback(OpenMidiInputDevice);
csound->SetExternalMidiReadCallback(ReadMidiData);
csound->SetExternalMidiOutOpenCallback(OpenMidiOutputDevice);
csound->SetExternalMidiWriteCallback(WriteMidiData);

CSspout = nullptr;
CSspin = nullptr;
csCompileResult =
csound->Compile(const_cast(csdFile.getFullPathName().toUTF8().getAddress()));

Anyone have any ideas? I'm finding it hard to debug.

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-09 00:40
FromAndres Cabrera
SubjectRe: [Cs-dev] compile problem...
Hi,

Are you sure csoundChanList is allocated?

csound->DeleteChannelList(csoundChanList);

should only be called after a GetChannelList (or whatever it called) is called.

Cheers,
Andrés

On Mon, Apr 8, 2013 at 11:01 AM, Rory Walsh  wrote:
> I'm having recompiling with the API again. I get the following
> backtrace when I try to recompile an instance of Csound:
>
> 0  0x000000000040f9c6  psignal@plt
> 1  0x00000000008db3f3  signal_handler
> /home/rory/sourcecode/csound5/csound5/Top/csound.c  912
> 2  0x00007ffff5c764a0  
> 3  0x00007ffff5c76425  raise
> 4  0x00007ffff5c79b8b  abort
> 5  0x00007ffff5cb439e  ??
> 6  0x00007ffff5cbeb96  ??
> 7  0x000000000098c8ff  delete_local_namepool
> /home/rory/sourcecode/csound5/csound5/Engine/csound_orc_compile.c
> 1726
> 8  0x000000000098adff  insprep
> /home/rory/sourcecode/csound5/csound5/Engine/csound_orc_compile.c
> 1336
> 9  0x000000000098aa08  csound_orc_compile
> /home/rory/sourcecode/csound5/csound5/Engine/csound_orc_compile.c
> 1274
> 10  0x000000000098f1d9  new_orc_parser
> /home/rory/sourcecode/csound5/csound5/Engine/new_orc_parser.c  184
> 11  0x00000000008e133b  csoundCompile
> /home/rory/sourcecode/csound5/csound5/Top/main.c  336
> 12  0x00000000004bd845  Csound::Compile  /usr/include/csound/csound.hpp  147
>
> The steps I take in recompiling are as follows:
>
> csound->DeleteChannelList(csoundChanList);
> csound->Reset();
> csound->PreCompile();
>
> csound->SetMessageCallback(CabbagePluginAudioProcessor::messageCallback);
> csound->SetExternalMidiInOpenCallback(OpenMidiInputDevice);
> csound->SetExternalMidiReadCallback(ReadMidiData);
> csound->SetExternalMidiOutOpenCallback(OpenMidiOutputDevice);
> csound->SetExternalMidiWriteCallback(WriteMidiData);
>
> CSspout = nullptr;
> CSspin = nullptr;
> csCompileResult =
> csound->Compile(const_cast(csdFile.getFullPathName().toUTF8().getAddress()));
>
> Anyone have any ideas? I'm finding it hard to debug.
>
> ------------------------------------------------------------------------------
> Minimize network downtime and maximize team effectiveness.
> Reduce network management and security costs.Learn how to hire
> the most talented Cisco Certified professionals. Visit the
> Employer Resources Portal
> http://www.cisco.com/web/learning/employer_resources/index.html
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net

Date2013-04-09 08:22
FromRory Walsh
SubjectRe: [Cs-dev] compile problem...
Yeah, that's definitely being called. The back trace says it's a
problem with the csoundReset method of csound.c, particularly the line
that calls the     tranRESET() function?

0  0x00007ffff5cbee08  ??
1  0x00007ffff5cbfb19  ??
2  0x0000000000892ac6  tranRESET
/home/rory/sourcecode/csound5/csound5/Engine/otran.c  101
3  0x00000000008def6f  csoundReset
/home/rory/sourcecode/csound5/csound5/Top/csound.c  2704
4  0x00000000004bdfb4  Csound::Reset  /usr/include/csound/csound.hpp  353
5  0x00000000004b597a  CabbagePluginAudioProcessor::reCompileCsound
/home/rory/sourcecode/CabbagePatcher/Source/Plugin/CabbagePluginProcessor.cpp
 320

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-09 09:37
FromVictor Lazzarini
SubjectRe: [Cs-dev] compile problem...
That is a different backtrace from the one you showed before.
On 9 Apr 2013, at 08:22, Rory Walsh wrote:

> Yeah, that's definitely being called. The back trace says it's a
> problem with the csoundReset method of csound.c, particularly the line
> that calls the     tranRESET() function?
> 
> 0  0x00007ffff5cbee08  ??
> 1  0x00007ffff5cbfb19  ??
> 2  0x0000000000892ac6  tranRESET
> /home/rory/sourcecode/csound5/csound5/Engine/otran.c  101
> 3  0x00000000008def6f  csoundReset
> /home/rory/sourcecode/csound5/csound5/Top/csound.c  2704
> 4  0x00000000004bdfb4  Csound::Reset  /usr/include/csound/csound.hpp  353
> 5  0x00000000004b597a  CabbagePluginAudioProcessor::reCompileCsound
> /home/rory/sourcecode/CabbagePatcher/Source/Plugin/CabbagePluginProcessor.cpp
> 320
> 
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> 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




------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-09 09:39
FromRory Walsh
SubjectRe: [Cs-dev] compile problem...
I know, hence my confusion at what's happening!


On 9 April 2013 09:37, Victor Lazzarini  wrote:
> That is a different backtrace from the one you showed before.
> On 9 Apr 2013, at 08:22, Rory Walsh wrote:
>
>> Yeah, that's definitely being called. The back trace says it's a
>> problem with the csoundReset method of csound.c, particularly the line
>> that calls the     tranRESET() function?
>>
>> 0  0x00007ffff5cbee08  ??
>> 1  0x00007ffff5cbfb19  ??
>> 2  0x0000000000892ac6  tranRESET
>> /home/rory/sourcecode/csound5/csound5/Engine/otran.c  101
>> 3  0x00000000008def6f  csoundReset
>> /home/rory/sourcecode/csound5/csound5/Top/csound.c  2704
>> 4  0x00000000004bdfb4  Csound::Reset  /usr/include/csound/csound.hpp  353
>> 5  0x00000000004b597a  CabbagePluginAudioProcessor::reCompileCsound
>> /home/rory/sourcecode/CabbagePatcher/Source/Plugin/CabbagePluginProcessor.cpp
>> 320
>>
>> ------------------------------------------------------------------------------
>> Precog is a next-generation analytics platform capable of advanced
>> analytics on semi-structured data. The platform includes APIs for building
>> apps and a phenomenal toolset for data science. Developers can use
>> our toolset for easy data analysis & visualization. Get a free account!
>> http://www2.precog.com/precogplatform/slashdotnewsletter
>> _______________________________________________
>> 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
>
>
>
>
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-09 09:41
FromVictor Lazzarini
SubjectRe: [Cs-dev] compile problem...
What did you change in the code to cause this?
On 9 Apr 2013, at 09:39, Rory Walsh wrote:

> I know, hence my confusion at what's happening!
> 
> 
> On 9 April 2013 09:37, Victor Lazzarini  wrote:
>> That is a different backtrace from the one you showed before.
>> On 9 Apr 2013, at 08:22, Rory Walsh wrote:
>> 
>>> Yeah, that's definitely being called. The back trace says it's a
>>> problem with the csoundReset method of csound.c, particularly the line
>>> that calls the     tranRESET() function?
>>> 
>>> 0  0x00007ffff5cbee08  ??
>>> 1  0x00007ffff5cbfb19  ??
>>> 2  0x0000000000892ac6  tranRESET
>>> /home/rory/sourcecode/csound5/csound5/Engine/otran.c  101
>>> 3  0x00000000008def6f  csoundReset
>>> /home/rory/sourcecode/csound5/csound5/Top/csound.c  2704
>>> 4  0x00000000004bdfb4  Csound::Reset  /usr/include/csound/csound.hpp  353
>>> 5  0x00000000004b597a  CabbagePluginAudioProcessor::reCompileCsound
>>> /home/rory/sourcecode/CabbagePatcher/Source/Plugin/CabbagePluginProcessor.cpp
>>> 320
>>> 
>>> ------------------------------------------------------------------------------
>>> Precog is a next-generation analytics platform capable of advanced
>>> analytics on semi-structured data. The platform includes APIs for building
>>> apps and a phenomenal toolset for data science. Developers can use
>>> our toolset for easy data analysis & visualization. Get a free account!
>>> http://www2.precog.com/precogplatform/slashdotnewsletter
>>> _______________________________________________
>>> 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
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> Precog is a next-generation analytics platform capable of advanced
>> analytics on semi-structured data. The platform includes APIs for building
>> apps and a phenomenal toolset for data science. Developers can use
>> our toolset for easy data analysis & visualization. Get a free account!
>> http://www2.precog.com/precogplatform/slashdotnewsletter
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> 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




------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-09 09:46
FromRory Walsh
SubjectRe: [Cs-dev] compile problem...
I didn't change anything, I just went about recompiling a different
instrument. I'll have more time after lunch to dig further. I'll get
back to you then.



On 9 April 2013 09:41, Victor Lazzarini  wrote:
> What did you change in the code to cause this?
> On 9 Apr 2013, at 09:39, Rory Walsh wrote:
>
>> I know, hence my confusion at what's happening!
>>
>>
>> On 9 April 2013 09:37, Victor Lazzarini  wrote:
>>> That is a different backtrace from the one you showed before.
>>> On 9 Apr 2013, at 08:22, Rory Walsh wrote:
>>>
>>>> Yeah, that's definitely being called. The back trace says it's a
>>>> problem with the csoundReset method of csound.c, particularly the line
>>>> that calls the     tranRESET() function?
>>>>
>>>> 0  0x00007ffff5cbee08  ??
>>>> 1  0x00007ffff5cbfb19  ??
>>>> 2  0x0000000000892ac6  tranRESET
>>>> /home/rory/sourcecode/csound5/csound5/Engine/otran.c  101
>>>> 3  0x00000000008def6f  csoundReset
>>>> /home/rory/sourcecode/csound5/csound5/Top/csound.c  2704
>>>> 4  0x00000000004bdfb4  Csound::Reset  /usr/include/csound/csound.hpp  353
>>>> 5  0x00000000004b597a  CabbagePluginAudioProcessor::reCompileCsound
>>>> /home/rory/sourcecode/CabbagePatcher/Source/Plugin/CabbagePluginProcessor.cpp
>>>> 320
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Precog is a next-generation analytics platform capable of advanced
>>>> analytics on semi-structured data. The platform includes APIs for building
>>>> apps and a phenomenal toolset for data science. Developers can use
>>>> our toolset for easy data analysis & visualization. Get a free account!
>>>> http://www2.precog.com/precogplatform/slashdotnewsletter
>>>> _______________________________________________
>>>> 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
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Precog is a next-generation analytics platform capable of advanced
>>> analytics on semi-structured data. The platform includes APIs for building
>>> apps and a phenomenal toolset for data science. Developers can use
>>> our toolset for easy data analysis & visualization. Get a free account!
>>> http://www2.precog.com/precogplatform/slashdotnewsletter
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> Precog is a next-generation analytics platform capable of advanced
>> analytics on semi-structured data. The platform includes APIs for building
>> apps and a phenomenal toolset for data science. Developers can use
>> our toolset for easy data analysis & visualization. Get a free account!
>> http://www2.precog.com/precogplatform/slashdotnewsletter
>> _______________________________________________
>> 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
>
>
>
>
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-09 10:26
FromVictor Lazzarini
SubjectRe: [Cs-dev] compile problem...
you can try using --old-parser to see if you get the same results. It looks like memory is being deleted twice.
On 9 Apr 2013, at 09:46, Rory Walsh wrote:

> I didn't change anything, I just went about recompiling a different
> instrument. I'll have more time after lunch to dig further. I'll get
> back to you then.
> 
> 
> 
> On 9 April 2013 09:41, Victor Lazzarini  wrote:
>> What did you change in the code to cause this?
>> On 9 Apr 2013, at 09:39, Rory Walsh wrote:
>> 
>>> I know, hence my confusion at what's happening!
>>> 
>>> 
>>> On 9 April 2013 09:37, Victor Lazzarini  wrote:
>>>> That is a different backtrace from the one you showed before.
>>>> On 9 Apr 2013, at 08:22, Rory Walsh wrote:
>>>> 
>>>>> Yeah, that's definitely being called. The back trace says it's a
>>>>> problem with the csoundReset method of csound.c, particularly the line
>>>>> that calls the     tranRESET() function?
>>>>> 
>>>>> 0  0x00007ffff5cbee08  ??
>>>>> 1  0x00007ffff5cbfb19  ??
>>>>> 2  0x0000000000892ac6  tranRESET
>>>>> /home/rory/sourcecode/csound5/csound5/Engine/otran.c  101
>>>>> 3  0x00000000008def6f  csoundReset
>>>>> /home/rory/sourcecode/csound5/csound5/Top/csound.c  2704
>>>>> 4  0x00000000004bdfb4  Csound::Reset  /usr/include/csound/csound.hpp  353
>>>>> 5  0x00000000004b597a  CabbagePluginAudioProcessor::reCompileCsound
>>>>> /home/rory/sourcecode/CabbagePatcher/Source/Plugin/CabbagePluginProcessor.cpp
>>>>> 320
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> Precog is a next-generation analytics platform capable of advanced
>>>>> analytics on semi-structured data. The platform includes APIs for building
>>>>> apps and a phenomenal toolset for data science. Developers can use
>>>>> our toolset for easy data analysis & visualization. Get a free account!
>>>>> http://www2.precog.com/precogplatform/slashdotnewsletter
>>>>> _______________________________________________
>>>>> 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
>>>> 
>>>> 
>>>> 
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> Precog is a next-generation analytics platform capable of advanced
>>>> analytics on semi-structured data. The platform includes APIs for building
>>>> apps and a phenomenal toolset for data science. Developers can use
>>>> our toolset for easy data analysis & visualization. Get a free account!
>>>> http://www2.precog.com/precogplatform/slashdotnewsletter
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>>> ------------------------------------------------------------------------------
>>> Precog is a next-generation analytics platform capable of advanced
>>> analytics on semi-structured data. The platform includes APIs for building
>>> apps and a phenomenal toolset for data science. Developers can use
>>> our toolset for easy data analysis & visualization. Get a free account!
>>> http://www2.precog.com/precogplatform/slashdotnewsletter
>>> _______________________________________________
>>> 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
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> Precog is a next-generation analytics platform capable of advanced
>> analytics on semi-structured data. The platform includes APIs for building
>> apps and a phenomenal toolset for data science. Developers can use
>> our toolset for easy data analysis & visualization. Get a free account!
>> http://www2.precog.com/precogplatform/slashdotnewsletter
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> 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




------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-09 10:59
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] compile problem...
Sorry to come to this late; which version?  I know we fixed some
double-free bugs at one time

==John ff

> you can try using --old-parser to see if you get the same results. It
> looks like memory is being deleted twice.
> On 9 Apr 2013, at 09:46, Rory Walsh wrote:
>
>> I didn't change anything, I just went about recompiling a different
>> instrument. I'll have more time after lunch to dig further. I'll get
>> back to you then.
>>
>>
>>
>> On 9 April 2013 09:41, Victor Lazzarini 
>> wrote:
>>> What did you change in the code to cause this?
>>> On 9 Apr 2013, at 09:39, Rory Walsh wrote:
>>>
>>>> I know, hence my confusion at what's happening!
>>>>
>>>>
>>>> On 9 April 2013 09:37, Victor Lazzarini 
>>>> wrote:
>>>>> That is a different backtrace from the one you showed before.
>>>>> On 9 Apr 2013, at 08:22, Rory Walsh wrote:
>>>>>
>>>>>> Yeah, that's definitely being called. The back trace says it's a
>>>>>> problem with the csoundReset method of csound.c, particularly the
>>>>>> line
>>>>>> that calls the     tranRESET() function?
>>>>>>
>>>>>> 0  0x00007ffff5cbee08  ??
>>>>>> 1  0x00007ffff5cbfb19  ??
>>>>>> 2  0x0000000000892ac6  tranRESET
>>>>>> /home/rory/sourcecode/csound5/csound5/Engine/otran.c  101
>>>>>> 3  0x00000000008def6f  csoundReset
>>>>>> /home/rory/sourcecode/csound5/csound5/Top/csound.c  2704
>>>>>> 4  0x00000000004bdfb4  Csound::Reset  /usr/include/csound/csound.hpp
>>>>>>  353
>>>>>> 5  0x00000000004b597a  CabbagePluginAudioProcessor::reCompileCsound
>>>>>> /home/rory/sourcecode/CabbagePatcher/Source/Plugin/CabbagePluginProcessor.cpp
>>>>>> 320
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> Precog is a next-generation analytics platform capable of advanced
>>>>>> analytics on semi-structured data. The platform includes APIs for
>>>>>> building
>>>>>> apps and a phenomenal toolset for data science. Developers can use
>>>>>> our toolset for easy data analysis & visualization. Get a free
>>>>>> account!
>>>>>> http://www2.precog.com/precogplatform/slashdotnewsletter
>>>>>> _______________________________________________
>>>>>> 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
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Precog is a next-generation analytics platform capable of advanced
>>>>> analytics on semi-structured data. The platform includes APIs for
>>>>> building
>>>>> apps and a phenomenal toolset for data science. Developers can use
>>>>> our toolset for easy data analysis & visualization. Get a free
>>>>> account!
>>>>> http://www2.precog.com/precogplatform/slashdotnewsletter
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Precog is a next-generation analytics platform capable of advanced
>>>> analytics on semi-structured data. The platform includes APIs for
>>>> building
>>>> apps and a phenomenal toolset for data science. Developers can use
>>>> our toolset for easy data analysis & visualization. Get a free
>>>> account!
>>>> http://www2.precog.com/precogplatform/slashdotnewsletter
>>>> _______________________________________________
>>>> 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
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Precog is a next-generation analytics platform capable of advanced
>>> analytics on semi-structured data. The platform includes APIs for
>>> building
>>> apps and a phenomenal toolset for data science. Developers can use
>>> our toolset for easy data analysis & visualization. Get a free account!
>>> http://www2.precog.com/precogplatform/slashdotnewsletter
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> Precog is a next-generation analytics platform capable of advanced
>> analytics on semi-structured data. The platform includes APIs for
>> building
>> apps and a phenomenal toolset for data science. Developers can use
>> our toolset for easy data analysis & visualization. Get a free account!
>> http://www2.precog.com/precogplatform/slashdotnewsletter
>> _______________________________________________
>> 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
>
>
>
>
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>



------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-09 11:05
FromRory Walsh
SubjectRe: [Cs-dev] compile problem...
Ah, could be that I need to update my source?

Csound 5.19.02 doubles, Linux.

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-09 11:06
FromVictor Lazzarini
SubjectRe: [Cs-dev] compile problem...
This is csound5. I am thinking whether it's old parser code (tranRESET) being called when using the new parser, but without a test program, it's only
a guess. I've pushed a fix for this, just in case.
On 9 Apr 2013, at 10:59, jpff@cs.bath.ac.uk wrote:

> Sorry to come to this late; which version?  I know we fixed some
> double-free bugs at one time
> 
> ==John ff
> 
>> you can try using --old-parser to see if you get the same results. It
>> looks like memory is being deleted twice.
>> On 9 Apr 2013, at 09:46, Rory Walsh wrote:
>> 
>>> I didn't change anything, I just went about recompiling a different
>>> instrument. I'll have more time after lunch to dig further. I'll get
>>> back to you then.
>>> 
>>> 
>>> 
>>> On 9 April 2013 09:41, Victor Lazzarini 
>>> wrote:
>>>> What did you change in the code to cause this?
>>>> On 9 Apr 2013, at 09:39, Rory Walsh wrote:
>>>> 
>>>>> I know, hence my confusion at what's happening!
>>>>> 
>>>>> 
>>>>> On 9 April 2013 09:37, Victor Lazzarini 
>>>>> wrote:
>>>>>> That is a different backtrace from the one you showed before.
>>>>>> On 9 Apr 2013, at 08:22, Rory Walsh wrote:
>>>>>> 
>>>>>>> Yeah, that's definitely being called. The back trace says it's a
>>>>>>> problem with the csoundReset method of csound.c, particularly the
>>>>>>> line
>>>>>>> that calls the     tranRESET() function?
>>>>>>> 
>>>>>>> 0  0x00007ffff5cbee08  ??
>>>>>>> 1  0x00007ffff5cbfb19  ??
>>>>>>> 2  0x0000000000892ac6  tranRESET
>>>>>>> /home/rory/sourcecode/csound5/csound5/Engine/otran.c  101
>>>>>>> 3  0x00000000008def6f  csoundReset
>>>>>>> /home/rory/sourcecode/csound5/csound5/Top/csound.c  2704
>>>>>>> 4  0x00000000004bdfb4  Csound::Reset  /usr/include/csound/csound.hpp
>>>>>>> 353
>>>>>>> 5  0x00000000004b597a  CabbagePluginAudioProcessor::reCompileCsound
>>>>>>> /home/rory/sourcecode/CabbagePatcher/Source/Plugin/CabbagePluginProcessor.cpp
>>>>>>> 320
>>>>>>> 
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> Precog is a next-generation analytics platform capable of advanced
>>>>>>> analytics on semi-structured data. The platform includes APIs for
>>>>>>> building
>>>>>>> apps and a phenomenal toolset for data science. Developers can use
>>>>>>> our toolset for easy data analysis & visualization. Get a free
>>>>>>> account!
>>>>>>> http://www2.precog.com/precogplatform/slashdotnewsletter
>>>>>>> _______________________________________________
>>>>>>> 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
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> ------------------------------------------------------------------------------
>>>>>> Precog is a next-generation analytics platform capable of advanced
>>>>>> analytics on semi-structured data. The platform includes APIs for
>>>>>> building
>>>>>> apps and a phenomenal toolset for data science. Developers can use
>>>>>> our toolset for easy data analysis & visualization. Get a free
>>>>>> account!
>>>>>> http://www2.precog.com/precogplatform/slashdotnewsletter
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> Precog is a next-generation analytics platform capable of advanced
>>>>> analytics on semi-structured data. The platform includes APIs for
>>>>> building
>>>>> apps and a phenomenal toolset for data science. Developers can use
>>>>> our toolset for easy data analysis & visualization. Get a free
>>>>> account!
>>>>> http://www2.precog.com/precogplatform/slashdotnewsletter
>>>>> _______________________________________________
>>>>> 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
>>>> 
>>>> 
>>>> 
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> Precog is a next-generation analytics platform capable of advanced
>>>> analytics on semi-structured data. The platform includes APIs for
>>>> building
>>>> apps and a phenomenal toolset for data science. Developers can use
>>>> our toolset for easy data analysis & visualization. Get a free account!
>>>> http://www2.precog.com/precogplatform/slashdotnewsletter
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>>> ------------------------------------------------------------------------------
>>> Precog is a next-generation analytics platform capable of advanced
>>> analytics on semi-structured data. The platform includes APIs for
>>> building
>>> apps and a phenomenal toolset for data science. Developers can use
>>> our toolset for easy data analysis & visualization. Get a free account!
>>> http://www2.precog.com/precogplatform/slashdotnewsletter
>>> _______________________________________________
>>> 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
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> Precog is a next-generation analytics platform capable of advanced
>> analytics on semi-structured data. The platform includes APIs for building
>> apps and a phenomenal toolset for data science. Developers can use
>> our toolset for easy data analysis & visualization. Get a free account!
>> http://www2.precog.com/precogplatform/slashdotnewsletter
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> 
>> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> 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




------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-09 11:11
FromVictor Lazzarini
SubjectRe: [Cs-dev] compile problem...
what you can do is try to get the latest GIT sources, build them and see if it makes any difference.
On 9 Apr 2013, at 11:05, Rory Walsh wrote:

> Ah, could be that I need to update my source?
> 
> Csound 5.19.02 doubles, Linux.
> 
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> 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




------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-09 11:17
FromRory Walsh
SubjectRe: [Cs-dev] compile problem...
Thanks Victor. I'll try these out later.


On 9 April 2013 11:11, Victor Lazzarini  wrote:
> what you can do is try to get the latest GIT sources, build them and see if it makes any difference.
> On 9 Apr 2013, at 11:05, Rory Walsh wrote:
>
>> Ah, could be that I need to update my source?
>>
>> Csound 5.19.02 doubles, Linux.
>>
>> ------------------------------------------------------------------------------
>> Precog is a next-generation analytics platform capable of advanced
>> analytics on semi-structured data. The platform includes APIs for building
>> apps and a phenomenal toolset for data science. Developers can use
>> our toolset for easy data analysis & visualization. Get a free account!
>> http://www2.precog.com/precogplatform/slashdotnewsletter
>> _______________________________________________
>> 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
>
>
>
>
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-09 17:23
FromRory Walsh
SubjectRe: [Cs-dev] compile problem...
I just tried that here Victor. When I close down my call Csound reset
I get a problem here at free((void*) pp);:

=====from csound.h=====
void memRESET(CSOUND *csound)
{
    memAllocBlock_t *pp, *nxtp;

    pp = (memAllocBlock_t*) MEMALLOC_DB;
    MEMALLOC_DB = NULL;
    while (pp != NULL) {
      nxtp = pp->nxt;
#ifdef MEMDEBUG
      pp->magic = 0;
#endif
      free((void*) pp);
      pp = nxtp;
    }
}

If I remove my call to csoundReset I get an error in buc.c at  free((void*) pp);

=====bus.c=====
static int delete_channel_db(CSOUND *csound, void *p)
{
    channelEntry_t  **db, *pp;
    int             i;

    (void) p;
    db = (channelEntry_t**) csound->chn_db;
    if (db == NULL) {
      return 0;
    }
    for (i = 0; i < 256; i++) {
      while (db[i] != NULL) {
        pp = db[i];
        db[i] = pp->nxt;
        if (pp->info != NULL)
          free((void*) pp->info);
        free((void*) pp);
      }
    }
    csound->chn_db = NULL;
    free((void*) db);
    return 0;
}

As Andres mentioned, I'm careful to make sure I always call
csoundListChannels(csound->GetCsound(), &csoundChanList); before I
call csoundDeleteChannelList()?

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-09 17:30
FromRory Walsh
SubjectRe: [Cs-dev] compile problem...
Some more digging. Seems that with --old-parser set I don't get that
segault on csoundReset(), but that only gets me as far as the bus.c
issue which I also mentioned above.

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-09 17:33
FromVictor Lazzarini
SubjectRe: [Cs-dev] compile problem...
What do you mean close down your call Csound reset?
In any case, calling csoundReset() is correct.

did you try using --old-parser?

Also if you can create a self-contained example, it would help us debug.
On 9 Apr 2013, at 17:23, Rory Walsh wrote:

> I just tried that here Victor. When I close down my call Csound reset
> I get a problem here at free((void*) pp);:
> 
> =====from csound.h=====
> void memRESET(CSOUND *csound)
> {
>   memAllocBlock_t *pp, *nxtp;
> 
>   pp = (memAllocBlock_t*) MEMALLOC_DB;
>   MEMALLOC_DB = NULL;
>   while (pp != NULL) {
>     nxtp = pp->nxt;
> #ifdef MEMDEBUG
>     pp->magic = 0;
> #endif
>     free((void*) pp);
>     pp = nxtp;
>   }
> }
> 
> If I remove my call to csoundReset I get an error in buc.c at  free((void*) pp);
> 
> =====bus.c=====
> static int delete_channel_db(CSOUND *csound, void *p)
> {
>   channelEntry_t  **db, *pp;
>   int             i;
> 
>   (void) p;
>   db = (channelEntry_t**) csound->chn_db;
>   if (db == NULL) {
>     return 0;
>   }
>   for (i = 0; i < 256; i++) {
>     while (db[i] != NULL) {
>       pp = db[i];
>       db[i] = pp->nxt;
>       if (pp->info != NULL)
>         free((void*) pp->info);
>       free((void*) pp);
>     }
>   }
>   csound->chn_db = NULL;
>   free((void*) db);
>   return 0;
> }
> 
> As Andres mentioned, I'm careful to make sure I always call
> csoundListChannels(csound->GetCsound(), &csoundChanList); before I
> call csoundDeleteChannelList()?
> 
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> 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




------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-09 17:38
FromRory Walsh
SubjectRe: [Cs-dev] compile problem...
Sorry, my typing has never been the greatest. I meant to say when I
shut down my frontend, and thus call csoundReset() I get the reported
problems.

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-09 17:39
FromRory Walsh
SubjectRe: [Cs-dev] compile problem...
But, yes, that problem going away when I use old-parser, but leaves me
with the other.

On 9 April 2013 17:38, Rory Walsh  wrote:
> Sorry, my typing has never been the greatest. I meant to say when I
> shut down my frontend, and thus call csoundReset() I get the reported
> problems.

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-09 17:43
FromVictor Lazzarini
SubjectRe: [Cs-dev] compile problem...
I am confused here because on each e-mail I seem to find a different report. What is the reported problem?

On 9 Apr 2013, at 17:39, Rory Walsh wrote:

> But, yes, that problem going away when I use old-parser, but leaves me
> with the other.
> 
> On 9 April 2013 17:38, Rory Walsh  wrote:
>> Sorry, my typing has never been the greatest. I meant to say when I
>> shut down my frontend, and thus call csoundReset() I get the reported
>> problems.
> 
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> 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




------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-09 17:47
FromRory Walsh
SubjectRe: [Cs-dev] compile problem...
With the latest git, each time I cal csoundRest() I get a problem here:

=====from csound.h=====
void memRESET(CSOUND *csound)
{
    memAllocBlock_t *pp, *nxtp;

    pp = (memAllocBlock_t*) MEMALLOC_DB;
    MEMALLOC_DB = NULL;
    while (pp != NULL) {
      nxtp = pp->nxt;
#ifdef MEMDEBUG
      pp->magic = 0;
#endif
      free((void*) pp);
      pp = nxtp;
    }
}

If I add -old-parser I don't get this error, but another one:

=====bus.c=====
static int delete_channel_db(CSOUND *csound, void *p)
{
    channelEntry_t  **db, *pp;
    int             i;

    (void) p;
    db = (channelEntry_t**) csound->chn_db;
    if (db == NULL) {
      return 0;
    }
    for (i = 0; i < 256; i++) {
      while (db[i] != NULL) {
        pp = db[i];
        db[i] = pp->nxt;
        if (pp->info != NULL)
          free((void*) pp->info);
        free((void*) pp);
      }
    }
    csound->chn_db = NULL;
    free((void*) db);
    return 0;
}

Both errors come from the free((void*) db); statements. Sorry for the
confusion I'm trying to debug it myself and I'm posted reports out at
the same time!

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-09 17:55
FromVictor Lazzarini
SubjectRe: [Cs-dev] compile problem...
OK, I reverted the changes, can you pull again and check with --old-parser ?

On 9 Apr 2013, at 17:47, Rory Walsh wrote:

> With the latest git, each time I cal csoundRest() I get a problem here:
> 
> =====from csound.h=====
> void memRESET(CSOUND *csound)
> {
>    memAllocBlock_t *pp, *nxtp;
> 
>    pp = (memAllocBlock_t*) MEMALLOC_DB;
>    MEMALLOC_DB = NULL;
>    while (pp != NULL) {
>      nxtp = pp->nxt;
> #ifdef MEMDEBUG
>      pp->magic = 0;
> #endif
>      free((void*) pp);
>      pp = nxtp;
>    }
> }
> 
> If I add -old-parser I don't get this error, but another one:
> 
> =====bus.c=====
> static int delete_channel_db(CSOUND *csound, void *p)
> {
>    channelEntry_t  **db, *pp;
>    int             i;
> 
>    (void) p;
>    db = (channelEntry_t**) csound->chn_db;
>    if (db == NULL) {
>      return 0;
>    }
>    for (i = 0; i < 256; i++) {
>      while (db[i] != NULL) {
>        pp = db[i];
>        db[i] = pp->nxt;
>        if (pp->info != NULL)
>          free((void*) pp->info);
>        free((void*) pp);
>      }
>    }
>    csound->chn_db = NULL;
>    free((void*) db);
>    return 0;
> }
> 
> Both errors come from the free((void*) db); statements. Sorry for the
> confusion I'm trying to debug it myself and I'm posted reports out at
> the same time!
> 
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> 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




------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-09 17:58
FromRory Walsh
SubjectRe: [Cs-dev] compile problem...
will do, but heading out the door now for a bit. Thanks. I'll keep you posted.


On 9 April 2013 17:55, Victor Lazzarini  wrote:
> OK, I reverted the changes, can you pull again and check with --old-parser ?
>
> On 9 Apr 2013, at 17:47, Rory Walsh wrote:
>
>> With the latest git, each time I cal csoundRest() I get a problem here:
>>
>> =====from csound.h=====
>> void memRESET(CSOUND *csound)
>> {
>>    memAllocBlock_t *pp, *nxtp;
>>
>>    pp = (memAllocBlock_t*) MEMALLOC_DB;
>>    MEMALLOC_DB = NULL;
>>    while (pp != NULL) {
>>      nxtp = pp->nxt;
>> #ifdef MEMDEBUG
>>      pp->magic = 0;
>> #endif
>>      free((void*) pp);
>>      pp = nxtp;
>>    }
>> }
>>
>> If I add -old-parser I don't get this error, but another one:
>>
>> =====bus.c=====
>> static int delete_channel_db(CSOUND *csound, void *p)
>> {
>>    channelEntry_t  **db, *pp;
>>    int             i;
>>
>>    (void) p;
>>    db = (channelEntry_t**) csound->chn_db;
>>    if (db == NULL) {
>>      return 0;
>>    }
>>    for (i = 0; i < 256; i++) {
>>      while (db[i] != NULL) {
>>        pp = db[i];
>>        db[i] = pp->nxt;
>>        if (pp->info != NULL)
>>          free((void*) pp->info);
>>        free((void*) pp);
>>      }
>>    }
>>    csound->chn_db = NULL;
>>    free((void*) db);
>>    return 0;
>> }
>>
>> Both errors come from the free((void*) db); statements. Sorry for the
>> confusion I'm trying to debug it myself and I'm posted reports out at
>> the same time!
>>
>> ------------------------------------------------------------------------------
>> Precog is a next-generation analytics platform capable of advanced
>> analytics on semi-structured data. The platform includes APIs for building
>> apps and a phenomenal toolset for data science. Developers can use
>> our toolset for easy data analysis & visualization. Get a free account!
>> http://www2.precog.com/precogplatform/slashdotnewsletter
>> _______________________________________________
>> 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
>
>
>
>
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-09 19:51
FromRory Walsh
SubjectRe: [Cs-dev] compile problem...
I'm totally lost on this one. If I completely delete the instance of
Csound and recreate it it works fine, but in my host, when I try to
simply re-instantiate Csound I get some issues. Could it be a
threading problem of some sort I wonder? I need to check that I'm not
destroying the nodes in my signal graph while Csound is still active,
although at worst this would only call all the Csound cleanup stuff.
With that current build I don't seem to have any more problems with
destroying Csound. But something else is up. Stack traces do show up
some pthreads stuff but they are on my side rather than Csounds.

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-09 20:18
FromRory Walsh
SubjectRe: [Cs-dev] compile problem...
As soon as I reinstantiate Csound I lose audio from the instrument, or
at least that particular node in my plugin graph. This is the first
sign something is up. If I then try to make any changes to my signal
graph the debugger fires a sigabrt. After I pass that I get taken to:

  static void signal_handler(int sig)
  {
#if defined(SIGPIPE)
      if (sig == (int) SIGPIPE) {
        psignal(sig, "Csound ignoring SIGPIPE");
        return;
      }
#endif
      psignal(sig, "Csound tidy up");
      if ((sig == (int) SIGINT || sig == (int) SIGTERM) && !exitNow_) {
        exitNow_ = -1;
        return;
      }
      exit(1);
  }

With the following trace. Sorry for all the mails, I'm just hoping you
might be able to point me in the right direction. It's quite hard
create a minimal example as there is so much going on.

0  0x000000000040ee66  ??
1  0x00000000008db9ff  signal_handler
/home/rory/sourcecode/csound5/csound5/Top/csound.c  912
2  0x00007ffff5c764a0  
3  0x00007ffff5c76425  raise
4  0x00007ffff5c79b8b  abort
5  0x00007ffff5c6f0ee  ??
6  0x00007ffff5c6f192  __assert_fail
7  0x00007ffff6c889f0  __pthread_mutex_lock_full
8  0x00000000005fdfcc  juce::CriticalSection::enter
/home/rory/sourcecode/CabbagePatcher/JuceLibraryCode/modules/juce_core/native/juce_posix_SharedCode.h
 52
9  0x0000000000450da5
juce::GenericScopedLock::GenericScopedLock
/home/rory/sourcecode/CabbagePatcher/JuceLibraryCode/modules/juce_core/threads/juce_ScopedLock.h
 69
10  0x000000000058abd1
juce::AudioProcessorGraph::buildRenderingSequence
/home/rory/sourcecode/CabbagePatcher/JuceLibraryCode/modules/juce_audio_processors/processors/juce_AudioProcessorGraph.cpp
 1236
11  0x000000000058adbc  juce::AudioProcessorGraph::handleAsyncUpdate
/home/rory/sourcecode/CabbagePatcher/JuceLibraryCode/modules/juce_audio_processors/processors/juce_AudioProcessorGraph.cpp
 1256
12  0x0000000000645cc1
juce::AsyncUpdater::AsyncUpdaterMessage::messageCallback
/home/rory/sourcecode/CabbagePatcher/JuceLibraryCode/modules/juce_events/broadcasters/juce_AsyncUpdater.cpp
 34
13  0x0000000000647692
juce::InternalMessageQueue::dispatchNextInternalMessage
/home/rory/sourcecode/CabbagePatcher/JuceLibraryCode/modules/juce_events/native/juce_linux_Messaging.cpp
 206
14  0x000000000064707d  juce::InternalMessageQueue::dispatchNextEvent
/home/rory/sourcecode/CabbagePatcher/JuceLibraryCode/modules/juce_events/native/juce_linux_Messaging.cpp
 96
15  0x00000000006456be
juce::MessageManager::dispatchNextMessageOnSystemQueue
/home/rory/sourcecode/CabbagePatcher/JuceLibraryCode/modules/juce_events/native/juce_linux_Messaging.cpp
 390
16  0x0000000000641c76  juce::MessageManager::runDispatchLoopUntil
/home/rory/sourcecode/CabbagePatcher/JuceLibraryCode/modules/juce_events/messages/juce_MessageManager.cpp
 119
17  0x0000000000641b93  juce::MessageManager::runDispatchLoop
/home/rory/sourcecode/CabbagePatcher/JuceLibraryCode/modules/juce_events/messages/juce_MessageManager.cpp
 99
18  0x00000000007aad67  juce::JUCEApplication::main
/home/rory/sourcecode/CabbagePatcher/JuceLibraryCode/modules/juce_gui_basics/application/juce_Application.cpp
 242
19  0x00000000007aaf90  juce::JUCEApplication::main
/home/rory/sourcecode/CabbagePatcher/JuceLibraryCode/modules/juce_gui_basics/application/juce_Application.cpp
 297
20  0x000000000046bd7b  main
/home/rory/sourcecode/CabbagePatcher/Source/HostStartup.cpp  107

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-09 20:21
FromRory Walsh
SubjectRe: [Cs-dev] compile problem...
I should say that Csound problem causes a SIGTRAP notification from
the debugger, in case that's of any use to anyone?!

On 9 April 2013 20:18, Rory Walsh  wrote:
> As soon as I reinstantiate Csound I lose audio from the instrument, or
> at least that particular node in my plugin graph. This is the first
> sign something is up. If I then try to make any changes to my signal
> graph the debugger fires a sigabrt. After I pass that I get taken to:
>
>   static void signal_handler(int sig)
>   {
> #if defined(SIGPIPE)
>       if (sig == (int) SIGPIPE) {
>         psignal(sig, "Csound ignoring SIGPIPE");
>         return;
>       }
> #endif
>       psignal(sig, "Csound tidy up");
>       if ((sig == (int) SIGINT || sig == (int) SIGTERM) && !exitNow_) {
>         exitNow_ = -1;
>         return;
>       }
>       exit(1);
>   }
>
> With the following trace. Sorry for all the mails, I'm just hoping you
> might be able to point me in the right direction. It's quite hard
> create a minimal example as there is so much going on.
>
> 0  0x000000000040ee66  ??
> 1  0x00000000008db9ff  signal_handler
> /home/rory/sourcecode/csound5/csound5/Top/csound.c  912
> 2  0x00007ffff5c764a0  
> 3  0x00007ffff5c76425  raise
> 4  0x00007ffff5c79b8b  abort
> 5  0x00007ffff5c6f0ee  ??
> 6  0x00007ffff5c6f192  __assert_fail
> 7  0x00007ffff6c889f0  __pthread_mutex_lock_full
> 8  0x00000000005fdfcc  juce::CriticalSection::enter
> /home/rory/sourcecode/CabbagePatcher/JuceLibraryCode/modules/juce_core/native/juce_posix_SharedCode.h
>  52
> 9  0x0000000000450da5
> juce::GenericScopedLock::GenericScopedLock
> /home/rory/sourcecode/CabbagePatcher/JuceLibraryCode/modules/juce_core/threads/juce_ScopedLock.h
>  69
> 10  0x000000000058abd1
> juce::AudioProcessorGraph::buildRenderingSequence
> /home/rory/sourcecode/CabbagePatcher/JuceLibraryCode/modules/juce_audio_processors/processors/juce_AudioProcessorGraph.cpp
>  1236
> 11  0x000000000058adbc  juce::AudioProcessorGraph::handleAsyncUpdate
> /home/rory/sourcecode/CabbagePatcher/JuceLibraryCode/modules/juce_audio_processors/processors/juce_AudioProcessorGraph.cpp
>  1256
> 12  0x0000000000645cc1
> juce::AsyncUpdater::AsyncUpdaterMessage::messageCallback
> /home/rory/sourcecode/CabbagePatcher/JuceLibraryCode/modules/juce_events/broadcasters/juce_AsyncUpdater.cpp
>  34
> 13  0x0000000000647692
> juce::InternalMessageQueue::dispatchNextInternalMessage
> /home/rory/sourcecode/CabbagePatcher/JuceLibraryCode/modules/juce_events/native/juce_linux_Messaging.cpp
>  206
> 14  0x000000000064707d  juce::InternalMessageQueue::dispatchNextEvent
> /home/rory/sourcecode/CabbagePatcher/JuceLibraryCode/modules/juce_events/native/juce_linux_Messaging.cpp
>  96
> 15  0x00000000006456be
> juce::MessageManager::dispatchNextMessageOnSystemQueue
> /home/rory/sourcecode/CabbagePatcher/JuceLibraryCode/modules/juce_events/native/juce_linux_Messaging.cpp
>  390
> 16  0x0000000000641c76  juce::MessageManager::runDispatchLoopUntil
> /home/rory/sourcecode/CabbagePatcher/JuceLibraryCode/modules/juce_events/messages/juce_MessageManager.cpp
>  119
> 17  0x0000000000641b93  juce::MessageManager::runDispatchLoop
> /home/rory/sourcecode/CabbagePatcher/JuceLibraryCode/modules/juce_events/messages/juce_MessageManager.cpp
>  99
> 18  0x00000000007aad67  juce::JUCEApplication::main
> /home/rory/sourcecode/CabbagePatcher/JuceLibraryCode/modules/juce_gui_basics/application/juce_Application.cpp
>  242
> 19  0x00000000007aaf90  juce::JUCEApplication::main
> /home/rory/sourcecode/CabbagePatcher/JuceLibraryCode/modules/juce_gui_basics/application/juce_Application.cpp
>  297
> 20  0x000000000046bd7b  main
> /home/rory/sourcecode/CabbagePatcher/Source/HostStartup.cpp  107

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-09 20:32
FromRory Walsh
SubjectRe: [Cs-dev] compile problem...
Ok, now I'm having problems with my linux install. On login I'm
missing half of my home folder and all profiles have been reset. Does
anyone have an recommendations for a light weight Debian based
operating system? This is my second problem with mint and I've had
about enough.

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-09 20:35
FromVictor Lazzarini
SubjectRe: [Cs-dev] compile problem...
why not ubuntu?
On 9 Apr 2013, at 20:32, Rory Walsh wrote:

> Ok, now I'm having problems with my linux install. On login I'm
> missing half of my home folder and all profiles have been reset. Does
> anyone have an recommendations for a light weight Debian based
> operating system? This is my second problem with mint and I've had
> about enough.
> 
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> 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




------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-09 20:38
FromRory Walsh
SubjectRe: [Cs-dev] compile problem...
I might try it with xkfc. Man, this really frustrates. Thank the lord
for things like git where at least you can rest easy that your code is
safe.

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-09 20:47
FromVictor Lazzarini
SubjectRe: [Cs-dev] compile problem...
I've been using ubuntu on virtual box and that works very well.
On 9 Apr 2013, at 20:38, Rory Walsh wrote:

> I might try it with xkfc. Man, this really frustrates. Thank the lord
> for things like git where at least you can rest easy that your code is
> safe.
> 
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> 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




------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-09 20:57
FromRory Walsh
SubjectRe: [Cs-dev] compile problem...
It's just a size thing. I'm looking for a small distro. I used Xubuntu
in the past. Might give that another whirl.

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-09 21:24
FromFelipe Sateler
SubjectRe: [Cs-dev] compile problem...
I've been using (plain) debian for quite a few years with no problems.
I've never quite understood why nobody actually wants to use debian.

On Tue, Apr 9, 2013 at 4:57 PM, Rory Walsh  wrote:
> It's just a size thing. I'm looking for a small distro. I used Xubuntu
> in the past. Might give that another whirl.
>
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel



-- 

Saludos,
Felipe Sateler

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-10 08:42
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] compile problem...
> I've been using (plain) debian for quite a few years with no problems.
> I've never quite understood why nobody actually wants to use debian.
>

+1

I use Debian for my firewall, a critical link in ther system here..  As
long as one does not have the very latest hardware it is a great system,
easy to maintain and control.

Mind you I build my own critical systems (spamassassin, clamd, exim, csound)

==John ff


------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-10 12:32
FromRory Walsh
SubjectRe: [Cs-dev] compile problem...
And I'm back to where i left off yesterday. Using the current git
(csound5) whenever I recompile an instance of Csound I lose audio in
my signal chain. If I then try to alfter my signal graph I get a
sigabrt from the debugger relating to a pthread_mutex_error. I thought
this might be solely a problem with my frontend, but if I step over
that problem I get a sigtrap from the debugger from the line with
"Csound Tidy Up" in the following function:

  static void signal_handler(int sig)
  {
#if defined(SIGPIPE)
      if (sig == (int) SIGPIPE) {
        psignal(sig, "Csound ignoring SIGPIPE");
        return;
      }
#endif
      psignal(sig, "Csound tidy up");
      if ((sig == (int) SIGINT || sig == (int) SIGTERM) && !exitNow_) {
        exitNow_ = -1;
        return;
      }
      exit(1);
  }

I can also induce that error directly by recompilng an intance of
Csound, and then trying to start another one. It seems that something
is getting caught somewhere and not freeing? I can't tell what it
might be however.

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-10 12:43
FromVictor Lazzarini
SubjectRe: [Cs-dev] compile problem...
The SIGTRAP is probably being raised by  gdb. Did you place a breakpoint when running this?
What happens if you run outside of the debugger?

On 10 Apr 2013, at 12:32, Rory Walsh wrote:

> And I'm back to where i left off yesterday. Using the current git
> (csound5) whenever I recompile an instance of Csound I lose audio in
> my signal chain. If I then try to alfter my signal graph I get a
> sigabrt from the debugger relating to a pthread_mutex_error. I thought
> this might be solely a problem with my frontend, but if I step over
> that problem I get a sigtrap from the debugger from the line with
> "Csound Tidy Up" in the following function:
> 
>  static void signal_handler(int sig)
>  {
> #if defined(SIGPIPE)
>      if (sig == (int) SIGPIPE) {
>        psignal(sig, "Csound ignoring SIGPIPE");
>        return;
>      }
> #endif
>      psignal(sig, "Csound tidy up");
>      if ((sig == (int) SIGINT || sig == (int) SIGTERM) && !exitNow_) {
>        exitNow_ = -1;
>        return;
>      }
>      exit(1);
>  }
> 
> I can also induce that error directly by recompilng an intance of
> Csound, and then trying to start another one. It seems that something
> is getting caught somewhere and not freeing? I can't tell what it
> might be however.
> 
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> 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




------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-10 13:36
FromRory Walsh
SubjectRe: [Cs-dev] compile problem...
When I run outside the debugger I get a Csound tidy up: Segmentation
fault and my host dies, that's if I try to create a new Csound object
after recompiling an old one. If I just delete objects and recreate
them I can work away without problem, but as soon as I recompile a
Csound object it messes everything up?


On 10 April 2013 12:43, Victor Lazzarini  wrote:
> The SIGTRAP is probably being raised by  gdb. Did you place a breakpoint when running this?
> What happens if you run outside of the debugger?
>
> On 10 Apr 2013, at 12:32, Rory Walsh wrote:
>
>> And I'm back to where i left off yesterday. Using the current git
>> (csound5) whenever I recompile an instance of Csound I lose audio in
>> my signal chain. If I then try to alfter my signal graph I get a
>> sigabrt from the debugger relating to a pthread_mutex_error. I thought
>> this might be solely a problem with my frontend, but if I step over
>> that problem I get a sigtrap from the debugger from the line with
>> "Csound Tidy Up" in the following function:
>>
>>  static void signal_handler(int sig)
>>  {
>> #if defined(SIGPIPE)
>>      if (sig == (int) SIGPIPE) {
>>        psignal(sig, "Csound ignoring SIGPIPE");
>>        return;
>>      }
>> #endif
>>      psignal(sig, "Csound tidy up");
>>      if ((sig == (int) SIGINT || sig == (int) SIGTERM) && !exitNow_) {
>>        exitNow_ = -1;
>>        return;
>>      }
>>      exit(1);
>>  }
>>
>> I can also induce that error directly by recompilng an intance of
>> Csound, and then trying to start another one. It seems that something
>> is getting caught somewhere and not freeing? I can't tell what it
>> might be however.
>>
>> ------------------------------------------------------------------------------
>> Precog is a next-generation analytics platform capable of advanced
>> analytics on semi-structured data. The platform includes APIs for building
>> apps and a phenomenal toolset for data science. Developers can use
>> our toolset for easy data analysis & visualization. Get a free account!
>> http://www2.precog.com/precogplatform/slashdotnewsletter
>> _______________________________________________
>> 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
>
>
>
>
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-10 13:40
FromVictor Lazzarini
SubjectRe: [Cs-dev] compile problem...
yes, it looks like there is some memory issue with csoundReset(). I can try and look at it, but it will not be now, since we're committing our time to csound 6.
On 10 Apr 2013, at 13:36, Rory Walsh wrote:

> When I run outside the debugger I get a Csound tidy up: Segmentation
> fault and my host dies, that's if I try to create a new Csound object
> after recompiling an old one. If I just delete objects and recreate
> them I can work away without problem, but as soon as I recompile a
> Csound object it messes everything up?
> 
> 
> On 10 April 2013 12:43, Victor Lazzarini  wrote:
>> The SIGTRAP is probably being raised by  gdb. Did you place a breakpoint when running this?
>> What happens if you run outside of the debugger?
>> 
>> On 10 Apr 2013, at 12:32, Rory Walsh wrote:
>> 
>>> And I'm back to where i left off yesterday. Using the current git
>>> (csound5) whenever I recompile an instance of Csound I lose audio in
>>> my signal chain. If I then try to alfter my signal graph I get a
>>> sigabrt from the debugger relating to a pthread_mutex_error. I thought
>>> this might be solely a problem with my frontend, but if I step over
>>> that problem I get a sigtrap from the debugger from the line with
>>> "Csound Tidy Up" in the following function:
>>> 
>>> static void signal_handler(int sig)
>>> {
>>> #if defined(SIGPIPE)
>>>     if (sig == (int) SIGPIPE) {
>>>       psignal(sig, "Csound ignoring SIGPIPE");
>>>       return;
>>>     }
>>> #endif
>>>     psignal(sig, "Csound tidy up");
>>>     if ((sig == (int) SIGINT || sig == (int) SIGTERM) && !exitNow_) {
>>>       exitNow_ = -1;
>>>       return;
>>>     }
>>>     exit(1);
>>> }
>>> 
>>> I can also induce that error directly by recompilng an intance of
>>> Csound, and then trying to start another one. It seems that something
>>> is getting caught somewhere and not freeing? I can't tell what it
>>> might be however.
>>> 
>>> ------------------------------------------------------------------------------
>>> Precog is a next-generation analytics platform capable of advanced
>>> analytics on semi-structured data. The platform includes APIs for building
>>> apps and a phenomenal toolset for data science. Developers can use
>>> our toolset for easy data analysis & visualization. Get a free account!
>>> http://www2.precog.com/precogplatform/slashdotnewsletter
>>> _______________________________________________
>>> 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
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> Precog is a next-generation analytics platform capable of advanced
>> analytics on semi-structured data. The platform includes APIs for building
>> apps and a phenomenal toolset for data science. Developers can use
>> our toolset for easy data analysis & visualization. Get a free account!
>> http://www2.precog.com/precogplatform/slashdotnewsletter
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> 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




------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-10 13:40
FromSteven Yi
SubjectRe: [Cs-dev] compile problem...
AttachmentsNone  None  
Hi Rory,

Do you have a simple CPP file that illustrates the problem (i.e. create csound, recompile, crash)?  This would be much simpler to diagnose if we could build and run with debugger locally. Otherwise, there's a lot of variables here and it's hard to diagnose without the full context of everything going on.

Other possibility, could you post the Cabbage project code somewhere (or is it in git now?)?  Maybe we can then just try building and running through the same steps to reproduce the failures then.

Thanks!
steven




On Wed, Apr 10, 2013 at 1:36 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
When I run outside the debugger I get a Csound tidy up: Segmentation
fault and my host dies, that's if I try to create a new Csound object
after recompiling an old one. If I just delete objects and recreate
them I can work away without problem, but as soon as I recompile a
Csound object it messes everything up?


On 10 April 2013 12:43, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
> The SIGTRAP is probably being raised by  gdb. Did you place a breakpoint when running this?
> What happens if you run outside of the debugger?
>
> On 10 Apr 2013, at 12:32, Rory Walsh wrote:
>
>> And I'm back to where i left off yesterday. Using the current git
>> (csound5) whenever I recompile an instance of Csound I lose audio in
>> my signal chain. If I then try to alfter my signal graph I get a
>> sigabrt from the debugger relating to a pthread_mutex_error. I thought
>> this might be solely a problem with my frontend, but if I step over
>> that problem I get a sigtrap from the debugger from the line with
>> "Csound Tidy Up" in the following function:
>>
>>  static void signal_handler(int sig)
>>  {
>> #if defined(SIGPIPE)
>>      if (sig == (int) SIGPIPE) {
>>        psignal(sig, "Csound ignoring SIGPIPE");
>>        return;
>>      }
>> #endif
>>      psignal(sig, "Csound tidy up");
>>      if ((sig == (int) SIGINT || sig == (int) SIGTERM) && !exitNow_) {
>>        exitNow_ = -1;
>>        return;
>>      }
>>      exit(1);
>>  }
>>
>> I can also induce that error directly by recompilng an intance of
>> Csound, and then trying to start another one. It seems that something
>> is getting caught somewhere and not freeing? I can't tell what it
>> might be however.
>>
>> ------------------------------------------------------------------------------
>> Precog is a next-generation analytics platform capable of advanced
>> analytics on semi-structured data. The platform includes APIs for building
>> apps and a phenomenal toolset for data science. Developers can use
>> our toolset for easy data analysis & visualization. Get a free account!
>> http://www2.precog.com/precogplatform/slashdotnewsletter
>> _______________________________________________
>> 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
>
>
>
>
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2013-04-10 13:43
FromRory Walsh
SubjectRe: [Cs-dev] compile problem...
I understand. Perhaps it's time to make the jump to 6 myself, at least
on Linux where I do most of my development work. Is the API usable as
is? I mean will I have to do much surgery with my host code do you
think?

On 10 April 2013 13:40, Victor Lazzarini  wrote:
> yes, it looks like there is some memory issue with csoundReset(). I can try and look at it, but it will not be now, since we're committing our time to csound 6.
> On 10 Apr 2013, at 13:36, Rory Walsh wrote:
>
>> When I run outside the debugger I get a Csound tidy up: Segmentation
>> fault and my host dies, that's if I try to create a new Csound object
>> after recompiling an old one. If I just delete objects and recreate
>> them I can work away without problem, but as soon as I recompile a
>> Csound object it messes everything up?
>>
>>
>> On 10 April 2013 12:43, Victor Lazzarini  wrote:
>>> The SIGTRAP is probably being raised by  gdb. Did you place a breakpoint when running this?
>>> What happens if you run outside of the debugger?
>>>
>>> On 10 Apr 2013, at 12:32, Rory Walsh wrote:
>>>
>>>> And I'm back to where i left off yesterday. Using the current git
>>>> (csound5) whenever I recompile an instance of Csound I lose audio in
>>>> my signal chain. If I then try to alfter my signal graph I get a
>>>> sigabrt from the debugger relating to a pthread_mutex_error. I thought
>>>> this might be solely a problem with my frontend, but if I step over
>>>> that problem I get a sigtrap from the debugger from the line with
>>>> "Csound Tidy Up" in the following function:
>>>>
>>>> static void signal_handler(int sig)
>>>> {
>>>> #if defined(SIGPIPE)
>>>>     if (sig == (int) SIGPIPE) {
>>>>       psignal(sig, "Csound ignoring SIGPIPE");
>>>>       return;
>>>>     }
>>>> #endif
>>>>     psignal(sig, "Csound tidy up");
>>>>     if ((sig == (int) SIGINT || sig == (int) SIGTERM) && !exitNow_) {
>>>>       exitNow_ = -1;
>>>>       return;
>>>>     }
>>>>     exit(1);
>>>> }
>>>>
>>>> I can also induce that error directly by recompilng an intance of
>>>> Csound, and then trying to start another one. It seems that something
>>>> is getting caught somewhere and not freeing? I can't tell what it
>>>> might be however.
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Precog is a next-generation analytics platform capable of advanced
>>>> analytics on semi-structured data. The platform includes APIs for building
>>>> apps and a phenomenal toolset for data science. Developers can use
>>>> our toolset for easy data analysis & visualization. Get a free account!
>>>> http://www2.precog.com/precogplatform/slashdotnewsletter
>>>> _______________________________________________
>>>> 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
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Precog is a next-generation analytics platform capable of advanced
>>> analytics on semi-structured data. The platform includes APIs for building
>>> apps and a phenomenal toolset for data science. Developers can use
>>> our toolset for easy data analysis & visualization. Get a free account!
>>> http://www2.precog.com/precogplatform/slashdotnewsletter
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> Precog is a next-generation analytics platform capable of advanced
>> analytics on semi-structured data. The platform includes APIs for building
>> apps and a phenomenal toolset for data science. Developers can use
>> our toolset for easy data analysis & visualization. Get a free account!
>> http://www2.precog.com/precogplatform/slashdotnewsletter
>> _______________________________________________
>> 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
>
>
>
>
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-10 14:03
FromRory Walsh
SubjectRe: [Cs-dev] compile problem...
I started uploading the project before Victor's last email! I'll send
you a dropbox link in a moment. You'll need to have the vstSDK too. To
build just cd to the Linux/Builds folder and run make. If you put the
vst sdk into ~/SDKs then you won't need to edit the make file at all I
think. To see the problem, just right click on the patcher, go to new
effect, create your new effect. Go to source, make a change, hit
Ctrl+S and then try to place another plugin into the patcher. You
might need to set the Cabbage plugins folder from the main file menu.
Just browse to the Cabbage examples folder and you'll then get a list
of all the plugins. Be aware, things are still pretty rough, I'm just
trying to make sure basic functionality it working.




On 10 April 2013 13:40, Steven Yi  wrote:
> Hi Rory,
>
> Do you have a simple CPP file that illustrates the problem (i.e. create
> csound, recompile, crash)?  This would be much simpler to diagnose if we
> could build and run with debugger locally. Otherwise, there's a lot of
> variables here and it's hard to diagnose without the full context of
> everything going on.
>
> Other possibility, could you post the Cabbage project code somewhere (or is
> it in git now?)?  Maybe we can then just try building and running through
> the same steps to reproduce the failures then.
>
> Thanks!
> steven
>
>
>
>
> On Wed, Apr 10, 2013 at 1:36 PM, Rory Walsh  wrote:
>>
>> When I run outside the debugger I get a Csound tidy up: Segmentation
>> fault and my host dies, that's if I try to create a new Csound object
>> after recompiling an old one. If I just delete objects and recreate
>> them I can work away without problem, but as soon as I recompile a
>> Csound object it messes everything up?
>>
>>
>> On 10 April 2013 12:43, Victor Lazzarini  wrote:
>> > The SIGTRAP is probably being raised by  gdb. Did you place a breakpoint
>> > when running this?
>> > What happens if you run outside of the debugger?
>> >
>> > On 10 Apr 2013, at 12:32, Rory Walsh wrote:
>> >
>> >> And I'm back to where i left off yesterday. Using the current git
>> >> (csound5) whenever I recompile an instance of Csound I lose audio in
>> >> my signal chain. If I then try to alfter my signal graph I get a
>> >> sigabrt from the debugger relating to a pthread_mutex_error. I thought
>> >> this might be solely a problem with my frontend, but if I step over
>> >> that problem I get a sigtrap from the debugger from the line with
>> >> "Csound Tidy Up" in the following function:
>> >>
>> >>  static void signal_handler(int sig)
>> >>  {
>> >> #if defined(SIGPIPE)
>> >>      if (sig == (int) SIGPIPE) {
>> >>        psignal(sig, "Csound ignoring SIGPIPE");
>> >>        return;
>> >>      }
>> >> #endif
>> >>      psignal(sig, "Csound tidy up");
>> >>      if ((sig == (int) SIGINT || sig == (int) SIGTERM) && !exitNow_) {
>> >>        exitNow_ = -1;
>> >>        return;
>> >>      }
>> >>      exit(1);
>> >>  }
>> >>
>> >> I can also induce that error directly by recompilng an intance of
>> >> Csound, and then trying to start another one. It seems that something
>> >> is getting caught somewhere and not freeing? I can't tell what it
>> >> might be however.
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> Precog is a next-generation analytics platform capable of advanced
>> >> analytics on semi-structured data. The platform includes APIs for
>> >> building
>> >> apps and a phenomenal toolset for data science. Developers can use
>> >> our toolset for easy data analysis & visualization. Get a free account!
>> >> http://www2.precog.com/precogplatform/slashdotnewsletter
>> >> _______________________________________________
>> >> 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
>> >
>> >
>> >
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > Precog is a next-generation analytics platform capable of advanced
>> > analytics on semi-structured data. The platform includes APIs for
>> > building
>> > apps and a phenomenal toolset for data science. Developers can use
>> > our toolset for easy data analysis & visualization. Get a free account!
>> > http://www2.precog.com/precogplatform/slashdotnewsletter
>> > _______________________________________________
>> > Csound-devel mailing list
>> > Csound-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>> Precog is a next-generation analytics platform capable of advanced
>> analytics on semi-structured data. The platform includes APIs for building
>> apps and a phenomenal toolset for data science. Developers can use
>> our toolset for easy data analysis & visualization. Get a free account!
>> http://www2.precog.com/precogplatform/slashdotnewsletter
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-10 14:40
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] compile problem...
If you are using linux try running with valgrind or linking with efence


> And I'm back to where i left off yesterday. Using the current git
> (csound5) whenever I recompile an instance of Csound I lose audio in
> my signal chain. If I then try to alfter my signal graph I get a
> sigabrt from the debugger relating to a pthread_mutex_error. I thought
> this might be solely a problem with my frontend, but if I step over
> that problem I get a sigtrap from the debugger from the line with
> "Csound Tidy Up" in the following function:
>
>   static void signal_handler(int sig)
>   {
> #if defined(SIGPIPE)
>       if (sig == (int) SIGPIPE) {
>         psignal(sig, "Csound ignoring SIGPIPE");
>         return;
>       }
> #endif
>       psignal(sig, "Csound tidy up");
>       if ((sig == (int) SIGINT || sig == (int) SIGTERM) && !exitNow_) {
>         exitNow_ = -1;
>         return;
>       }
>       exit(1);
>   }
>
> I can also induce that error directly by recompilng an intance of
> Csound, and then trying to start another one. It seems that something
> is getting caught somewhere and not freeing? I can't tell what it
> might be however.
>
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>



------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-10 14:45
FromRory Walsh
SubjectRe: [Cs-dev] compile problem...
If I launch with valgrind memcheck I get the following:

rory@lenny:~/sourcecode/CabbagePatcher/Builds/Linux/build$ valgrind
--tool=memcheck ./CabbagePatcher
==2609== Memcheck, a memory error detector
==2609== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==2609== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==2609== Command: ./CabbagePatcher
==2609==
JUCE v2.0.32
vex amd64->IR: unhandled instruction bytes: 0xC5 0xFB 0x10 0x40 0x28
0xC5 0xF1 0x57
==2609== valgrind: Unrecognised instruction at address 0x7287ba.
==2609==    at 0x7287BA:
juce::ComponentBoundsConstrainer::checkBounds(juce::Rectangle&,
juce::Rectangle const&, juce::Rectangle const&, bool, bool,
bool, bool) (juce_ComponentBoundsConstrainer.cpp:242)
==2609==    by 0x72825C:
juce::ComponentBoundsConstrainer::setBoundsForComponent(juce::Component*,
juce::Rectangle const&, bool, bool, bool, bool)
(juce_ComponentBoundsConstrainer.cpp:136)
==2609==    by 0x77B92A:
juce::ResizableWindow::setBoundsConstrained(juce::Rectangle
const&) (juce_ResizableWindow.cpp:354)
==2609==    by 0x77B7D1: juce::ResizableWindow::setResizeLimits(int,
int, int, int) (juce_ResizableWindow.cpp:329)
==2609==    by 0x778842:
juce::DocumentWindow::DocumentWindow(juce::String const&, juce::Colour
const&, int, bool) (juce_DocumentWindow.cpp:61)
==2609==    by 0x46AA92: MainHostWindow::MainHostWindow()
(MainHostWindow.cpp:89)
==2609==    by 0x469E3D: PluginHostApp::initialise(juce::String
const&) (HostStartup.cpp:62)
==2609==    by 0x78228D: juce::JUCEApplication::initialiseApp()
(juce_Application.cpp:181)
==2609==    by 0x782567: juce::JUCEApplication::main()
(juce_Application.cpp:236)
==2609==    by 0x78279D: juce::JUCEApplication::main(int, char
const**) (juce_Application.cpp:297)
==2609==    by 0x469C28: main (HostStartup.cpp:107)
==2609== Your program just tried to execute an instruction that Valgrind
==2609== did not recognise.  There are two possible reasons for this.
==2609== 1. Your program has a bug and erroneously jumped to a non-code
==2609==    location.  If you are running Memcheck and you just saw a
==2609==    warning about a bad jump, it's probably your program's fault.
==2609== 2. The instruction is legitimate but Valgrind doesn't handle it,
==2609==    i.e. it's Valgrind's fault.  If you think this is the case or
==2609==    you are not sure, please let us know and we'll try to fix it.
==2609== Either way, Valgrind will now raise a SIGILL signal which will
==2609== probably kill your program.
==2609==
==2609== Process terminating with default action of signal 4 (SIGILL)
==2609==  Illegal opcode at address 0x7287BA
==2609==    at 0x7287BA:
juce::ComponentBoundsConstrainer::checkBounds(juce::Rectangle&,
juce::Rectangle const&, juce::Rectangle const&, bool, bool,
bool, bool) (juce_ComponentBoundsConstrainer.cpp:242)
==2609==    by 0x72825C:
juce::ComponentBoundsConstrainer::setBoundsForComponent(juce::Component*,
juce::Rectangle const&, bool, bool, bool, bool)
(juce_ComponentBoundsConstrainer.cpp:136)
==2609==    by 0x77B92A:
juce::ResizableWindow::setBoundsConstrained(juce::Rectangle
const&) (juce_ResizableWindow.cpp:354)
==2609==    by 0x77B7D1: juce::ResizableWindow::setResizeLimits(int,
int, int, int) (juce_ResizableWindow.cpp:329)
==2609==    by 0x778842:
juce::DocumentWindow::DocumentWindow(juce::String const&, juce::Colour
const&, int, bool) (juce_DocumentWindow.cpp:61)
==2609==    by 0x46AA92: MainHostWindow::MainHostWindow()
(MainHostWindow.cpp:89)
==2609==    by 0x469E3D: PluginHostApp::initialise(juce::String
const&) (HostStartup.cpp:62)
==2609==    by 0x78228D: juce::JUCEApplication::initialiseApp()
(juce_Application.cpp:181)
==2609==    by 0x782567: juce::JUCEApplication::main()
(juce_Application.cpp:236)
==2609==    by 0x78279D: juce::JUCEApplication::main(int, char
const**) (juce_Application.cpp:297)
==2609==    by 0x469C28: main (HostStartup.cpp:107)
==2609==
==2609== HEAP SUMMARY:
==2609==     in use at exit: 81,710 bytes in 241 blocks
==2609==   total heap usage: 575 allocs, 334 frees, 115,675 bytes allocated
==2609==
==2609== LEAK SUMMARY:
==2609==    definitely lost: 0 bytes in 0 blocks
==2609==    indirectly lost: 0 bytes in 0 blocks
==2609==      possibly lost: 2,066 bytes in 67 blocks
==2609==    still reachable: 79,644 bytes in 174 blocks
==2609==         suppressed: 0 bytes in 0 blocks
==2609== Rerun with --leak-check=full to see details of leaked memory
==2609==
==2609== For counts of detected and suppressed errors, rerun with: -v
==2609== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 2 from 2)
Illegal instruction (core dumped)

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net