LISTSERV mailing list manager LISTSERV 16.5

Help for CSOUND Archives


CSOUND Archives

CSOUND Archives


CSOUND@LISTSERV.HEANET.IE


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

CSOUND Home

CSOUND Home

CSOUND  January 2016

CSOUND January 2016

Subject:

Re: How to use String filenames, filelen and diskin2 with OSC?

From:

Guillermo Senna <[log in to unmask]>

Reply-To:

A discussion list for users of Csound <[log in to unmask]>

Date:

Mon, 25 Jan 2016 17:50:09 -0300

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (114 lines)

So Anton, would it be too difficult to replace the OSC part with pure 
time-triggered Csound code? I mean as a way to confirm that the problem 
has to do with OSC.

On 25/01/16 17:42, jpff wrote:
> So error most likely in OSX code readig a string.  I may ave time to 
> look, but nit really my area.
>
> On Mon, 25 Jan 2016, Anton Kholomiov wrote:
>
>> It's probably caused by the following line in my code:
>> ~~~
>> gSFiles[kChannel] strcpyk SFile
>> ~~~
>>
>> Where  kChannel and SFile are filled with values that I receive in 
>> the OSC
>> message
>>
>> 2016-01-25 23:25 GMT+03:00 jpff <[log in to unmask]>:
>>       That backtrace looks like a double free in string_copy_value where
>>       id attempts to delete the space in the dst arument. Really I
>>       would love tis run under valgrind or ElectricFence or similar
>>
>>       On Mon, 25 Jan 2016, Anton Kholomiov wrote:
>>
>>             Here is make trace:
>>             ~~~
>>             diskin2: opened '/home/anton/Seashore.wav':
>>                      44100 Hz, 2 channel(s), 546731 sample frames
>>              i   1 time   220.31819:   100.00100
>>              i   1 time   220.31819:    80.00100
>>             *** Error in `/usr/local/bin/csound': free(): invalid
>>             next size (fast):
>>             0x0000000000843840 ***
>>
>>             Program received signal SIGABRT, Aborted.
>>             0x00007ffff72decc9 in __GI_raise (sig=sig@entry=6)
>>                 at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
>>             56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such
>>             file or directory.
>>             (gdb) bt
>>             #0  0x00007ffff72decc9 in __GI_raise (sig=sig@entry=6)
>>                 at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
>>             #1  0x00007ffff72e20d8 in __GI_abort () at abort.c:89
>>             #2  0x00007ffff731b394 in __libc_message
>>             (do_abort=do_abort@entry=1,
>>                 fmt=fmt@entry=0x7ffff7429b28 "*** Error in `%s':
>>             %s: 0x%s ***\n")
>>                 at ../sysdeps/posix/libc_fatal.c:175
>>             #3  0x00007ffff732766e in malloc_printerr
>>             (ptr=<optimized out>,
>>                 str=0x7ffff7429cc8 "free(): invalid next size
>>             (fast)", action=1)
>>                 at malloc.c:4996
>>             #4  _int_free (av=<optimized out>, p=<optimized out>,
>>             have_lock=0)
>>                 at malloc.c:3840
>>             #5  0x00007ffff78e911f in mfree (csound=0x604040,
>>             p=0x843850)
>>                 at /home/anton/tools/csound/Engine/memalloc.c:172
>>             #6  0x00007ffff78fdd44 in string_copy_value
>>             (csound=0x604040, dest=0x8cc1c8,
>>                 src=0x7b5a70) at
>> /home/anton/tools/csound/Engine/csound_standard_types.c:70
>>             #7  0x00007ffff79cc2d3 in array_get (csound=0x604040,
>>             p=0x8d12d0)
>>                 at /home/anton/tools/csound/Opcodes/arrays.c:264
>>             #8  0x00007ffff7a4e8f5 in kperf_nodebug
>>             (csound=0x604040)
>>                 at /home/anton/tools/csound/Top/csound.c:1552
>>             #9  0x00007ffff7a500a3 in csoundPerform
>>             (csound=0x604040)
>>                 at /home/anton/tools/csound/Top/csound.c:2044
>>             #10 0x000000000040181d in main (argc=2,
>>             argv=0x7fffffffd7b8)
>>                 at
>> /home/anton/tools/csound/frontends/csound/csound_main.c:318
>>             ~~~
>>
>>
>> Trimmed as it is messing thedigest
>>
>> ==John ff
>>
>> Csound mailing list
>> [log in to unmask]
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>>
>>
>> Csound mailing list [log in to unmask]
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> https://github.com/csound/csound/issues Discussions of bugs and 
>> features can
>> be posted here
>>
>
> Csound mailing list
> [log in to unmask]
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
[log in to unmask]
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015

ATOM RSS1 RSS2



LISTSERV.HEANET.IE

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager