I valgrind nothing shows until the crash point new alloc for instr 2: ==24362== Invalid read of size 8 ==24362== at 0x4EF62A2: deltapn (ugens6.c:569) ==24362== by 0x4F8B27B: kperf_nodebug (csound.c:1533) ==24362== by 0x4F8C54D: csoundPerform (csound.c:1966) ==24362== by 0x40140C: main (csound_main.c:135) ==24362== Address 0x4175f78c8 is not stack'd, malloc'd or (recently) free'd ==24362== Csound tidy up: Segmentation fault It is the unpoliced inf value Quoting Victor Lazzarini : > because it?s a memory problem, sometimes it does not show up, but if > you could run with valgrind it would see > the error. In my opinion, the deltapn code is unsafe (the pointer > can be beyond the delay memory, as it?s not protected for that). > > > ======================== > Dr Victor Lazzarini > Senior Lecturer > NUI Maynooth, Ireland > victor dot lazzarini at nuim dot ie > > > > > On 27 Apr 2014, at 17:34, Steven Yi wrote: > >> Just FYI, I tried this with CS6 and get a crash with deltapn. >> Interstingly, with Csound 5.19.02 doubles version, I also get a crash >> with deltapn. With CS6 in XCode, building a Debug version, I get no >> crash (no sound either, just 0.0 amps). >> >> On Sat, Apr 26, 2014 at 7:15 PM, Victor Lazzarini >> wrote: >>> if it is far more, the program will likely segfault with if(). >>> ======================== >>> Dr Victor Lazzarini >>> Senior Lecturer >>> NUI Maynooth, Ireland >>> victor dot lazzarini at nuim dot ie >>> >>> >>> >>> >>> On 26 Apr 2014, at 23:58, Michael Gogins wrote: >>> >>>> This is better but if tp is far more than endp or far less than >>>> begp, it will eat time. >>>> >>>> Regards, >>>> Mike >>>> >>>> >>>> ----------------------------------------------------- >>>> Michael Gogins >>>> Irreducible Productions >>>> http://michaelgogins.tumblr.com >>>> Michael dot Gogins at gmail dot com >>>> >>>> >>>> On Sat, Apr 26, 2014 at 6:13 PM, Victor Lazzarini >>>> wrote: >>>> I think the if(...) should be replaced by while(...) >>>> >>>> if (UNLIKELY(tap >= endp )) >>>> tap -= q->npts; >>>> if (UNLIKELY(tap < begp)) >>>> tap += q->npts; >>>> >>>> ? >>>> >>>> while (UNLIKELY(tap >= endp )) >>>> tap -= q->npts; >>>> while (UNLIKELY(tap < begp)) >>>> tap += q->npts; >>>> >>>> >>>> ======================== >>>> Dr Victor Lazzarini >>>> Senior Lecturer >>>> NUI Maynooth, Ireland >>>> victor dot lazzarini at nuim dot ie >>>> >>>> >>>> >>>> >>>> On 26 Apr 2014, at 22:52, Victor Lazzarini >>>> wrote: >>>> >>>>> Also this line: >>>>> >>>>> idelsmps = (int32)delsmps; >>>>> >>>>> shouldn?t idelsmps be int64, if delsmps is double? >>>>> >>>>> ======================== >>>>> Dr Victor Lazzarini >>>>> Senior Lecturer >>>>> NUI Maynooth, Ireland >>>>> victor dot lazzarini at nuim dot ie >>>>> >>>>> >>>>> >>>>> >>>>> On 26 Apr 2014, at 21:43, jpff@cs.bath.ac.uk wrote: >>>>> >>>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Start Your Social Network Today - Download eXo Platform >>>>> Build your Enterprise Intranet with eXo Platform Software >>>>> Java Based Open Source Intranet - Social, Extensible, Cloud Ready >>>>> Get Started Now And Turn Your Intranet Into A Collaboration Platform >>>>> http://p.sf.net/sfu/ExoPlatform >>>>> _______________________________________________ >>>>> Csound-devel mailing list >>>>> Csound-devel@lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Start Your Social Network Today - Download eXo Platform >>>> Build your Enterprise Intranet with eXo Platform Software >>>> Java Based Open Source Intranet - Social, Extensible, Cloud Ready >>>> Get Started Now And Turn Your Intranet Into A Collaboration Platform >>>> http://p.sf.net/sfu/ExoPlatform >>>> _______________________________________________ >>>> Csound-devel mailing list >>>> Csound-devel@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/csound-devel >>>> >>>> ------------------------------------------------------------------------------ >>>> Start Your Social Network Today - Download eXo Platform >>>> Build your Enterprise Intranet with eXo Platform Software >>>> Java Based Open Source Intranet - Social, Extensible, Cloud Ready >>>> Get Started Now And Turn Your Intranet Into A Collaboration Platform >>>> http://p.sf.net/sfu/ExoPlatform_______________________________________________ >>>> Csound-devel mailing list >>>> Csound-devel@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/csound-devel >>> >>> >>> ------------------------------------------------------------------------------ >>> Start Your Social Network Today - Download eXo Platform >>> Build your Enterprise Intranet with eXo Platform Software >>> Java Based Open Source Intranet - Social, Extensible, Cloud Ready >>> Get Started Now And Turn Your Intranet Into A Collaboration Platform >>> http://p.sf.net/sfu/ExoPlatform >>> _______________________________________________ >>> Csound-devel mailing list >>> Csound-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/csound-devel >> >> ------------------------------------------------------------------------------ >> Start Your Social Network Today - Download eXo Platform >> Build your Enterprise Intranet with eXo Platform Software >> Java Based Open Source Intranet - Social, Extensible, Cloud Ready >> Get Started Now And Turn Your Intranet Into A Collaboration Platform >> http://p.sf.net/sfu/ExoPlatform >> _______________________________________________ >> Csound-devel mailing list >> Csound-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/csound-devel > > > ------------------------------------------------------------------------------ > Start Your Social Network Today - Download eXo Platform > Build your Enterprise Intranet with eXo Platform Software > Java Based Open Source Intranet - Social, Extensible, Cloud Ready > Get Started Now And Turn Your Intranet Into A Collaboration Platform > http://p.sf.net/sfu/ExoPlatform > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel ------------------------------------------------------------------------------ Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net