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" <[email protected]> > An: "[email protected]" <[email protected]> > 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 > [email protected] > https://lists.puredata.info/listinfo/pd-dev > _______________________________________________ Pd-dev mailing list [email protected] https://lists.puredata.info/listinfo/pd-dev
