Quantcast

[Csnd-dev] vers. 6.09 segfaults

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Csnd-dev] vers. 6.09 segfaults

jhearon

Hi,

It's probably something I'm doing wrong or something changed but I keep getting segfaults in 6.09 builds.


For ex. the pvsanal.csd ex. from the manual


<CsoundSynthesizer>
<CsOptions>
csound -s -d -+rtaudio=ALSA -odevaudio -b1024 -B16384  
</CsOptions>
<CsInstruments>

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

instr 1    ;pvsanal has no influence when there is no transformation of original sound

ifftsize  = p4
ioverlap  = ifftsize / 4
iwinsize  = ifftsize
iwinshape = 1                            ;von-Hann window
Sfile     = "fox.wav"
ain       soundin Sfile
fftin     pvsanal ain, ifftsize, ioverlap, iwinsize, iwinshape    ;fft-analysis of the audio-signal
fftblur   pvscale fftin, p5                    ;scale
aout      pvsynth fftblur                    ;resynthesis
          outs      aout, aout
endin

</CsInstruments>
<CsScore>
;s
i 1 0 3 512 1        ;original sound - ifftsize of pvsanal does not have any influence
i 1 3 3 1024 1        ;even with different
i 1 6 3 2048 1        ;settings

s
i 1 0 3 512 1.5        ;but transformation - here a fifth higher
i 1 3 3 1024 1.5    ;but with different settings
i 1 6 3 2048 1.5    ;for ifftsize of pvsanal
e
</CsScore>
</CsoundSynthesizer>
------------------

run with valgrind


SECTION 1:
new alloc for instr 1:
diskin2: opened '/home/jhearon/CsoundStuff/JFiles/vocoder/manual_examples/fox.wav':
         44100 Hz, 1 channel(s), 121569 sample frames
B  0.000 ..  3.000 T  3.000 TT  3.000 M:  0.99756  0.99756
==2265== Invalid read of size 8
==2265==    at 0x4EC64F7: diskin2_init_.part.2 (in /opt/csound6-git/libcsound64.so.6.0)
==2265==    by 0x4E968D0: insert (in /opt/csound6-git/libcsound64.so.6.0)
==2265==    by 0x4E9C2EF: process_score_event (in /opt/csound6-git/libcsound64.so.6.0)
==2265==    by 0x4E9EE14: sensevents (in /opt/csound6-git/libcsound64.so.6.0)
==2265==    by 0x4E7DC7D: csoundPerform (in /opt/csound6-git/libcsound64.so.6.0)
==2265==    by 0x401402: main (in /opt/csound6-git/csound)
==2265==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==2265==
csound command: Segmentation fault
inactive allocs returned to freespace
end of score.           overall amps:  0.99756  0.99756
       overall samples out of range:        0        0
0 errors in performance

Regards,
Jim

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd-dev] vers. 6.09 segfaults

jpff
break for me too

On Tue, 21 Mar 2017, James Hearon wrote:

>
> Hi,
>
> It's probably something I'm doing wrong or something changed but I keep
> getting segfaults in 6.09 builds.
>
>
> For ex. the pvsanal.csd ex. from the manual
>
>
> <CsoundSynthesizer>
> <CsOptions>
> csound -s -d -+rtaudio=ALSA -odevaudio -b1024 -B16384  
> </CsOptions>
> <CsInstruments>
>
> sr = 44100
> ksmps = 32
> nchnls = 2
> 0dbfs = 1
>
> instr 1    ;pvsanal has no influence when there is no transformation of
> original sound
>
> ifftsize  = p4
> ioverlap  = ifftsize / 4
> iwinsize  = ifftsize
> iwinshape = 1                            ;von-Hann window
> Sfile     = "fox.wav"
> ain       soundin Sfile
> fftin     pvsanal ain, ifftsize, ioverlap, iwinsize, iwinshape  
>  ;fft-analysis of the audio-signal
> fftblur   pvscale fftin, p5                    ;scale
> aout      pvsynth fftblur                    ;resynthesis
>           outs      aout, aout
> endin
>
> </CsInstruments>
> <CsScore>
> ;s
> i 1 0 3 512 1        ;original sound - ifftsize of pvsanal does not have any
> influence
> i 1 3 3 1024 1        ;even with different
> i 1 6 3 2048 1        ;settings
>
> s
> i 1 0 3 512 1.5        ;but transformation - here a fifth higher
> i 1 3 3 1024 1.5    ;but with different settings
> i 1 6 3 2048 1.5    ;for ifftsize of pvsanal
> e
> </CsScore>
> </CsoundSynthesizer>
> ------------------
>
> run with valgrind
>
>
> SECTION 1:
> new alloc for instr 1:
> diskin2: opened
> '/home/jhearon/CsoundStuff/JFiles/vocoder/manual_examples/fox.wav':
>          44100 Hz, 1 channel(s), 121569 sample frames
> B  0.000 ..  3.000 T  3.000 TT  3.000 M:  0.99756  0.99756
> ==2265== Invalid read of size 8
> ==2265==    at 0x4EC64F7: diskin2_init_.part.2 (in
> /opt/csound6-git/libcsound64.so.6.0)
> ==2265==    by 0x4E968D0: insert (in /opt/csound6-git/libcsound64.so.6.0)
> ==2265==    by 0x4E9C2EF: process_score_event (in
> /opt/csound6-git/libcsound64.so.6.0)
> ==2265==    by 0x4E9EE14: sensevents (in /opt/csound6-git/libcsound64.so.6.0)
> ==2265==    by 0x4E7DC7D: csoundPerform (in
> /opt/csound6-git/libcsound64.so.6.0)
> ==2265==    by 0x401402: main (in /opt/csound6-git/csound)
> ==2265==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
> ==2265==
> csound command: Segmentation fault
> inactive allocs returned to freespace
> end of score.           overall amps:  0.99756  0.99756
>        overall samples out of range:        0        0
> 0 errors in performance
>
> Regards,
> Jim
>
>
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd-dev] vers. 6.09 segfaults

