[PD-dev] floating point exception crashes (INT_MIN % -1)

Claude Heiland-Allen claude at mathr.co.uk
Wed Jul 10 20:18:50 CEST 2013


Hi,

Pd (tested with version 0.42.6 and its bundled expr) are crashable with:

INT_MIN % -1

Pd aborts hard with Floating point exception.

Linux cappuccino 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1 x86_64 GNU/Linux
sizeof(int) is 4


Claude
-- 
http://mathr.co.uk
-------------- next part --------------
#N canvas 0 0 415 307 10;
#X obj 82 102 bng 15 250 50 0 empty empty crashes_with_Floating_point_exception
17 7 0 12 -258113 -1 -1;
#X floatatom 82 144 0 0 0 0 - - -;
#X obj 82 123 expr (-65536 * 65536 / 2) % -1;
#X connect 0 0 2 0;
#X connect 2 0 1 0;
-------------- next part --------------
#N canvas 756 319 450 300 10;
#X obj 95 25 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X msg 95 46 -65536 65536;
#X obj 95 67 *;
#X obj 95 88 / 2;
#X obj 95 109 % -1;
#X obj 95 130 print;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 4 0 5 0;


More information about the Pd-dev mailing list