[metapost] Bugs in mpost 1.202 (and less)?

Nicola nvitacolonna at gmail.com
Fri Jun 5 19:17:20 CEST 2009


Hi,
I have stumbled on a couple of potential bugs (mpost compiled for Intel 
Mac OS X with gcc 4.0.1):

1) the following code:

vardef foo@# = @ enddef; foo.a;

causes a segmentation fault with mpost 1.201 and 1.202, while it 
correctly generates a stack capacity exceeded error in mpost 1.005. Note 
that

vardef foo = @ enddef; foo.a;

reports the capacity exceeded error correctly in all versions. So, this 
bug seems related to the presence of the suffix parameter.

2) This program:

warningcheck:=0;
n = 32767; % or whatever number
for i = n upto 32767: endfor;
end.

seems to loop forever (tested on 1.005 and 1.202).

Can anybody confirm?

Nicola



More information about the metapost mailing list