Csound Csound-dev Csound-tekno Search About

[Csnd] sYSMALLOc assertion failed

Date2014-08-22 12:57
Fromebmtranceboy
Subject[Csnd] sYSMALLOc assertion failed
Hi,
I wanted to test the  PitchShifter udo
  
but my simple csd (see the end of my message) crashed dramatically:

virtual_keyboard real time MIDI plugin for Csound
0dBFS level = 32768.0
Csound version 6.03.2 (double samples) Aug 22 2014
libsndfile-1.0.25
UnifiedCSD:  testPitchshifter.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
rtaudio: ALSA module enabled
rtmidi: ALSA Raw MIDI module enabled
Elapsed time at end of orchestra compile: real: 0.009s, CPU: 0.000s
sorting score ...
	... done
Elapsed time at end of score sort: real: 0.010s, CPU: 0.000s
--Csound version 6.03.2 (double samples) Aug 22 2014
displays suppressed
0dBFS level = 1.0
orch now loaded
audio buffered in 256 sample-frame blocks
ALSA output: total buffer size: 1024, period size: 256 
writing 512 sample blks of 64-bit floats to dac 
SECTION 1:
ftable 2:
new alloc for instr 1:
B  0.000 ..  2.000 T  2.000 TT  2.000 M:  1.00000  1.00000
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.		   overall amps:  1.00000  1.00000
	   overall samples out of range:        0        0
0 errors in performance
Elapsed time at end of performance: real: 2.000s, CPU: 0.090s
345 512 sample blks of 64-bit floats written to dac
joel@atlantis:~/Documents/blue$ csound testPitchshifter.csd 
virtual_keyboard real time MIDI plugin for Csound
0dBFS level = 32768.0
Csound version 6.03.2 (double samples) Aug 22 2014
libsndfile-1.0.25
UnifiedCSD:  testPitchshifter.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
rtaudio: ALSA module enabled
rtmidi: ALSA Raw MIDI module enabled
Elapsed time at end of orchestra compile: real: 0.006s, CPU: 0.010s
sorting score ...
	... done
Elapsed time at end of score sort: real: 0.007s, CPU: 0.010s
--Csound version 6.03.2 (double samples) Aug 22 2014
displays suppressed
0dBFS level = 1.0
orch now loaded
audio buffered in 256 sample-frame blocks
csound: malloc.c:2451: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char
*) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk,
fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned
long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 *
(sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) &&
((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)'
failed.
Csound tidy up: Aborted
Csound tidy up: Terminated
Processus arrêté

I don't know if it is my misusing the delay lines or a bug somewhere but the
log is not very intuituive.
Any hint?

testPitchshifter.csd
  



--
View this message in context: http://csound.1045644.n5.nabble.com/sYSMALLOc-assertion-failed-tp5737064.html
Sent from the Csound - General mailing list archive at Nabble.com.


Date2014-08-22 13:25
FromVictor Lazzarini
SubjectRe: [Csnd] sYSMALLOc assertion failed
Not sure, your CSD plays fine here.

========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 22 Aug 2014, at 12:57, ebmtranceboy  wrote:

> Hi,
> I wanted to test the  PitchShifter udo
>   
> but my simple csd (see the end of my message) crashed dramatically:
> 
> virtual_keyboard real time MIDI plugin for Csound
> 0dBFS level = 32768.0
> Csound version 6.03.2 (double samples) Aug 22 2014
> libsndfile-1.0.25
> UnifiedCSD:  testPitchshifter.csd
> STARTING FILE
> Creating options
> Creating orchestra
> Creating score
> rtaudio: ALSA module enabled
> rtmidi: ALSA Raw MIDI module enabled
> Elapsed time at end of orchestra compile: real: 0.009s, CPU: 0.000s
> sorting score ...
> 	... done
> Elapsed time at end of score sort: real: 0.010s, CPU: 0.000s
> --Csound version 6.03.2 (double samples) Aug 22 2014
> displays suppressed
> 0dBFS level = 1.0
> orch now loaded
> audio buffered in 256 sample-frame blocks
> ALSA output: total buffer size: 1024, period size: 256 
> writing 512 sample blks of 64-bit floats to dac 
> SECTION 1:
> ftable 2:
> new alloc for instr 1:
> B  0.000 ..  2.000 T  2.000 TT  2.000 M:  1.00000  1.00000
> Score finished in csoundPerform().
> inactive allocs returned to freespace
> end of score.		   overall amps:  1.00000  1.00000
> 	   overall samples out of range:        0        0
> 0 errors in performance
> Elapsed time at end of performance: real: 2.000s, CPU: 0.090s
> 345 512 sample blks of 64-bit floats written to dac
> joel@atlantis:~/Documents/blue$ csound testPitchshifter.csd 
> virtual_keyboard real time MIDI plugin for Csound
> 0dBFS level = 32768.0
> Csound version 6.03.2 (double samples) Aug 22 2014
> libsndfile-1.0.25
> UnifiedCSD:  testPitchshifter.csd
> STARTING FILE
> Creating options
> Creating orchestra
> Creating score
> rtaudio: ALSA module enabled
> rtmidi: ALSA Raw MIDI module enabled
> Elapsed time at end of orchestra compile: real: 0.006s, CPU: 0.010s
> sorting score ...
> 	... done
> Elapsed time at end of score sort: real: 0.007s, CPU: 0.010s
> --Csound version 6.03.2 (double samples) Aug 22 2014
> displays suppressed
> 0dBFS level = 1.0
> orch now loaded
> audio buffered in 256 sample-frame blocks
> csound: malloc.c:2451: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char
> *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk,
> fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned
> long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 *
> (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) &&
> ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)'
> failed.
> Csound tidy up: Aborted
> Csound tidy up: Terminated
> Processus arrêté
> 
> I don't know if it is my misusing the delay lines or a bug somewhere but the
> log is not very intuituive.
> Any hint?
> 
> testPitchshifter.csd
>   
> 
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/sYSMALLOc-assertion-failed-tp5737064.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> 
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 
> 
> 



Date2014-08-22 14:03
FromSteven Yi
SubjectRe: [Csnd] sYSMALLOc assertion failed
It works here too (tested on OSX 10.9.4, using both i386 and x86_64 builds).

Joel: what OS and version are you using?  Also, are you building from
GIT or source tarball?  And if from GIT, did you build from the master
branch or develop? (I'm wondering if this was a bug that's now gone in
the latest develop branch, or if this is just something Linux
specific, or system-specific)

On Fri, Aug 22, 2014 at 8:25 AM, Victor Lazzarini
 wrote:
> Not sure, your CSD plays fine here.
>
> ========================
> Dr Victor Lazzarini
> Senior Lecturer
> NUI Maynooth, Ireland
> victor dot lazzarini at nuim dot ie
>
>
>
>
> On 22 Aug 2014, at 12:57, ebmtranceboy  wrote:
>
>> Hi,
>> I wanted to test the  PitchShifter udo
>> 
>> but my simple csd (see the end of my message) crashed dramatically:
>>
>> virtual_keyboard real time MIDI plugin for Csound
>> 0dBFS level = 32768.0
>> Csound version 6.03.2 (double samples) Aug 22 2014
>> libsndfile-1.0.25
>> UnifiedCSD:  testPitchshifter.csd
>> STARTING FILE
>> Creating options
>> Creating orchestra
>> Creating score
>> rtaudio: ALSA module enabled
>> rtmidi: ALSA Raw MIDI module enabled
>> Elapsed time at end of orchestra compile: real: 0.009s, CPU: 0.000s
>> sorting score ...
>>       ... done
>> Elapsed time at end of score sort: real: 0.010s, CPU: 0.000s
>> --Csound version 6.03.2 (double samples) Aug 22 2014
>> displays suppressed
>> 0dBFS level = 1.0
>> orch now loaded
>> audio buffered in 256 sample-frame blocks
>> ALSA output: total buffer size: 1024, period size: 256
>> writing 512 sample blks of 64-bit floats to dac
>> SECTION 1:
>> ftable 2:
>> new alloc for instr 1:
>> B  0.000 ..  2.000 T  2.000 TT  2.000 M:  1.00000  1.00000
>> Score finished in csoundPerform().
>> inactive allocs returned to freespace
>> end of score.            overall amps:  1.00000  1.00000
>>          overall samples out of range:        0        0
>> 0 errors in performance
>> Elapsed time at end of performance: real: 2.000s, CPU: 0.090s
>> 345 512 sample blks of 64-bit floats written to dac
>> joel@atlantis:~/Documents/blue$ csound testPitchshifter.csd
>> virtual_keyboard real time MIDI plugin for Csound
>> 0dBFS level = 32768.0
>> Csound version 6.03.2 (double samples) Aug 22 2014
>> libsndfile-1.0.25
>> UnifiedCSD:  testPitchshifter.csd
>> STARTING FILE
>> Creating options
>> Creating orchestra
>> Creating score
>> rtaudio: ALSA module enabled
>> rtmidi: ALSA Raw MIDI module enabled
>> Elapsed time at end of orchestra compile: real: 0.006s, CPU: 0.010s
>> sorting score ...
>>       ... done
>> Elapsed time at end of score sort: real: 0.007s, CPU: 0.010s
>> --Csound version 6.03.2 (double samples) Aug 22 2014
>> displays suppressed
>> 0dBFS level = 1.0
>> orch now loaded
>> audio buffered in 256 sample-frame blocks
>> csound: malloc.c:2451: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char
>> *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk,
>> fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned
>> long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 *
>> (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) &&
>> ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)'
>> failed.
>> Csound tidy up: Aborted
>> Csound tidy up: Terminated
>> Processus arrêté
>>
>> I don't know if it is my misusing the delay lines or a bug somewhere but the
>> log is not very intuituive.
>> Any hint?
>>
>> testPitchshifter.csd
>> 
>>
>>
>>
>> --
>> View this message in context: http://csound.1045644.n5.nabble.com/sYSMALLOc-assertion-failed-tp5737064.html
>> Sent from the Csound - General mailing list archive at Nabble.com.
>>
>>
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>
>>
>>
>
>
>
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>
>


