[PD-dev] Double precision externals extensions.

Christof Ressi christof.ressi at gmx.at
Wed Dec 11 02:29:40 CET 2019


ah, now I see! class_new() returns a null pointer if the precision doesn't match. In pddplink_setup() they try to access members of the class instance, that's why you get a segfault. Just add a null pointer check and you're done.

> Gesendet: Mittwoch, 11. Dezember 2019 um 02:07 Uhr
> Von: "Lucas Cordiviola" <lucarda27 at hotmail.com>
> An: "pd-dev at lists.iem.at" <pd-dev at lists.iem.at>
> Betreff: Re: [PD-dev] Double precision externals extensions.
>
> I could get this from linux, at least is something:
>
> ~~~~~~~~~~~~~
>
> Program received signal SIGSEGV, Segmentation fault.
>
> 0x00007ffff6170e93 in pddplink_setup () at pddp/pddplink.c:353
>
> 353 sys_vgui("source {%s/pddplink.tcl}\n", dirsym->s_name);
>
> ~~~~~~~~~~~~~~~
>
> But no worries is just an edge case. If I compile the lib without
> [pddplink] everything works on /single/ and fails correctly (no crashes)
> on /double/.
>
> I can replace pddplink with [pdcontrol]
>
> :)
>
> On 12/10/19 8:53 PM, Christof Ressi wrote:
> > We must find out where exactly the segfault happens. You can either look up how to set breakpoints and step through the code, or use good 'ol printf debugging
>
> Mensaje telepatico asistido por maquinas.
>
> _______________________________________________
> Pd-dev mailing list
> Pd-dev at lists.iem.at
> https://lists.puredata.info/listinfo/pd-dev
>





More information about the Pd-dev mailing list