Csound Csound-dev Csound-tekno Search About

[Csnd] Possible bug with vbaplsinit?

Date2014-03-19 16:04
FromCasey Mongoven
Subject[Csnd] Possible bug with vbaplsinit?
Hi all,

Could someone else with Csound 6.02 try to run this code and see if you get
warnings and then a segmentation fault like I do:



-odac


sr=44100
ksmps=32
nchnls=2
0dbfs=1

zakinit 2, 1
vbaplsinit 2, 2, 0.0, 10.0

instr 1
a_signal vco2 0.5, 340
vbapz 2, 0, a(0.0), k(0.0)
a_p0 zar 0
a_p1 zar 1
a_0 = a_signal*a_p0
a_1 = a_signal*a_p1
outs a_0, a_1
endin



i1 0 1
e





I get the following:

Caseys-iMac:Desktop cm$ csound test666.csd -o test.aif
0dBFS level = 32768.0
Csound version 6.02.0 (double samples) Mar 18 2014
libsndfile-1.0.25
UnifiedCSD:  test666.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
rtaudio: PortAudio module enabled ... 
using callback interface
Elapsed time at end of orchestra compile: real: 0.002s, CPU: 0.002s
sorting score ...
	... done
Elapsed time at end of score sort: real: 0.002s, CPU: 0.002s
Csound version 6.02.0 (double samples) Mar 18 2014
graphics suppressed, ascii substituted
0dBFS level = 1.0
WARNING: dim : 2

WARNING: Pair of speakers at 10.000000 and 0.000000 ignored

WARNING: 
Configured loudspeakers

WARNING: Pair 0 Loudspeakers: 
WARNING: 1 
WARNING: 2 
WARNING: 


Matrix 1.000000 -5.671282 -0.000000 5.758770 

orch now loaded
audio buffered in 1024 sample-frame blocks
writing 4096-byte blks of shorts to test.aif (AIFF)
SECTION 1:
new alloc for instr 1:
Csound tidy up: Segmentation fault
inactive allocs returned to freespace
end of score.		   overall amps:  0.00000  0.00000
	   overall samples out of range:        0        0
0 errors in performance
Elapsed time at end of performance: real: 0.264s, CPU: 0.014s
2048 4096 sample blks of shorts written to test.aif (AIFF)







--
View this message in context: http://csound.1045644.n5.nabble.com/Possible-bug-with-vbaplsinit-tp5733340.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to the Sourceforge bug trackers
csound6:
            https://sourceforge.net/p/csound/tickets/
csound5:
            https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2014-03-19 16:08
FromRory Walsh
SubjectRe: [Csnd] Possible bug with vbaplsinit?
I can confirm. A backtrace reveals an issue with vbap_zak:

#0  0x00007ffff7a096a8 in vbap_zak_init (csound=0x604010, p=0x7da260)
    at /home/rory/sourcecode/csound-csound6-git/Opcodes/vbap_zak.c:224
#1  0x00007ffff7902091 in insert (csound=0x604010, insno=1, newevtp=0x607970)
    at /home/rory/sourcecode/csound-csound6-git/Engine/insert.c:273
#2  0x00007ffff7910d1a in process_score_event (csound=0x604010, evt=0x607970,
    rtEvt=0) at /home/rory/sourcecode/csound-csound6-git/Engine/musmon.c:757
#3  0x00007ffff79116bf in sensevents (csound=0x604010)
    at /home/rory/sourcecode/csound-csound6-git/Engine/musmon.c:946
#4  0x00007ffff7a5fb8a in csoundPerform (csound=0x604010)
    at /home/rory/sourcecode/csound-csound6-git/Top/csound.c:1724
#5  0x00000000004015a5 in main ()



On 19 March 2014 16:04, Casey Mongoven <cm@caseymongoven.com> wrote:
Hi all,

Could someone else with Csound 6.02 try to run this code and see if you get
warnings and then a segmentation fault like I do:

<CsoundSynthesizer>
<CsOptions>
-odac
</CsOptions>
<CsInstruments>
sr=44100
ksmps=32
nchnls=2
0dbfs=1

zakinit 2, 1
vbaplsinit 2, 2, 0.0, 10.0

instr 1
a_signal vco2 0.5, 340
vbapz 2, 0, a(0.0), k(0.0)
a_p0 zar 0
a_p1 zar 1
a_0 = a_signal*a_p0
a_1 = a_signal*a_p1
outs a_0, a_1
endin

</CsInstruments>
<CsScore>
i1 0 1
e
</CsScore>
</CsoundSynthesizer>



I get the following:

Caseys-iMac:Desktop cm$ csound test666.csd -o test.aif
0dBFS level = 32768.0
Csound version 6.02.0 (double samples) Mar 18 2014
libsndfile-1.0.25
UnifiedCSD:  test666.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
rtaudio: PortAudio module enabled ...
using callback interface
Elapsed time at end of orchestra compile: real: 0.002s, CPU: 0.002s
sorting score ...
        ... done