Date2014-08-22 14:46
Fromebmtranceboy
Subject[Csnd] Re: sYSMALLOc assertion failed
> Joel: what OS and version are you using?  Also, are you building from
> GIT or source tarball?  And if from GIT, did you build from the master
> branch or develop? (I'm wondering if this was a bug that's now gone in

I'm using Ubuntu 12.04. In order to build, I've followed these  BUILD.md
   instructions so
I'm not  sure whether it is master (as I thought) or developp (as the URL
suggests).

I guess I've messed something up after trying the float version (by using
USE_DOUBLE=0) then back to double when realizing that blue doesn't work with
float.

Clearly, I ran:

sudo make uninstall
make clean
cmake ../csound
make -j6
sudo make install
sudo ldconfig

What should I do to properly rebuild ?




--
View this message in context: http://csound.1045644.n5.nabble.com/sYSMALLOc-assertion-failed-tp5737064p5737067.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2014-08-22 15:07
Fromjpff@cs.bath.ac.uk
Subject[Csnd] Re:
AttachmentsNone  

Date2014-08-22 15:23
Fromjpff@cs.bath.ac.uk
Subject[Csnd] Re:
AttachmentsNone  

Date2014-08-22 15:33
FromSteven Yi
SubjectRe: [Csnd] Re: sYSMALLOc assertion failed
Since CMake will cache values, you should be sure to reset
USE_DOUBLE=1.  You can do this by adding it to the cmake call:

cmake ../csound -DUSE_DOUBLE=1

or you can delete your build directory and start fresh, or you can
edit CMakeCache.txt and set it to 1, then re-run cmake.

I'm not sure we've done much testing with the float build of Csound
recently.  That might very well be an issue.

On Fri, Aug 22, 2014 at 9:46 AM, ebmtranceboy  wrote:
>> Joel: what OS and version are you using?  Also, are you building from
>> GIT or source tarball?  And if from GIT, did you build from the master
>> branch or develop? (I'm wondering if this was a bug that's now gone in
>
> I'm using Ubuntu 12.04. In order to build, I've followed these  BUILD.md
>    instructions so
> I'm not  sure whether it is master (as I thought) or developp (as the URL
> suggests).
>
> I guess I've messed something up after trying the float version (by using
> USE_DOUBLE=0) then back to double when realizing that blue doesn't work with
> float.
>
> Clearly, I ran:
>
> sudo make uninstall
> make clean
> cmake ../csound
> make -j6
> sudo make install
> sudo ldconfig
>
> What should I do to properly rebuild ?
>
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/sYSMALLOc-assertion-failed-tp5737064p5737067.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>
>

Date2014-08-22 16:56
Fromebmtranceboy
Subject[Csnd] Re: sYSMALLOc assertion failed
All is ok now, I've uninstalled my current version, then installed the new
one (fresh git clone) with the option you mentionned, Steven.
Thank you all!




--
View this message in context: http://csound.1045644.n5.nabble.com/sYSMALLOc-assertion-failed-tp5737064p5737071.html
Sent from the Csound - General mailing list archive at Nabble.com.