[PD-dev] signal nan values

Andrew Hassall a.r.hassall at gmail.com
Fri Apr 22 13:31:32 CEST 2011


apologies for the late reply.

I've managed to set up and run valgrind and it repeatly outputs


"
==29216== Invalid read of size 4
==29216==    at 0x9CF892F: lpcsynthesis_tilde_perform (in
/usr/lib/pd/extra/lpcsynthesis~.pd_linux)
==29216==    by 0x487C14: dsp_tick (in /usr/bin/pd)
==29216==    by 0x473F5C: m_mainloop (in /usr/bin/pd)
==29216==    by 0x478734: sys_main (in /usr/bin/pd)
==29216==    by 0x5C1BD8D: (below main) (libc-start.c:226)
==29216==  Address 0x7feffdb78 is not stack'd, malloc'd or (recently) free'd
==29216==
==29216== Invalid write of size 4
==29216==    at 0x9CF8931: lpcsynthesis_tilde_perform (in
/usr/lib/pd/extra/lpcsynthesis~.pd_linux)
==29216==    by 0x487C14: dsp_tick (in /usr/bin/pd)
==29216==    by 0x473F5C: m_mainloop (in /usr/bin/pd)
==29216==    by 0x478734: sys_main (in /usr/bin/pd)
==29216==    by 0x5C1BD8D: (below main) (libc-start.c:226)
==29216==  Address 0x7fefff490 is not stack'd, malloc'd or (recently) free'd

"

before finally giving up and saying its exceeded the max number of
errors it will process.

will this be because both objects are accessing memory outside their allocation?
or could it just be other problems with the audio setup (I still
haven't got the pd audio settings correct on ubuntu, but it still
manages to process input from the mic).

Andy


2011/4/15  <zmoelnig at iem.at>:
> Quoting "Andrew Hassall" <a.r.hassall at gmail.com>:
>
>>>> I'm not currently using multiple instances, but is there any easy way
>>>> of testing if I'm using memory not allocated to the external? I've
>>>
>>> $ valgrind pd
>>
>> Is there a specific version of valgrind for pd?
>
> no.
>
>> or do I have to run
>> valgrind with a specific command? (I couldn't find any information of
>> valgrind with pd from searching)
>
> no.
>
> simply run
> $ valgrind pd -my -pd -flags
> and have a look what it tells.
>
> note: Pd itself allocates a number of memory which it never frees (most
> prominently, the symbol hashtable, but also the list of classes); valgrind
> considers them as memleaks, but normally you can safely ignore these
> warnings as false positives.
>
> mghrt
> IOhannes
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
> _______________________________________________
> Pd-dev mailing list
> Pd-dev at iem.at
> http://lists.puredata.info/listinfo/pd-dev
>
>



More information about the Pd-dev mailing list