Elapsed time at end of score sort: real: 0.002s, CPU: 0.002s
Csound version 6.02.0 (double samples) Mar 18 2014
graphics suppressed, ascii substituted
0dBFS level = 1.0
WARNING: dim : 2

WARNING: Pair of speakers at 10.000000 and 0.000000 ignored

WARNING:
Configured loudspeakers

WARNING: Pair 0 Loudspeakers:
WARNING: 1
WARNING: 2
WARNING:


Matrix 1.000000 -5.671282 -0.000000 5.758770

orch now loaded
audio buffered in 1024 sample-frame blocks
writing 4096-byte blks of shorts to test.aif (AIFF)
SECTION 1:
new alloc for instr 1:
Csound tidy up: Segmentation fault
inactive allocs returned to freespace
end of score.              overall amps:  0.00000  0.00000
           overall samples out of range:        0        0
0 errors in performance
Elapsed time at end of performance: real: 0.264s, CPU: 0.014s
2048 4096 sample blks of shorts written to test.aif (AIFF)







--
View this message in context: http://csound.1045644.n5.nabble.com/Possible-bug-with-vbaplsinit-tp5733340.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to the Sourceforge bug trackers
csound6:
            https://sourceforge.net/p/csound/tickets/
csound5:
            https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




Date2014-03-19 17:33
FromMichael Gogins
SubjectRe: [Csnd] Possible bug with vbaplsinit?
I get a segment fault using CsoundQt 6.02 on Windows 7.

Regards,
Mike


-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Wed, Mar 19, 2014 at 12:04 PM, Casey Mongoven <cm@caseymongoven.com> wrote:
Hi all,

Could someone else with Csound 6.02 try to run this code and see if you get
warnings and then a segmentation fault like I do:

<CsoundSynthesizer>
<CsOptions>
-odac
</CsOptions>
<CsInstruments>
sr=44100
ksmps=32
nchnls=2
0dbfs=1

zakinit 2, 1
vbaplsinit 2, 2, 0.0, 10.0

instr 1
a_signal vco2 0.5, 340
vbapz 2, 0, a(0.0), k(0.0)
a_p0 zar 0
a_p1 zar 1
a_0 = a_signal*a_p0
a_1 = a_signal*a_p1
outs a_0, a_1
endin

</CsInstruments>
<CsScore>
i1 0 1
e
</CsScore>
</CsoundSynthesizer>



I get the following:

Caseys-iMac:Desktop cm$ csound test666.csd -o test.aif
0dBFS level = 32768.0
Csound version 6.02.0 (double samples) Mar 18 2014
libsndfile-1.0.25
UnifiedCSD:  test666.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
rtaudio: PortAudio module enabled ...
using callback interface
Elapsed time at end of orchestra compile: real: 0.002s, CPU: 0.002s
sorting score ...
        ... done
Elapsed time at end of score sort: real: 0.002s, CPU: 0.002s
Csound version 6.02.0 (double samples) Mar 18 2014
graphics suppressed, ascii substituted
0dBFS level = 1.0
WARNING: dim : 2

WARNING: Pair of speakers at 10.000000 and 0.000000 ignored

WARNING:
Configured loudspeakers

WARNING: Pair 0 Loudspeakers:
WARNING: 1
WARNING: 2
WARNING:


Matrix 1.000000 -5.671282 -0.000000 5.758770

orch now loaded
audio buffered in 1024 sample-frame blocks
writing 4096-byte blks of shorts to test.aif (AIFF)
SECTION 1:
new alloc for instr 1:
Csound tidy up: Segmentation fault
inactive allocs returned to freespace
end of score.              overall amps:  0.00000  0.00000
           overall samples out of range:        0        0
0 errors in performance
Elapsed time at end of performance: real: 0.264s, CPU: 0.014s
2048 4096 sample blks of shorts written to test.aif (AIFF)







--
View this message in context: http://csound.1045644.n5.nabble.com/Possible-bug-with-vbaplsinit-tp5733340.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to the Sourceforge bug trackers
csound6:
            https://sourceforge.net/p/csound/tickets/
csound5:
            https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




Date2014-03-19 17:50
FromCasey Mongoven
Subject[Csnd] Re: Possible bug with vbaplsinit?
Thanks you guys. I have posted a bug report. It looks like the code in
Opcodes/vbap_zak.c has been significantly changed from Csound 5.



--
View this message in context: http://csound.1045644.n5.nabble.com/Possible-bug-with-vbaplsinit-tp5733340p5733346.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to the Sourceforge bug trackers
csound6:
            https://sourceforge.net/p/csound/tickets/
csound5:
            https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"