Csound Csound-dev Csound-tekno Search About

[Cs-dev] memory issue on OSX (strings)

Date2015-08-05 18:06
Fromhackbarth
Subject[Cs-dev] memory issue on OSX (strings)
Hi all,
 
Backstory here: https://github.com/csound/csound/issues/506

I'm trying to figure out some memory issues that I'm having with a complex
csd (reposting this problem here as I'm unsure how many people look at
github).  The short version of the story is that the seg faults are
intermittent and, when I remove references to soundfiles on my machine, they
seem to magically disappear, making it difficult to post a demonstrative
csd.  This bug almost certainly has to do with strings, but I've been
struggling to make a csd that yall can run without my soundfile database.  

However I've finally gotten a file-independent csd that doesn't seg fault,
but throws valgrind memory errors for me (on OSX 10.9):

http://pastebin.com/tHMe15Li

If anyone has any insight regarding this is would be much appreciated, as
similar, more complex scores are failing to compile for me at this point.

Thanks,
Ben

==23949== Invalid write of size 8
==23949== at 0x66AB91: _platform_memmove$VARIANT$Unknown (in
/usr/lib/system/libsystem_platform.dylib)
==23949== by 0x324AD: string_copy_value (in
/Users/ben/Library/Frameworks/CsoundLib64.framework/Versions/6.0/CsoundLib64)
==23949== by 0x1007933EF: ???
==23949== Address 0x101b619be is 62 bytes inside a block of size 66 alloc'd
==23949== at 0x47E1: malloc (vg_replace_malloc.c:300)
==23949== by 0x23F53: mmalloc (in
/Users/ben/Library/Frameworks/CsoundLib64.framework/Versions/6.0/CsoundLib64)
==23949==
==23949== Invalid write of size 8
==23949== at 0x66AB91: _platform_memmove$VARIANT$Unknown (in
/usr/lib/system/libsystem_platform.dylib)
==23949== by 0x324AD: string_copy_value (in
/Users/ben/Library/Frameworks/CsoundLib64.framework/Versions/6.0/CsoundLib64)
==23949== by 0x10035AC1F: ???
==23949== by 0x2079E7: ??? (in
/Users/ben/Library/Frameworks/CsoundLib64.framework/Versions/6.0/CsoundLib64)
==23949== by 0x1007933EF: ???
==23949== by 0x21C65: useropcd2 (in
/Users/ben/Library/Frameworks/CsoundLib64.framework/Versions/6.0/CsoundLib64)
==23949== by 0x1000E6C1F: ???
==23949== by 0x1005D114F: ???
==23949== by 0x1007B2A8F: ???
==23949== by 0x1000DF44F: ???
==23949== by 0x10038F78F: ???
==23949== by 0x1013FFDBF: ???
==23949== Address 0x101b619be is 62 bytes inside a block of size 66 alloc'd
==23949== at 0x47E1: malloc (vg_replace_malloc.c:300)
==23949== by 0x23F53: mmalloc (in
/Users/ben/Library/Frameworks/CsoundLib64.framework/Versions/6.0/CsoundLib64)
==23949== 



--
View this message in context: http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2015-08-05 19:13
Fromjpff
SubjectRe: [Cs-dev] memory issue on OSX (strings)
The pastebin csd ie is highly dependent on your files.  Do you have a 
version that is fie-independent?  Valgrind is good though


On Wed, 5 Aug 2015, hackbarth wrote:

> Hi all,
>
> Backstory here: https://github.com/csound/csound/issues/506
>
> I'm trying to figure out some memory issues that I'm having with a complex
> csd (reposting this problem here as I'm unsure how many people look at
> github).  The short version of the story is that the seg faults are
> intermittent and, when I remove references to soundfiles on my machine, they
> seem to magically disappear, making it difficult to post a demonstrative
> csd.  This bug almost certainly has to do with strings, but I've been
> struggling to make a csd that yall can run without my soundfile database.
>
> However I've finally gotten a file-independent csd that doesn't seg fault,
> but throws valgrind memory errors for me (on OSX 10.9):
>
> http://pastebin.com/tHMe15Li
>
> If anyone has any insight regarding this is would be much appreciated, as
> similar, more complex scores are failing to compile for me at this point.
>
> Thanks,
> Ben
>
> ==23949== Invalid write of size 8
> ==23949== at 0x66AB91: _platform_memmove$VARIANT$Unknown (in
> /usr/lib/system/libsystem_platform.dylib)
> ==23949== by 0x324AD: string_copy_value (in
> /Users/ben/Library/Frameworks/CsoundLib64.framework/Versions/6.0/CsoundLib64)
> ==23949== by 0x1007933EF: ???
> ==23949== Address 0x101b619be is 62 bytes inside a block of size 66 alloc'd
> ==23949== at 0x47E1: malloc (vg_replace_malloc.c:300)
> ==23949== by 0x23F53: mmalloc (in
> /Users/ben/Library/Frameworks/CsoundLib64.framework/Versions/6.0/CsoundLib64)
> ==23949==
> ==23949== Invalid write of size 8
> ==23949== at 0x66AB91: _platform_memmove$VARIANT$Unknown (in
> /usr/lib/system/libsystem_platform.dylib)
> ==23949== by 0x324AD: string_copy_value (in
> /Users/ben/Library/Frameworks/CsoundLib64.framework/Versions/6.0/CsoundLib64)
> ==23949== by 0x10035AC1F: ???
> ==23949== by 0x2079E7: ??? (in
> /Users/ben/Library/Frameworks/CsoundLib64.framework/Versions/6.0/CsoundLib64)
> ==23949== by 0x1007933EF: ???
> ==23949== by 0x21C65: useropcd2 (in
> /Users/ben/Library/Frameworks/CsoundLib64.framework/Versions/6.0/CsoundLib64)
> ==23949== by 0x1000E6C1F: ???
> ==23949== by 0x1005D114F: ???
> ==23949== by 0x1007B2A8F: ???
> ==23949== by 0x1000DF44F: ???
> ==23949== by 0x10038F78F: ???
> ==23949== by 0x1013FFDBF: ???
> ==23949== Address 0x101b619be is 62 bytes inside a block of size 66 alloc'd
> ==23949== at 0x47E1: malloc (vg_replace_malloc.c:300)
> ==23949== by 0x23F53: mmalloc (in
> /Users/ben/Library/Frameworks/CsoundLib64.framework/Versions/6.0/CsoundLib64)
> ==23949==
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998.html
> Sent from the Csound - Dev mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2015-08-05 19:19
Fromhackbarth
SubjectRe: [Cs-dev] memory issue on OSX (strings)
AttachmentsNone  None  

This pastebin is file-independant.   The filenames in the score are not actually used for anything and it should run on any machine (unlike the one I originally posted).  Unless I’m completely losing it?



cheers,
 – ben

On 5 Aug 2015, at 19:14, jpff,,, [via Csound] <[hidden email]> wrote:

The pastebin csd ie is highly dependent on your files.  Do you have a 
version that is fie-independent?  Valgrind is good though 


