[flext] ToOutList - EXC_BAD_ACCESS

Patrick Gampp hr824 at gmx.de
Mon Sep 12 13:55:01 CEST 2011


Hi Thomas,
thank you very much for offering your help. When I wanted to send you a minimal project, I realized, that my code could not be the cause for this error. So I checked all the compiler/linker settings of my project...

The GCC code generation option "inline methods hidden" had to be set to YES. Then my projects worked.
(I use CMake for the generation of my pd-externals on Windows and Mac)

All the best,
Patrick


On 01.09.2011, at 16:48, Thomas Grill wrote:

> Hi Patrick,
> looks fine so far! I would have a look at the problem if you want to
> send the whole project code (can be in private mail).
> gr~~~
> 
> 2011/9/1 Patrick Gampp <hr824 at gmx.de>:
>> Hi,
>> I ported an external, which works on Windows to Mac. The external can be
>> created, but when pd computes audio, it crashes.
>> I debugged the program and when I comment one line  of code, the program
>> does not crash anymore.
>> 1) I define a AtomList: AtomLIst list;
>> 2) set the list size: list(TMAT_XDIM-2);
>> 3) Fill the AtomList with values: SetFloat( list[NUM_BAND], value )
>> 4) Send the list to output 4: ToOutList(3, list); (This is the line, I
>> commented)
>> When I debug the external, I end in the file flcontainers.h in the method of
>> class FifoCell:
>> inline FifoCell *Get() { return this->dequeue(); }
>> Xcode says 'Thread 1: Program received signal: "EXC_BAD_ACCESS". The
>> debugger writes:
>> "Single stepping until exit from function
>> _ZN8lockfree14intrusive_fifoI8FifoCellE7dequeueEv,
>> which has no line number information."
>> As I wrote, the program runs on Windows, but not on Mac. Do you have any
>> suggestions, how I can avoid this error, or what causes this error?
>> Thanks,
>> Patrick
>> 
>> 
>> _______________________________________________
>> http://grrrr.org/ext/flext
>> 
>> flext mailing list
>> flext at grrrr.org
>> http://grrrr.org/cgi-bin/mailman/listinfo/flext
>> 
> 
> 
> 
> -- 
> Thomas Grill
> http://grrrr.org
> _______________________________________________
> http://grrrr.org/ext/flext
> 
> flext mailing list
> flext at grrrr.org
> http://grrrr.org/cgi-bin/mailman/listinfo/flext



More information about the flext mailing list