Victor Lazzarini
In reply to this post by jhearon
Fixed now.
========================
Prof. 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 Mar 2017, at 16:25, James Hearon <[hidden email]> wrote:
>
> Hi,
> It's probably something I'm doing wrong or something changed but I keep getting segfaults in 6.09 builds.
>
> For ex. the pvsanal.csd ex. from the manual
>
> <CsoundSynthesizer>
> <CsOptions>
> csound -s -d -+rtaudio=ALSA -odevaudio -b1024 -B16384  
> </CsOptions>
> <CsInstruments>
>
> sr = 44100
> ksmps = 32
> nchnls = 2
> 0dbfs = 1
>
> instr 1    ;pvsanal has no influence when there is no transformation of original sound
>
> ifftsize  = p4
> ioverlap  = ifftsize / 4
> iwinsize  = ifftsize
> iwinshape = 1                            ;von-Hann window
> Sfile     = "fox.wav"
> ain       soundin Sfile
> fftin     pvsanal ain, ifftsize, ioverlap, iwinsize, iwinshape    ;fft-analysis of the audio-signal
> fftblur   pvscale fftin, p5                    ;scale
> aout      pvsynth fftblur                    ;resynthesis
>           outs      aout, aout
> endin
>
> </CsInstruments>
> <CsScore>
> ;s
> i 1 0 3 512 1        ;original sound - ifftsize of pvsanal does not have any influence
> i 1 3 3 1024 1        ;even with different
> i 1 6 3 2048 1        ;settings
>
> s
> i 1 0 3 512 1.5        ;but transformation - here a fifth higher
> i 1 3 3 1024 1.5    ;but with different settings
> i 1 6 3 2048 1.5    ;for ifftsize of pvsanal
> e
> </CsScore>
> </CsoundSynthesizer>
> ------------------
> run with valgrind
>
> SECTION 1:
> new alloc for instr 1:
> diskin2: opened '/home/jhearon/CsoundStuff/JFiles/vocoder/manual_examples/fox.wav':
>          44100 Hz, 1 channel(s), 121569 sample frames
> B  0.000 ..  3.000 T  3.000 TT  3.000 M:  0.99756  0.99756
> ==2265== Invalid read of size 8
> ==2265==    at 0x4EC64F7: diskin2_init_.part.2 (in /opt/csound6-git/libcsound64.so.6.0)
> ==2265==    by 0x4E968D0: insert (in /opt/csound6-git/libcsound64.so.6.0)
> ==2265==    by 0x4E9C2EF: process_score_event (in /opt/csound6-git/libcsound64.so.6.0)
> ==2265==    by 0x4E9EE14: sensevents (in /opt/csound6-git/libcsound64.so.6.0)
> ==2265==    by 0x4E7DC7D: csoundPerform (in /opt/csound6-git/libcsound64.so.6.0)
> ==2265==    by 0x401402: main (in /opt/csound6-git/csound)
> ==2265==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
> ==2265==
> csound command: Segmentation fault
> inactive allocs returned to freespace
> end of score.           overall amps:  0.99756  0.99756
>        overall samples out of range:        0        0
> 0 errors in performance
>
> Regards,
> Jim
Loading...