Re: [Faudiostream-devel] 32bit FAUST-LV2 crash on quit

2013-09-17 Thread hermann meyer
Am 15.09.2013 22:02, schrieb Harry van Haaren:
> Hey All,
>
> I've built OpenAV's Sorcer synth using FAUST, and FAUST-LV2. The 
> plugin runs fine here in  jalv: on a 64bit machine. The same code 
> crashes on a "glibc corrupted double linked list detected" when 
> generated / compiled / ran on 32bits.
>
> I've tried re-generating the .cpp file in case FAUST compiles the C++ 
> differently per architecture (I presume it does for optimization): no 
> luck.
>
> The offending FAUST code is available here:
> https://github.com/harryhaaren/openAV-sorcer
>
> $ make faustGenerateCpp
> $ make -B
> $ make install   # installs to ~/.lv2
> $ jalv http://www.openavproductions.com/sorcer
>
> I've tried debugging it myself, I'm at a loss.
> Advice appreciated, -Harry
>
Hi

The corrupted double-linked list: 0x08265148 comes from the ttl file, 
the line
doap:maintainer [ foaf:name "OpenAV Productions" ] ;
remove it, leads to a other error message.

double free or corruption (!prev)

I could nail this one down to

static void
cleanup(LV2_Handle instance)
{

free(plugin->ports);
free(plugin->portvals);
}

those seems to be invalid pointers. The crash could avoid by set them to 
NULL before free them.

   plugin->ports = NULL;
   free(plugin->ports);
   plugin->portvals = NULL;
   free(plugin->portvals);

greets
hermann


--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
___
Faudiostream-devel mailing list
Faudiostream-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-devel


Re: [Faudiostream-devel] 32bit FAUST-LV2 crash on quit

2013-09-17 Thread Albert Graef
On Tue, Sep 17, 2013 at 9:53 AM, hermann meyer  wrote:
> I could nail this one down to
>
> static void
> cleanup(LV2_Handle instance)
> {
> 
> free(plugin->ports);
> free(plugin->portvals);
> }

Thanks. There's already a bug report at
http://code.google.com/p/faust-lv2/issues/detail?id=4 which seems
related. This is next up on my TODO list, so stay tuned.

Albert

-- 
Dr. Albert Gr"af
Dept. of Music-Informatics, University of Mainz, Germany
Email:  aggr...@gmail.com
WWW:https://plus.google.com/93356966611167754

--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
___
Faudiostream-devel mailing list
Faudiostream-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-devel