On Wed, 5 Aug 2015, hackbarth wrote: 

> Hi all, 
> 
> Backstory here: https://github.com/csound/csound/issues/506
> 
> I'm trying to figure out some memory issues that I'm having with a complex 
> csd (reposting this problem here as I'm unsure how many people look at 
> github).  The short version of the story is that the seg faults are 
> intermittent and, when I remove references to soundfiles on my machine, they 
> seem to magically disappear, making it difficult to post a demonstrative 
> csd.  This bug almost certainly has to do with strings, but I've been 
> struggling to make a csd that yall can run without my soundfile database. 
> 
> However I've finally gotten a file-independent csd that doesn't seg fault, 
> but throws valgrind memory errors for me (on OSX 10.9): 
> 
> http://pastebin.com/tHMe15Li
> 
> If anyone has any insight regarding this is would be much appreciated, as 
> similar, more complex scores are failing to compile for me at this point. 
> 
> Thanks, 
> Ben 
> 
> ==23949== Invalid write of size 8 
> ==23949== at 0x66AB91: _platform_memmove$VARIANT$Unknown (in 
> /usr/lib/system/libsystem_platform.dylib) 
> ==23949== by 0x324AD: string_copy_value (in 
> /Users/ben/Library/Frameworks/CsoundLib64.framework/Versions/6.0/CsoundLib64) 
> ==23949== by 0x1007933EF: ??? 
> ==23949== Address 0x101b619be is 62 bytes inside a block of size 66 alloc'd 
> ==23949== at 0x47E1: malloc (vg_replace_malloc.c:300) 
> ==23949== by 0x23F53: mmalloc (in 
> /Users/ben/Library/Frameworks/CsoundLib64.framework/Versions/6.0/CsoundLib64) 
> ==23949== 
> ==23949== Invalid write of size 8 
> ==23949== at 0x66AB91: _platform_memmove$VARIANT$Unknown (in 
> /usr/lib/system/libsystem_platform.dylib) 
> ==23949== by 0x324AD: string_copy_value (in 
> /Users/ben/Library/Frameworks/CsoundLib64.framework/Versions/6.0/CsoundLib64) 
> ==23949== by 0x10035AC1F: ??? 
> ==23949== by 0x2079E7: ??? (in 
> /Users/ben/Library/Frameworks/CsoundLib64.framework/Versions/6.0/CsoundLib64) 
> ==23949== by 0x1007933EF: ??? 
> ==23949== by 0x21C65: useropcd2 (in 
> /Users/ben/Library/Frameworks/CsoundLib64.framework/Versions/6.0/CsoundLib64) 
> ==23949== by 0x1000E6C1F: ??? 
> ==23949== by 0x1005D114F: ??? 
> ==23949== by 0x1007B2A8F: ??? 
> ==23949== by 0x1000DF44F: ??? 
> ==23949== by 0x10038F78F: ??? 
> ==23949== by 0x1013FFDBF: ??? 
> ==23949== Address 0x101b619be is 62 bytes inside a block of size 66 alloc'd 
> ==23949== at 0x47E1: malloc (vg_replace_malloc.c:300) 
> ==23949== by 0x23F53: mmalloc (in 
> /Users/ben/Library/Frameworks/CsoundLib64.framework/Versions/6.0/CsoundLib64) 
> ==23949== 
> 
> 
> 
> -- 
> View this message in context: http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998.html
> Sent from the Csound - Dev mailing list archive at Nabble.com. 
> 
> ------------------------------------------------------------------------------ 
> _______________________________________________ 
> Csound-devel mailing list 
> <a href="x-msg://33/user/SendEmail.jtp?type=node&amp;node=5742999&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email] 
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
------------------------------------------------------------------------------ 
_______________________________________________ 
Csound-devel mailing list 
<a href="x-msg://33/user/SendEmail.jtp?type=node&amp;node=5742999&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email] 
https://lists.sourceforge.net/lists/listinfo/csound-devel



If you reply to this email, your message will be added to the discussion below:
http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5742999.html
To unsubscribe from memory issue on OSX (strings), click here.
NAML



View this message in context: Re: memory issue on OSX (strings)
Sent from the Csound - Dev mailing list archive at Nabble.com.

Date2015-08-05 19:29
Fromjpff
SubjectRe: [Cs-dev] memory issue on OSX (strings)
Apologies -- I have it crashing in Linux so it is generic.  Will look 
closer
==John ff


------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2015-08-06 11:03
Fromhackbarth
SubjectRe: [Cs-dev] memory issue on OSX (strings)
I should have mentioned: I’ve cloned into origin/release/6.05 to avoid any
issues in the dev branch. So my errors in valgrind are coming from the 6.05
release version.



--
View this message in context: http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5743015.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge

Date2015-08-06 11:20
Fromjpff
SubjectRe: [Cs-dev] memory issue on OSX (strings)
AttachmentsNone  None  
I can reproduce the errors on Linux with latest code.  Some improvement 
has been made but not solved yet

On Thu, 6 Aug 2015, hackbarth wrote:

> I should have mentioned: I’ve cloned into origin/release/6.05 to avoid any
> issues in the dev branch. So my errors in valgrind are coming from the 6.05
> release version.
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5743015.html
> Sent from the Csound - Dev mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Date2015-08-07 12:18
Fromhackbarth
SubjectRe: [Cs-dev] memory issue on OSX (strings)
Thanks John, will pull and test whenever you have something.

Best,
Ben



--
View this message in context: http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5743021.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2015-08-09 03:36
FromSteven Yi
SubjectRe: [Cs-dev] memory issue on OSX (strings)
I've just checked out the latest from develop and I did not have any
crashes with the pastebin example.  Is this now fixed?

On Fri, Aug 7, 2015 at 7:18 AM, hackbarth  wrote:
> Thanks John, will pull and test whenever you have something.
>
> Best,
> Ben
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5743021.html
> Sent from the Csound - Dev mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2015-08-09 11:17
Fromhackbarth
SubjectRe: [Cs-dev] memory issue on OSX (strings)
AttachmentsNone  None  

Hi Steven,


I still get the same valgrind memory issues with the latest code.  Whats more, I seem to have more errors and issues compared to the 5.06 release code.  The following file-independant csd segfaults for me:


Best,
 – ben

On 9 Aug 2015, at 03:37, Steven Yi [via Csound] <[hidden email]> wrote:

I've just checked out the latest from develop and I did not have any
crashes with the pastebin example.  Is this now fixed?

On Fri, Aug 7, 2015 at 7:18 AM, hackbarth <<a href="x-msg://3/user/SendEmail.jtp?type=node&amp;node=5743042&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]> wrote:

> Thanks John, will pull and test whenever you have something.
>
> Best,
> Ben
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5743021.html
> Sent from the Csound - Dev mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> <a href="x-msg://3/user/SendEmail.jtp?type=node&amp;node=5743042&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email]
> https://lists.sourceforge.net/lists/listinfo/csound-devel
------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
<a href="x-msg://3/user/SendEmail.jtp?type=node&amp;node=5743042&amp;i=2" target="_top" rel="nofollow" link="external">[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel



If you reply to this email, your message will be added to the discussion below:
http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5743042.html
To unsubscribe from memory issue on OSX (strings), click here.
NAML



View this message in context: Re: memory issue on OSX (strings)
Sent from the Csound - Dev mailing list archive at Nabble.com.

Date2015-08-11 04:37
FromSteven Yi
SubjectRe: [Cs-dev] memory issue on OSX (strings)
This latest pastebin seems to have different behavior than the others.
I'm getting a crash in deact, deactivating what looks like an infinite
loop in a UDO.  I'm not really sure what the cause of that is.
Reverting the fix I put in for labels and gotos
(https://github.com/csound/csound/commit/24b7e94d1bb5c35e39565bb735f4c6bf81b1aea5)
that Stephane pointed out in the github issue does make the deact
crash go away.

 I got valgrind installed here and with the original pastebin example
I get a few intermittent errors but trying out various code changes
doesn't seem to affect the results. Reverting the commit mentioned
above does not seem to affect the valgrind errors.


On Sun, Aug 9, 2015 at 6:17 AM, hackbarth  wrote:
> Hi Steven,
>
> I still get the same valgrind memory issues with the latest code.  Whats
> more, I seem to have more errors and issues compared to the 5.06 release
> code.  The following file-independant csd segfaults for me:
>
> http://pastebin.com/UwM4FXaY
>
> Best,
>  – ben
>
> On 9 Aug 2015, at 03:37, Steven Yi [via Csound] <[hidden email]> wrote:
>
> I've just checked out the latest from develop and I did not have any
> crashes with the pastebin example.  Is this now fixed?
>
> On Fri, Aug 7, 2015 at 7:18 AM, hackbarth < href="x-msg://3/user/SendEmail.jtp?type=node&node=5743042&i=0"
> target="_top" rel="nofollow" link="external">[hidden email]> wrote:
>
>> Thanks John, will pull and test whenever you have something.
>>
>> Best,
>> Ben
>>
>>
>>
>> --
>> View this message in context:
>> http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5743021.html
>> Sent from the Csound - Dev mailing list archive at Nabble.com.
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> > target="_top" rel="nofollow" link="external">[hidden email]
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
>  target="_top" rel="nofollow" link="external">[hidden email]
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ________________________________
> If you reply to this email, your message will be added to the discussion
> below:
> http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5743042.html
> To unsubscribe from memory issue on OSX (strings), click here.
> NAML
>
>
>
> ________________________________
> View this message in context: Re: memory issue on OSX (strings)
> Sent from the Csound - Dev mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.

Date2015-08-11 07:00
FromStéphane Peter
SubjectRe: [Cs-dev] memory issue on OSX (strings)
AttachmentsNone  None  
I had actually experienced the crashes you mention (infinite loop in deact), before it started just failing as a perf error. So this commit did introduce some nasty side effects to say the least.

--
Stéphane Peter




On Aug 10, 2015, at 8:37 PM, Steven Yi <stevenyi@gmail.com> wrote:

This latest pastebin seems to have different behavior than the others.
I'm getting a crash in deact, deactivating what looks like an infinite
loop in a UDO.  I'm not really sure what the cause of that is.
Reverting the fix I put in for labels and gotos
(https://github.com/csound/csound/commit/24b7e94d1bb5c35e39565bb735f4c6bf81b1aea5)
that Stephane pointed out in the github issue does make the deact
crash go away.

I got valgrind installed here and with the original pastebin example
I get a few intermittent errors but trying out various code changes
doesn't seem to affect the results. Reverting the commit mentioned
above does not seem to affect the valgrind errors.


On Sun, Aug 9, 2015 at 6:17 AM, hackbarth <hackbarth@gmail.com> wrote:
Hi Steven,

I still get the same valgrind memory issues with the latest code.  Whats
more, I seem to have more errors and issues compared to the 5.06 release
code.  The following file-independant csd segfaults for me:

http://pastebin.com/UwM4FXaY

Best,
– ben

On 9 Aug 2015, at 03:37, Steven Yi [via Csound] <[hidden email]> wrote:

I've just checked out the latest from develop and I did not have any
crashes with the pastebin example.  Is this now fixed?

On Fri, Aug 7, 2015 at 7:18 AM, hackbarth <<a
href="x-msg://3/user/SendEmail.jtp?type=node&amp;node=5743042&amp;i=0"
target="_top" rel="nofollow" link="external">[hidden email]> wrote:

Thanks John, will pull and test whenever you have something.

Best,
Ben



--
View this message in context:
http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5743021.html
Sent from the Csound - Dev mailing list archive at Nabble.com.


------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
<a href="x-msg://3/user/SendEmail.jtp?type=node&amp;node=5743042&amp;i=1"
target="_top" rel="nofollow" link="external">[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel
------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
<a href="x-msg://3/user/SendEmail.jtp?type=node&amp;node=5743042&amp;i=2"
target="_top" rel="nofollow" link="external">[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel


________________________________
If you reply to this email, your message will be added to the discussion
below:
http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5743042.html
To unsubscribe from memory issue on OSX (strings), click here.
NAML



________________________________
View this message in context: Re: memory issue on OSX (strings)
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2015-08-11 13:13
Fromhackbarth
SubjectRe: [Cs-dev] memory issue on OSX (strings)
AttachmentsNone  None  

Thanks for the followup Steven.


I’m not particularly bothered by the valgrind errors, but in larger csds with lots of file reads things start crashing reliably for me.

Attached is a csd which consistently segfaults for me (after deact) with the 5.06 release code.  Should work on any machine.  [sorry for the attachment, but the uncompressed score apparently exceeds pastebin’s size limit.]

Best,


 – ben

On 11 Aug 2015, at 04:38, Steven Yi [via Csound] <[hidden email]> wrote:

This latest pastebin seems to have different behavior than the others. 
I'm getting a crash in deact, deactivating what looks like an infinite 
loop in a UDO.  I'm not really sure what the cause of that is. 
Reverting the fix I put in for labels and gotos 
(https://github.com/csound/csound/commit/24b7e94d1bb5c35e39565bb735f4c6bf81b1aea5) 
that Stephane pointed out in the github issue does make the deact 
crash go away. 

 I got valgrind installed here and with the original pastebin example 
I get a few intermittent errors but trying out various code changes 
doesn't seem to affect the results. Reverting the commit mentioned 
above does not seem to affect the valgrind errors. 


On Sun, Aug 9, 2015 at 6:17 AM, hackbarth <<a href="x-msg://18/user/SendEmail.jtp?type=node&amp;node=5743069&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]> wrote:

> Hi Steven, 
> 
> I still get the same valgrind memory issues with the latest code.  Whats 
> more, I seem to have more errors and issues compared to the 5.06 release 
> code.  The following file-independant csd segfaults for me: 
> 
> http://pastebin.com/UwM4FXaY
> 
> Best, 
>  – ben 
> 
> On 9 Aug 2015, at 03:37, Steven Yi [via Csound] <[hidden email]> wrote: 
> 
> I've just checked out the latest from develop and I did not have any 
> crashes with the pastebin example.  Is this now fixed? 
> 
> On Fri, Aug 7, 2015 at 7:18 AM, hackbarth <<a 
> href="<a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=5743042&amp;amp;i=0">x-msg://3/user/SendEmail.jtp?type=node&amp;node=5743042&amp;i=0" 
> target="_top" rel="nofollow" link="external">[hidden email]> wrote: 
> 
>> Thanks John, will pull and test whenever you have something. 
>> 
>> Best, 
>> Ben 
>> 
>> 
>> 
>> -- 
>> View this message in context: 
>> http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5743021.html
>> Sent from the Csound - Dev mailing list archive at Nabble.com. 
>> 
>> 
>> ------------------------------------------------------------------------------ 
>> _______________________________________________ 
>> Csound-devel mailing list 
>> <a href="<a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=5743042&amp;amp;i=1">x-msg://3/user/SendEmail.jtp?type=node&amp;node=5743042&amp;i=1" 
>> target="_top" rel="nofollow" link="external">[hidden email] 
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> ------------------------------------------------------------------------------ 
> _______________________________________________ 
> Csound-devel mailing list 
> <a href="<a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=5743042&amp;amp;i=2">x-msg://3/user/SendEmail.jtp?type=node&amp;node=5743042&amp;i=2" 
> target="_top" rel="nofollow" link="external">[hidden email] 
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 
> ________________________________ 
> If you reply to this email, your message will be added to the discussion 
> below: 
> http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5743042.html
> To unsubscribe from memory issue on OSX (strings), click here. 
> NAML 
> 
> 
> 
> ________________________________ 
> View this message in context: Re: memory issue on OSX (strings) 
> Sent from the Csound - Dev mailing list archive at Nabble.com. 
> 
> ------------------------------------------------------------------------------ 
> 
> _______________________________________________ 
> Csound-devel mailing list 
> <a href="x-msg://18/user/SendEmail.jtp?type=node&amp;node=5743069&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email] 
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
------------------------------------------------------------------------------ 
_______________________________________________ 
Csound-devel mailing list 
<a href="x-msg://18/user/SendEmail.jtp?type=node&amp;node=5743069&amp;i=2" target="_top" rel="nofollow" link="external">[hidden email] 
https://lists.sourceforge.net/lists/listinfo/csound-devel



If you reply to this email, your message will be added to the discussion below:
http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5743069.html
To unsubscribe from memory issue on OSX (strings), click here.
NAML


99-test.csd.zip (79K) Download Attachment


View this message in context: Re: memory issue on OSX (strings)
Sent from the Csound - Dev mailing list archive at Nabble.com.

Date2015-08-11 13:57
FromSteven Yi
SubjectRe: [Cs-dev] memory issue on OSX (strings)
AttachmentsNone  None  
I've reverted the change I had introduced originally. This fixes the regressions introduced but reintroduces the problem of labels as the things in UDO's causing jumps to fail.  Seems the lesser of two evils.

The original bug has to do with code like this:

opcode Loop,k,kk
kend,kcnt xin
until kcnt > kend do
kcnt += 1
od
 xout kcnt
endop

Which failed to process the until loop (which compiles to a label and goto).  

Ben: Your latest CSD fails here but again in different ways from before.  In this case, i'm testing with the latest after I commited the reverted code.  It's still crashing, but for a different reason. First, I found that the code you had assigning p3 directly from xin was causing a problem.  I'm not sure from Csound's UDO design that it ever worked to allow this.  Changing the code to swap out idur for p3 in those UDO's, then adding a "p3 = idur" seems to have gotten around that one. After that, there's still a crash having to do with chnget.  Somehow a bad entry has gotten into the channel hash table. I'm not sure what's the story with that though.

I've got to take a break from this.  Hopefully someone else can take a look too.



On Tue, Aug 11, 2015 at 8:13 AM, hackbarth <hackbarth@gmail.com> wrote:
Thanks for the followup Steven.

I’m not particularly bothered by the valgrind errors, but in larger csds with lots of file reads things start crashing reliably for me.

Attached is a csd which consistently segfaults for me (after deact) with the 5.06 release code.  Should work on any machine.  [sorry for the attachment, but the uncompressed score apparently exceeds pastebin’s size limit.]

Best,


 – ben

On 11 Aug 2015, at 04:38, Steven Yi [via Csound] <[hidden email]> wrote:

This latest pastebin seems to have different behavior than the others. 
I'm getting a crash in deact, deactivating what looks like an infinite 
loop in a UDO.  I'm not really sure what the cause of that is. 
Reverting the fix I put in for labels and gotos 
(https://github.com/csound/csound/commit/24b7e94d1bb5c35e39565bb735f4c6bf81b1aea5) 
that Stephane pointed out in the github issue does make the deact 
crash go away. 

 I got valgrind installed here and with the original pastebin example 
I get a few intermittent errors but trying out various code changes 
doesn't seem to affect the results. Reverting the commit mentioned 
above does not seem to affect the valgrind errors. 


On Sun, Aug 9, 2015 at 6:17 AM, hackbarth <<a href="x-msg://18/user/SendEmail.jtp?type=node&amp;node=5743069&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]> wrote:

> Hi Steven, 
> 
> I still get the same valgrind memory issues with the latest code.  Whats 
> more, I seem to have more errors and issues compared to the 5.06 release 
> code.  The following file-independant csd segfaults for me: 
> 
> http://pastebin.com/UwM4FXaY
> 
> Best, 
>  – ben 
> 
> On 9 Aug 2015, at 03:37, Steven Yi [via Csound] <[hidden email]> wrote: 
> 
> I've just checked out the latest from develop and I did not have any 
> crashes with the pastebin example.  Is this now fixed? 
> 
> On Fri, Aug 7, 2015 at 7:18 AM, hackbarth <<a 
> href="<a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=5743042&amp;amp;i=0">x-msg://3/user/SendEmail.jtp?type=node&amp;node=5743042&amp;i=0" 
> target="_top" rel="nofollow" link="external">[hidden email]> wrote: 
> 
>> Thanks John, will pull and test whenever you have something. 
>> 
>> Best, 
>> Ben 
>> 
>> 
>> 
>> -- 
>> View this message in context: 
>> http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5743021.html
>> Sent from the Csound - Dev mailing list archive at Nabble.com. 
>> 
>> 
>> ------------------------------------------------------------------------------ 
>> _______________________________________________ 
>> Csound-devel mailing list 
>> <a href="<a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=5743042&amp;amp;i=1">x-msg://3/user/SendEmail.jtp?type=node&amp;node=5743042&amp;i=1" 
>> target="_top" rel="nofollow" link="external">[hidden email] 
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> ------------------------------------------------------------------------------ 
> _______________________________________________ 
> Csound-devel mailing list 
> <a href="<a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=5743042&amp;amp;i=2">x-msg://3/user/SendEmail.jtp?type=node&amp;node=5743042&amp;i=2" 
> target="_top" rel="nofollow" link="external">[hidden email] 
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 
> ________________________________ 
> If you reply to this email, your message will be added to the discussion 
> below: 
> http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5743042.html
> To unsubscribe from memory issue on OSX (strings), click here. 
> NAML 
> 
> 
> 
> ________________________________ 
> View this message in context: Re: memory issue on OSX (strings) 
> Sent from the Csound - Dev mailing list archive at Nabble.com. 
> 
> ------------------------------------------------------------------------------ 
> 
> _______________________________________________ 
> Csound-devel mailing list 
> <a href="x-msg://18/user/SendEmail.jtp?type=node&amp;node=5743069&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email] 
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
------------------------------------------------------------------------------ 
_______________________________________________ 
Csound-devel mailing list 
<a href="x-msg://18/user/SendEmail.jtp?type=node&amp;node=5743069&amp;i=2" target="_top" rel="nofollow" link="external">[hidden email] 
https://lists.sourceforge.net/lists/listinfo/csound-devel



If you reply to this email, your message will be added to the discussion below:
http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5743069.html
To unsubscribe from memory issue on OSX (strings), click here.
NAML


99-test.csd.zip (79K) Download Attachment


View this message in context: Re: memory issue on OSX (strings)
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



Date2015-08-12 09:49
Fromhackbarth
SubjectRe: [Cs-dev] memory issue on OSX (strings)
AttachmentsNone  None  

Dear Steven,


 First, I found that the code you had assigning p3 directly from xin was causing a problem.

That was silly!  Thanks for spotting that, I’ve sorted it out.

The problem with the chnget/set hash table must be the issue that is causing my problems.  I’ve never used the chn* opcodes until recently; I’ve been using those (poorly written) opcodes with p3 in xin for years.

Thanks for your time.

Best,
 – ben

On 11 Aug 2015, at 13:58, Steven Yi [via Csound] <[hidden email]> wrote:

I've reverted the change I had introduced originally. This fixes the regressions introduced but reintroduces the problem of labels as the things in UDO's causing jumps to fail.  Seems the lesser of two evils.

The original bug has to do with code like this:

opcode Loop,k,kk
kend,kcnt xin
until kcnt > kend do
kcnt += 1
od
 xout kcnt
endop

Which failed to process the until loop (which compiles to a label and goto).  

Ben: Your latest CSD fails here but again in different ways from before.  In this case, i'm testing with the latest after I commited the reverted code.  It's still crashing, but for a different reason. First, I found that the code you had assigning p3 directly from xin was causing a problem.  I'm not sure from Csound's UDO design that it ever worked to allow this.  Changing the code to swap out idur for p3 in those UDO's, then adding a "p3 = idur" seems to have gotten around that one. After that, there's still a crash having to do with chnget.  Somehow a bad entry has gotten into the channel hash table. I'm not sure what's the story with that though.

I've got to take a break from this.  Hopefully someone else can take a look too.



On Tue, Aug 11, 2015 at 8:13 AM, hackbarth <<a href="x-msg://41/user/SendEmail.jtp?type=node&amp;node=5743076&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]> wrote:
Thanks for the followup Steven.

I’m not particularly bothered by the valgrind errors, but in larger csds with lots of file reads things start crashing reliably for me.

Attached is a csd which consistently segfaults for me (after deact) with the 5.06 release code.  Should work on any machine.  [sorry for the attachment, but the uncompressed score apparently exceeds pastebin’s size limit.]

Best,


 – ben

On 11 Aug 2015, at 04:38, Steven Yi [via Csound] <[hidden email]> wrote:

This latest pastebin seems to have different behavior than the others. 
I'm getting a crash in deact, deactivating what looks like an infinite 
loop in a UDO.  I'm not really sure what the cause of that is. 
Reverting the fix I put in for labels and gotos 
(https://github.com/csound/csound/commit/24b7e94d1bb5c35e39565bb735f4c6bf81b1aea5) 
that Stephane pointed out in the github issue does make the deact 
crash go away. 

 I got valgrind installed here and with the original pastebin example 
I get a few intermittent errors but trying out various code changes 
doesn't seem to affect the results. Reverting the commit mentioned 
above does not seem to affect the valgrind errors. 


On Sun, Aug 9, 2015 at 6:17 AM, hackbarth <<a href="<a href="x-msg://18/user/SendEmail.jtp?type=node&amp;amp;node=5743069&amp;amp;i=0">x-msg://18/user/SendEmail.jtp?type=node&amp;node=5743069&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]> wrote:

> Hi Steven, 

> I still get the same valgrind memory issues with the latest code.  Whats 
> more, I seem to have more errors and issues compared to the 5.06 release 
> code.  The following file-independant csd segfaults for me: 

http://pastebin.com/UwM4FXaY

> Best, 
>  – ben 

> On 9 Aug 2015, at 03:37, Steven Yi [via Csound] <[hidden email]> wrote: 

> I've just checked out the latest from develop and I did not have any 
> crashes with the pastebin example.  Is this now fixed? 

> On Fri, Aug 7, 2015 at 7:18 AM, hackbarth <<a > href="<a href="<a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;amp;node=5743042&amp;amp;amp;i=0">x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=5743042&amp;amp;i=0"><a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=5743042&amp;amp;i=0">x-msg://3/user/SendEmail.jtp?type=node&amp;node=5743042&amp;i=0" 

> target="_top" rel="nofollow" link="external">[hidden email]> wrote: 
> 
>> Thanks John, will pull and test whenever you have something. 
>> 
>> Best, 
>> Ben 
>> 
>> 
>> 
>> -- 
>> View this message in context: 
>> http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5743021.html
>> Sent from the Csound - Dev mailing list archive at Nabble.com. 
>> 
>> 
>> ------------------------------------------------------------------------------ 
>> _______________________________________________ 
>> Csound-devel mailing list 
>> <a href="<a href="<a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;amp;node=5743042&amp;amp;amp;i=1">x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=5743042&amp;amp;i=1"><a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=5743042&amp;amp;i=1">x-msg://3/user/SendEmail.jtp?type=node&amp;node=5743042&amp;i=1" 
>> target="_top" rel="nofollow" link="external">[hidden email] 
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> ------------------------------------------------------------------------------ 
> _______________________________________________ 
> Csound-devel mailing list 
> <a href="<a href="<a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;amp;node=5743042&amp;amp;amp;i=2">x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=5743042&amp;amp;i=2"><a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=5743042&amp;amp;i=2">x-msg://3/user/SendEmail.jtp?type=node&amp;node=5743042&amp;i=2" 

> target="_top" rel="nofollow" link="external">[hidden email] 
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 
> ________________________________ 
> If you reply to this email, your message will be added to the discussion 
> below: 
> http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5743042.html
> To unsubscribe from memory issue on OSX (strings), click here. 
> NAML 
> 
> 
> 
> ________________________________ 
> View this message in context: Re: memory issue on OSX (strings) 
> Sent from the Csound - Dev mailing list archive at Nabble.com. 
> 
> ------------------------------------------------------------------------------ 
> 
> _______________________________________________ 
> Csound-devel mailing list 
> <a href="<a href="x-msg://18/user/SendEmail.jtp?type=node&amp;amp;node=5743069&amp;amp;i=1">x-msg://18/user/SendEmail.jtp?type=node&amp;node=5743069&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email] 
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
------------------------------------------------------------------------------ 
_______________________________________________ 
Csound-devel mailing list 
<a href="<a href="x-msg://18/user/SendEmail.jtp?type=node&amp;amp;node=5743069&amp;amp;i=2">x-msg://18/user/SendEmail.jtp?type=node&amp;node=5743069&amp;i=2" target="_top" rel="nofollow" link="external">[hidden email] 
https://lists.sourceforge.net/lists/listinfo/csound-devel



If you reply to this email, your message will be added to the discussion below:
http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5743069.html
To unsubscribe from memory issue on OSX (strings), click here.
NAML


99-test.csd.zip (79K) Download Attachment


View this message in context: Re: memory issue on OSX (strings)
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
<a href="x-msg://41/user/SendEmail.jtp?type=node&amp;node=5743076&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel



------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
<a href="x-msg://41/user/SendEmail.jtp?type=node&amp;node=5743076&amp;i=2" target="_top" rel="nofollow" link="external">[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel



If you reply to this email, your message will be added to the discussion below:
http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5743076.html
To unsubscribe from memory issue on OSX (strings), click here.
NAML



View this message in context: Re: memory issue on OSX (strings)
Sent from the Csound - Dev mailing list archive at Nabble.com.

Date2015-08-13 14:38
FromSteven Yi
SubjectRe: [Cs-dev] memory issue on OSX (strings)
AttachmentsNone  None  
Hi Brian,

If the p3 assignment in xin worked previously, then I suppose we could address it as a regression. However, I think personally I'd rather treat it as unspecified behavior and a bug. I guess we could put up a vote or something?

For channels, I guess we're moving forward and that's the next step to investigate.

On Wed, Aug 12, 2015 at 4:49 AM, hackbarth <hackbarth@gmail.com> wrote:
Dear Steven,

 First, I found that the code you had assigning p3 directly from xin was causing a problem.

That was silly!  Thanks for spotting that, I’ve sorted it out.

The problem with the chnget/set hash table must be the issue that is causing my problems.  I’ve never used the chn* opcodes until recently; I’ve been using those (poorly written) opcodes with p3 in xin for years.

Thanks for your time.

Best,
 – ben

On 11 Aug 2015, at 13:58, Steven Yi [via Csound] <[hidden email]> wrote:

I've reverted the change I had introduced originally. This fixes the regressions introduced but reintroduces the problem of labels as the things in UDO's causing jumps to fail.  Seems the lesser of two evils.

The original bug has to do with code like this:

opcode Loop,k,kk
kend,kcnt xin
until kcnt > kend do
kcnt += 1
od
 xout kcnt
endop

Which failed to process the until loop (which compiles to a label and goto).  

Ben: Your latest CSD fails here but again in different ways from before.  In this case, i'm testing with the latest after I commited the reverted code.  It's still crashing, but for a different reason. First, I found that the code you had assigning p3 directly from xin was causing a problem.  I'm not sure from Csound's UDO design that it ever worked to allow this.  Changing the code to swap out idur for p3 in those UDO's, then adding a "p3 = idur" seems to have gotten around that one. After that, there's still a crash having to do with chnget.  Somehow a bad entry has gotten into the channel hash table. I'm not sure what's the story with that though.

I've got to take a break from this.  Hopefully someone else can take a look too.



On Tue, Aug 11, 2015 at 8:13 AM, hackbarth <<a href="x-msg://41/user/SendEmail.jtp?type=node&amp;node=5743076&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]> wrote:
Thanks for the followup Steven.

I’m not particularly bothered by the valgrind errors, but in larger csds with lots of file reads things start crashing reliably for me.

Attached is a csd which consistently segfaults for me (after deact) with the 5.06 release code.  Should work on any machine.  [sorry for the attachment, but the uncompressed score apparently exceeds pastebin’s size limit.]

Best,


 – ben

On 11 Aug 2015, at 04:38, Steven Yi [via Csound] <[hidden email]> wrote:

This latest pastebin seems to have different behavior than the others. 
I'm getting a crash in deact, deactivating what looks like an infinite 
loop in a UDO.  I'm not really sure what the cause of that is. 
Reverting the fix I put in for labels and gotos 
(https://github.com/csound/csound/commit/24b7e94d1bb5c35e39565bb735f4c6bf81b1aea5) 
that Stephane pointed out in the github issue does make the deact 
crash go away. 

 I got valgrind installed here and with the original pastebin example 
I get a few intermittent errors but trying out various code changes 
doesn't seem to affect the results. Reverting the commit mentioned 
above does not seem to affect the valgrind errors. 


On Sun, Aug 9, 2015 at 6:17 AM, hackbarth <<a href="<a href="x-msg://18/user/SendEmail.jtp?type=node&amp;amp;node=5743069&amp;amp;i=0">x-msg://18/user/SendEmail.jtp?type=node&amp;node=5743069&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]> wrote:

> Hi Steven, 

> I still get the same valgrind memory issues with the latest code.  Whats 
> more, I seem to have more errors and issues compared to the 5.06 release 
> code.  The following file-independant csd segfaults for me: 

http://pastebin.com/UwM4FXaY

> Best, 
>  – ben 

> On 9 Aug 2015, at 03:37, Steven Yi [via Csound] <[hidden email]> wrote: 

> I've just checked out the latest from develop and I did not have any 
> crashes with the pastebin example.  Is this now fixed? 

> On Fri, Aug 7, 2015 at 7:18 AM, hackbarth <<a 
> href="<a href="<a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;amp;node=5743042&amp;amp;amp;i=0">x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=5743042&amp;amp;i=0"><a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=5743042&amp;amp;i=0">x-msg://3/user/SendEmail.jtp?type=node&amp;node=5743042&amp;i=0" 

> target="_top" rel="nofollow" link="external">[hidden email]> wrote: 
> 
>> Thanks John, will pull and test whenever you have something. 
>> 
>> Best, 
>> Ben 
>> 
>> 
>> 
>> -- 
>> View this message in context: 
>> http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5743021.html
>> Sent from the Csound - Dev mailing list archive at Nabble.com. 
>> 
>> 
>> ------------------------------------------------------------------------------ 
>> _______________________________________________ 
>> Csound-devel mailing list 
>> <a href="<a href="<a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;amp;node=5743042&amp;amp;amp;i=1">x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=5743042&amp;amp;i=1"><a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=5743042&amp;amp;i=1">x-msg://3/user/SendEmail.jtp?type=node&amp;node=5743042&amp;i=1" 
>> target="_top" rel="nofollow" link="external">[hidden email] 
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> ------------------------------------------------------------------------------ 
> _______________________________________________ 
> Csound-devel mailing list 
> <a href="<a href="<a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;amp;node=5743042&amp;amp;amp;i=2">x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=5743042&amp;amp;i=2"><a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=5743042&amp;amp;i=2">x-msg://3/user/SendEmail.jtp?type=node&amp;node=5743042&amp;i=2" 

> target="_top" rel="nofollow" link="external">[hidden email] 
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 
> ________________________________ 
> If you reply to this email, your message will be added to the discussion 
> below: 
> http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5743042.html
> To unsubscribe from memory issue on OSX (strings), click here. 
> NAML 
> 
> 
> 
> ________________________________ 
> View this message in context: Re: memory issue on OSX (strings) 
> Sent from the Csound - Dev mailing list archive at Nabble.com. 
> 
> ------------------------------------------------------------------------------ 
> 
> _______________________________________________ 
> Csound-devel mailing list 
> <a href="<a href="x-msg://18/user/SendEmail.jtp?type=node&amp;amp;node=5743069&amp;amp;i=1">x-msg://18/user/SendEmail.jtp?type=node&amp;node=5743069&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email] 
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
------------------------------------------------------------------------------ 
_______________________________________________ 
Csound-devel mailing list 
<a href="<a href="x-msg://18/user/SendEmail.jtp?type=node&amp;amp;node=5743069&amp;amp;i=2">x-msg://18/user/SendEmail.jtp?type=node&amp;node=5743069&amp;i=2" target="_top" rel="nofollow" link="external">[hidden email] 
https://lists.sourceforge.net/lists/listinfo/csound-devel



If you reply to this email, your message will be added to the discussion below:
http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5743069.html
To unsubscribe from memory issue on OSX (strings), click here.
NAML


99-test.csd.zip (79K) Download Attachment


View this message in context: Re: memory issue on OSX (strings)
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
<a href="x-msg://41/user/SendEmail.jtp?type=node&amp;node=5743076&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel



------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
<a href="x-msg://41/user/SendEmail.jtp?type=node&amp;node=5743076&amp;i=2" target="_top" rel="nofollow" link="external">[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel



If you reply to this email, your message will be added to the discussion below:
http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5743076.html
To unsubscribe from memory issue on OSX (strings), click here.
NAML



View this message in context: Re: memory issue on OSX (strings)
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



Date2015-08-17 18:20
Fromhackbarth
SubjectRe: [Cs-dev] memory issue on OSX (strings)
AttachmentsNone  None  

Dear Steven,


If the p3 assignment in xin worked previously, then I suppose we could address it as a regression. However, I think personally I'd rather treat it as unspecified behavior and a bug. I guess we could put up a vote or something?

No, I agree that this shouldn’t be supported behaviour.

For channels, I guess we're moving forward and that's the next step to investigate.


Does anyone have any input on the channel hash table bug?

Best,
 – ben

On 13 Aug 2015, at 14:38, Steven Yi [via Csound] <[hidden email]> wrote:

Hi Brian,


For channels, I guess we're moving forward and that's the next step to investigate.

On Wed, Aug 12, 2015 at 4:49 AM, hackbarth <<a href="x-msg://9/user/SendEmail.jtp?type=node&amp;node=5743113&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]> wrote:
Dear Steven,

 First, I found that the code you had assigning p3 directly from xin was causing a problem.

That was silly!  Thanks for spotting that, I’ve sorted it out.

The problem with the chnget/set hash table must be the issue that is causing my problems.  I’ve never used the chn* opcodes until recently; I’ve been using those (poorly written) opcodes with p3 in xin for years.

Thanks for your time.

Best,
 – ben

On 11 Aug 2015, at 13:58, Steven Yi [via Csound] <[hidden email]> wrote:

I've reverted the change I had introduced originally. This fixes the regressions introduced but reintroduces the problem of labels as the things in UDO's causing jumps to fail.  Seems the lesser of two evils.

The original bug has to do with code like this:

opcode Loop,k,kk
kend,kcnt xin
until kcnt > kend do
kcnt += 1
od
 xout kcnt
endop

Which failed to process the until loop (which compiles to a label and goto).  

Ben: Your latest CSD fails here but again in different ways from before.  In this case, i'm testing with the latest after I commited the reverted code.  It's still crashing, but for a different reason. First, I found that the code you had assigning p3 directly from xin was causing a problem.  I'm not sure from Csound's UDO design that it ever worked to allow this.  Changing the code to swap out idur for p3 in those UDO's, then adding a "p3 = idur" seems to have gotten around that one. After that, there's still a crash having to do with chnget.  Somehow a bad entry has gotten into the channel hash table. I'm not sure what's the story with that though.

I've got to take a break from this.  Hopefully someone else can take a look too.



On Tue, Aug 11, 2015 at 8:13 AM, hackbarth <<a href="<a href="x-msg://41/user/SendEmail.jtp?type=node&amp;amp;node=5743076&amp;amp;i=0">x-msg://41/user/SendEmail.jtp?type=node&amp;node=5743076&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]> wrote:
Thanks for the followup Steven.

I’m not particularly bothered by the valgrind errors, but in larger csds with lots of file reads things start crashing reliably for me.

Attached is a csd which consistently segfaults for me (after deact) with the 5.06 release code.  Should work on any machine.  [sorry for the attachment, but the uncompressed score apparently exceeds pastebin’s size limit.]

Best,


 – ben

On 11 Aug 2015, at 04:38, Steven Yi [via Csound] <[hidden email]> wrote:

This latest pastebin seems to have different behavior than the others. 
I'm getting a crash in deact, deactivating what looks like an infinite 
loop in a UDO.  I'm not really sure what the cause of that is. 
Reverting the fix I put in for labels and gotos 
(https://github.com/csound/csound/commit/24b7e94d1bb5c35e39565bb735f4c6bf81b1aea5) 
that Stephane pointed out in the github issue does make the deact 
crash go away. 

 I got valgrind installed here and with the original pastebin example 
I get a few intermittent errors but trying out various code changes 
doesn't seem to affect the results. Reverting the commit mentioned 
above does not seem to affect the valgrind errors. 


On Sun, Aug 9, 2015 at 6:17 AM, hackbarth <<a href="<a href="<a href="x-msg://18/user/SendEmail.jtp?type=node&amp;amp;amp;node=5743069&amp;amp;amp;i=0">x-msg://18/user/SendEmail.jtp?type=node&amp;amp;node=5743069&amp;amp;i=0"><a href="x-msg://18/user/SendEmail.jtp?type=node&amp;amp;node=5743069&amp;amp;i=0">x-msg://18/user/SendEmail.jtp?type=node&amp;node=5743069&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]> wrote:

> Hi Steven, 

> I still get the same valgrind memory issues with the latest code.  Whats 
> more, I seem to have more errors and issues compared to the 5.06 release 
> code.  The following file-independant csd segfaults for me: 

http://pastebin.com/UwM4FXaY

> Best, 
>  – ben 

> On 9 Aug 2015, at 03:37, Steven Yi [via Csound] <[hidden email]> wrote: 

> I've just checked out the latest from develop and I did not have any 
> crashes with the pastebin example.  Is this now fixed? 

> On Fri, Aug 7, 2015 at 7:18 AM, hackbarth <<a 
> href="<a href="<a href="<a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;amp;amp;node=5743042&amp;amp;amp;amp;i=0">x-msg://3/user/SendEmail.jtp?type=node&amp;amp;amp;node=5743042&amp;amp;amp;i=0"><a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;amp;node=5743042&amp;amp;amp;i=0">x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=5743042&amp;amp;i=0"><a href="<a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;amp;node=5743042&amp;amp;amp;i=0">x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=5743042&amp;amp;i=0"><a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=5743042&amp;amp;i=0">x-msg://3/user/SendEmail.jtp?type=node&amp;node=5743042&amp;i=0" 
> target="_top" rel="nofollow" link="external">[hidden email]> wrote: 
> 
>> Thanks John, will pull and test whenever you have something. 
>> 
>> Best, 
>> Ben 
>> 
>> 
>> 
>> -- 
>> View this message in context: 
>> http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5743021.html
>> Sent from the Csound - Dev mailing list archive at Nabble.com. 
>> 
>> 
>> ------------------------------------------------------------------------------ 
>> _______________________________________________ 
>> Csound-devel mailing list 
>> <a href="<a href="<a href="<a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;amp;amp;node=5743042&amp;amp;amp;amp;i=1">x-msg://3/user/SendEmail.jtp?type=node&amp;amp;amp;node=5743042&amp;amp;amp;i=1"><a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;amp;node=5743042&amp;amp;amp;i=1">x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=5743042&amp;amp;i=1"><a href="<a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;amp;node=5743042&amp;amp;amp;i=1">x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=5743042&amp;amp;i=1"><a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=5743042&amp;amp;i=1">x-msg://3/user/SendEmail.jtp?type=node&amp;node=5743042&amp;i=1" 
>> target="_top" rel="nofollow" link="external">[hidden email] 
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> ------------------------------------------------------------------------------ 
> _______________________________________________ 
> Csound-devel mailing list 
> <a href="<a href="<a href="<a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;amp;amp;node=5743042&amp;amp;amp;amp;i=2">x-msg://3/user/SendEmail.jtp?type=node&amp;amp;amp;node=5743042&amp;amp;amp;i=2"><a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;amp;node=5743042&amp;amp;amp;i=2">x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=5743042&amp;amp;i=2"><a href="<a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;amp;node=5743042&amp;amp;amp;i=2">x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=5743042&amp;amp;i=2"><a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=5743042&amp;amp;i=2">x-msg://3/user/SendEmail.jtp?type=node&amp;node=5743042&amp;i=2" 
> target="_top" rel="nofollow" link="external">[hidden email] 
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 
> ________________________________ 
> If you reply to this email, your message will be added to the discussion 
> below: 
> http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5743042.html
> To unsubscribe from memory issue on OSX (strings), click here. 
> NAML 
> 
> 
> 
> ________________________________ 
> View this message in context: Re: memory issue on OSX (strings) 
> Sent from the Csound - Dev mailing list archive at Nabble.com. 
> 
> ------------------------------------------------------------------------------ 
> 
> _______________________________________________ 
> Csound-devel mailing list 
> <a href="<a href="<a href="x-msg://18/user/SendEmail.jtp?type=node&amp;amp;amp;node=5743069&amp;amp;amp;i=1">x-msg://18/user/SendEmail.jtp?type=node&amp;amp;node=5743069&amp;amp;i=1"><a href="x-msg://18/user/SendEmail.jtp?type=node&amp;amp;node=5743069&amp;amp;i=1">x-msg://18/user/SendEmail.jtp?type=node&amp;node=5743069&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email] 
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
------------------------------------------------------------------------------ 
_______________________________________________ 
Csound-devel mailing list 
<a href="<a href="<a href="x-msg://18/user/SendEmail.jtp?type=node&amp;amp;amp;node=5743069&amp;amp;amp;i=2">x-msg://18/user/SendEmail.jtp?type=node&amp;amp;node=5743069&amp;amp;i=2"><a href="x-msg://18/user/SendEmail.jtp?type=node&amp;amp;node=5743069&amp;amp;i=2">x-msg://18/user/SendEmail.jtp?type=node&amp;node=5743069&amp;i=2" target="_top" rel="nofollow" link="external">[hidden email] 
https://lists.sourceforge.net/lists/listinfo/csound-devel



If you reply to this email, your message will be added to the discussion below:
http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5743069.html
To unsubscribe from memory issue on OSX (strings), click here.
NAML


99-test.csd.zip (79K) Download Attachment


View this message in context: Re: memory issue on OSX (strings)
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
<a href="<a href="x-msg://41/user/SendEmail.jtp?type=node&amp;amp;node=5743076&amp;amp;i=1">x-msg://41/user/SendEmail.jtp?type=node&amp;node=5743076&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel



------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
<a href="<a href="x-msg://41/user/SendEmail.jtp?type=node&amp;amp;node=5743076&amp;amp;i=2">x-msg://41/user/SendEmail.jtp?type=node&amp;node=5743076&amp;i=2" target="_top" rel="nofollow" link="external">[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel



If you reply to this email, your message will be added to the discussion below:
http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5743076.html
To unsubscribe from memory issue on OSX (strings), click here.
NAML



View this message in context: Re: memory issue on OSX (strings)
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
<a href="x-msg://9/user/SendEmail.jtp?type=node&amp;node=5743113&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel



------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
<a href="x-msg://9/user/SendEmail.jtp?type=node&amp;node=5743113&amp;i=2" target="_top" rel="nofollow" link="external">[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel



If you reply to this email, your message will be added to the discussion below:
http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5743113.html
To unsubscribe from memory issue on OSX (strings), click here.
NAML



View this message in context: Re: memory issue on OSX (strings)
Sent from the Csound - Dev mailing list archive at Nabble.com.

Date2015-08-21 16:47
Fromhackbarth
SubjectRe: [Cs-dev] memory issue on OSX (strings)
Hello!

Help is still being sought on this one.  I'm attaching a new csd which fixes
issues with p3 and udos found in previous versions.  Any ideas as to why it
is still seg faulting?

Thanks!
ben 100-test.zip
  



--
View this message in context: http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5743238.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2015-08-22 10:06
FromVictor Lazzarini
SubjectRe: [Cs-dev] memory issue on OSX (strings)
Hi Ben,

we are still looking at this, it’s just that you’ve caught us in a very busy period, which is coinciding
with a lot of other things, including holidays. We hope to tackle it very soon.

Regards
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 21 Aug 2015, at 16:47, hackbarth  wrote:
> 
> Hello!
> 
> Help is still being sought on this one.  I'm attaching a new csd which fixes
> issues with p3 and udos found in previous versions.  Any ideas as to why it
> is still seg faulting?
> 
> Thanks!
> ben 100-test.zip
>   
> 
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5743238.html
> Sent from the Csound - Dev mailing list archive at Nabble.com.
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourcef

Date2015-08-24 15:58
Fromhackbarth
SubjectRe: [Cs-dev] memory issue on OSX (strings)
thanks Victor.

Best, Ben



--
View this message in context: http://csound.1045644.n5.nabble.com/memory-issue-on-OSX-strings-tp5742998p5743274.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net