[Cs-dev] Segfault with Scanned Synthesis
| Date | 2008-12-01 01:44 | 
| From | "Steven Yi" | 
| Subject | [Cs-dev] Segfault with Scanned Synthesis | 
| Attachments | None onTheSensationsOfTone_final.csd string-128 None None | 
| Date | 2008-12-01 03:03 | 
| From | Felipe Sateler | 
| Subject | Re: [Cs-dev] Segfault with Scanned Synthesis | 
| Attachments | None None None | 
| Date | 2008-12-01 03:16 | 
| From | Jonatan Liljedahl | 
| Subject | Re: [Cs-dev] Segfault with Scanned Synthesis | 
| It renders fine here with 5.09.0. Nice piece by the way. :) Steven Yi wrote: > Hi All, > > I'm trying to render one of my older pieces and it is getting a > segfault. I don't have a debug build on this machine but I am > thinking it is an issue with the Scanned Synth opcodes as last I > remember there were issues with them as well. > > I've attached the CSD and scanned synth matrix file for the project. > Could someone take a look, or if anything just try rendering to > confirm if they get a segfault as well? > > (Note: I am using latest from CVS) > > Thanks! > steven > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel -- /Jonatan [ http://kymatica.com ] ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net | 
| Date | 2008-12-01 03:41 | 
| From | "Steven Yi" | 
| Subject | Re: [Cs-dev] Segfault with Scanned Synthesis | 
| Attachments | None | 
| Date | 2008-12-01 04:23 | 
| From | Jonatan Liljedahl | 
| Subject | Re: [Cs-dev] Segfault with Scanned Synthesis | 
| double, 32bit linux. compiled with GCC 4.1.2 Steven Yi wrote: > Hi Felipe and Jonatan, > > Thanks for trying this out (and thanks for the kind words!). It seems > then that something between 5.09.0 and the latest in CVS is causing > issues. But it could be a platform/version issue. Could you all > chime in with what version you are using (float or double), if > compiled for 64 bit, and what OS? I was testing on a Win XP machine > with csound compiled for double and 32bit. > > Thanks! > steven > > On Sun, Nov 30, 2008 at 7:16 PM, Jonatan Liljedahl | 
| Date | 2008-12-01 05:21 | 
| From | Felipe Sateler | 
| Subject | Re: [Cs-dev] Segfault with Scanned Synthesis | 
| Attachments | None None None | 
| Date | 2008-12-01 10:49 | 
| From | jpff | 
| Subject | Re: [Cs-dev] Segfault with Scanned Synthesis | 
| Hum. That code is clearly wrong. The table at p->t is longer that the table passed and is repeated (wrapped) to make it easy to use. I suppose I am responsible for this code now, but it will take a little time to remember what it is about! ==John ffitch ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net | 
| Date | 2008-12-01 11:16 | 
| From | jpff | 
| Subject | Re: [Cs-dev] Segfault with Scanned Synthesis | 
| The p->tlen is not the size of the array.  It is p->tlen+3-1 in
current code but should be p->tlen+4-1.  The base is p->t and is set
to be oscil_interp-1)/2 beyond; this is so interpolation is easier.  
The first loop fills the main table; the second fills the negative
value(s) and the third loop is supposed to fill the extra ones, so
should have body
       p->t[p->tlen+i] = p->t[i];
I think that the length in the csound->AuxAlloc call should be at
least 1 longer;  Probably should be (p->tlen + oscil_interp -
1)*sizeof(int32) but oscil_interp is 4 or less.
By the way, on my i386/floats there was no crash.
==John ffitch
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net | 
| Date | 2008-12-01 16:16 | 
| From | "Andres Cabrera" | 
| Subject | Re: [Cs-dev] Segfault with Scanned Synthesis | 
| Attachments | None | 
| Date | 2008-12-01 17:08 | 
| From | jpff@cs.bath.ac.uk | 
| Subject | Re: [Cs-dev] Segfault with Scanned Synthesis | 
| I fixed it this morning; in CVS now > It doesn't segfault for me. I'm on Ubuntu, built from current cvs > floats version. > > Cheers, > Andrés > > On Mon, Dec 1, 2008 at 6:16 AM, jpff | 
| Date | 2008-12-02 23:23 | 
| From | "Steven Yi" | 
| Subject | Re: [Cs-dev] Segfault with Scanned Synthesis | 
| Attachments | None | 
| Date | 2008-12-03 08:01 | 
| From | "Steven Yi" | 
| Subject | Re: [Cs-dev] Segfault with Scanned Synthesis | 
| Attachments | None | 
| Date | 2008-12-03 08:57 | 
| From | jpff | 
| Subject | Re: [Cs-dev] Segfault with Scanned Synthesis | 
| Possibly I committed over; I was attempting to unify the two branches I had and got to a stage of inconsistent CVS. Been looking at performance again -- going backwards I think! ==John ffitch ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |