Re: mpost 1.9991: segmentation fault

Toby Thurston <[email protected]>
Newsgroups gmane.comp.tex.metapost
Message-ID <[email protected]>
> Message: 1
> Date: Fri, 30 Sep 2016 16:01:20 +0200
> From: luigi scarso <[email protected]>
> To: Nicola <[email protected]>
> Cc: MetaPost List <[email protected]>
> Subject: Re: [metapost] mpost 1.9991: segmentation fault
> Message-ID:
> 	<CAG5iGsAdkeFfh8DZA8juznYfE+8CWLw9+PC91__b5iiJcfVccg@mail.gmail.com>
> Content-Type: text/plain; charset="UTF-8"
> 
> On Mon, Sep 26, 2016 at 8:22 PM, Nicola <[email protected]> wrote:
>> Not sure if this is the right place to report bugs, but anyway:
>> 
>> ]mpost
>> This is MetaPost, version 1.9991 (TeX Live 2016) (kpathsea version 6.2.2)
>> **\
>> (/usr/local/texlive/2016/texmf-dist/metapost/base/mpost.mp
>> (/usr/local/texlive/2016/texmf-dist/metapost/base/plain.mp
>> Preloading the plain mem file, version 1.005) )
>> *(t1,t2,t3,t4,t5) = (1,2,3,4,5);
>> ! Missing `)' has been inserted.
>> <to be read again>
>>                 ,
>> <*> (t1,t2,t3,t4,
>>               t5) = (1,2,3,4,5);
>> ?
>> Segmentation fault: 11
> 
> The problem seems to be a wrong (i.e partial) initialization of a cmyk node .
> I have a patch on my local box, I need to test it a bit.
> 
> -- 
> luigi

I see a very similar bug when trying to assign to a “transform” variable.

eg

show mpversion;
transform T;  T = (1,2,3,4,5,6); 
end


produces:
This is MetaPost, version 1.9991 (TeX Live 2016) (kpathsea version 6.2.2)  31 OCT 2016 09:41
**t.mp
(/usr/local/texlive/2016/texmf-dist/metapost/base/mpost.mp
(/usr/local/texlive/2016/texmf-dist/metapost/base/plain.mp
Preloading the plain mem file, version 1.005) ) (./t.mp
>> "1.9991"
! Missing `)' has been inserted.
<to be read again> 
                  ,
l.2 transform T;  T = (1,2,3,4,
                              5,6); 
? 
>> (xpart T,ypart T,xxpart T,xypart T,yxpart T,yypart T)
>> (1,2,3,4)
! Equation cannot be performed (transform=cmykcolor).
<to be read again> 
                  ,
l.2 transform T;  T = (1,2,3,4,
                              5,6); 
? 
! Extra tokens will be flushed.
<to be read again> 
                  ,
l.2 transform T;  T = (1,2,3,4,
                              5,6); 
? 
)

This is using a version of mpost that I compiled this morning using the latest source from your svn.

I’ve opened an issue report on the bug tracker.

Toby



--
http://tug.org/metapost/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.