[PD] [PiDiP] pdp_text - bizarre segfault

Yves Degoyon ydegoyon at free.fr
Thu Oct 30 04:58:39 CET 2003


hi,

fixed ( and also a strange 'resize' bug, never reported ).
some dangerous play with pointers...

thanx for the bug report, keep doing that...

cheers,
sevy

Bill Sack wrote:

> hello pdp-ers,
> i'd been experiencing mysterious segfaults with one of my pdp patches 
> and have finally narrowed it down to the pdp_text object.
>
> when a text string of 12 characters is banged into pdp_text, pd will 
> very likely segfault. other string lengths seem to be OK. i've 
> attached an example patch and would really like it if others could try 
> it and see if they have the same result - i only have one machine 
> around that i can check it on. it may take 5 to 10 bangs of the fatal 
> messages to kill it ...
>
> this is with:
> pdp-0.12.2
> pidip-0.12.6 and 0.12.9
> imlib2-1.0.6-1 from .rpm
> pd-0.36
> rh9
>
> oh, on a related subject: has anyone made anything like a strlen 
> external for pd? i searched pdb and found nothing ...
>
> thanks,
> bill
>
>------------------------------------------------------------------------
>
>#N canvas 84 12 455 460 10;
>#X obj 146 384 pdp_xv;
>#X obj 8 82 metro 70;
>#X obj 75 113 pdp_v4l;
>#X obj 84 81 metro 70;
>#X msg 8 245 clear;
>#X obj 4 114 pdp_noise;
>#X msg 150 84 open /dev/video0;
>#X obj 8 55 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1;
>#X obj 84 54 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
>;
>#X msg 146 127 text enthusiasm 80 10;
>#X msg 146 149 text tenxxxxxxx 90 30;
>#X msg 146 171 text fourteenxxxxxx 100 50;
>#X msg 146 251 text horizontally 90 70;
>#X msg 146 277 text enthusiastic 90 90;
>#X msg 146 304 text twelvexxxxxx 90 110;
>#X text 158 108 these are OK;
>#X text 151 228 these kill it;
>#X obj 146 354 pdp_text ------;
>#X msg 146 196 text twentyfourxxxxxxxxxxxxxx 160 130;
>#X text 10 12 banging strings of 12 characters into pdp_text;
>#X text 9 26 cause segfault;
>#X connect 1 0 5 0;
>#X connect 2 0 17 0;
>#X connect 3 0 2 0;
>#X connect 4 0 17 0;
>#X connect 5 0 17 0;
>#X connect 6 0 2 0;
>#X connect 7 0 1 0;
>#X connect 8 0 3 0;
>#X connect 9 0 17 0;
>#X connect 10 0 17 0;
>#X connect 11 0 17 0;
>#X connect 12 0 17 0;
>#X connect 13 0 17 0;
>#X connect 14 0 17 0;
>#X connect 17 0 0 0;
>#X connect 18 0 17 0;
>  
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20031029/6ca12c75/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pdp_text.c
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20031029/6ca12c75/attachment.asc>


More information about the Pd-list mailing list