[metapost] Bug?
Pétiard François
petiard.francois at free.fr
Thu Dec 23 20:08:04 CET 2021
Thank you very much for your explanations and your work on Metapost!
Merry Christmas.
François
Le 23/12/2021 à 19:37, luigi scarso a écrit :
>
>
> On Thu, Dec 23, 2021 at 7:17 PM Pétiard François
> <petiard.francois at free.fr> wrote:
>
> Le 23/12/2021 à 15:39, luigi scarso a écrit :
>
>>
>>
>> On Thu, Dec 23, 2021 at 2:56 PM luigi scarso
>> <luigi.scarso at gmail.com> wrote:
>>
>> I mean: it could be that makempx doesn't close the vf file
>> correctly (so yes, this is a bug).
>>
>>
>> indeed , with a patch now I have
>> # grep 'fopen' OUT2 | perl -pe 's{(.+: )([0-9a-z]+)( =
>> fopen.+)$}{$2}' -|sort|uniq|nl|tail -1
>> 1 0x563eca3cc830
>>
>>
>> --
>> luigi
>
> Sorry, I really don't understand what you do.
>
>
> Under linux:
> $> mpost -debug -tex=latex test.mp <http://test.mp> &> OUT
> where test.mp <http://test.mp> is the first correct case .
> I see lots of line like these ones
> makempx debug: ./mptextmp.mp <http://mptextmp.mp>: 0x5585feec9070 =
> fopen(/opt/luatex/texlive/2021/texmf-dist/fonts/tfm/jknappen/ec/ecsx2488.tfm,"rb")
> makempx debug: ./mptextmp.mp <http://mptextmp.mp>: 0x5585feec9070 =
> fopen(/opt/luatex/texlive/2021/texmf-dist/fonts/tfm/public/cm/cmr17.tfm,"rb")
> where 0x5585feec9070 seems to be always the same
> Indeed, filtering OUT
> $>grep 'fopen' OUT | perl -pe 's{(.+: )([0-9a-z]+)( = fopen.+)$}{$2}'
> -|sort|uniq|nl|tail -1
> I see one file open
> 1 0x5585feec9070
>
> If now test.mp <http://test.mp> uses the kpfonts, I see lots of lines
> like
> makempx debug: ./mptextmp.mp <http://mptextmp.mp>: 0x55cea183e830 =
> fopen(/opt/luatex/texlive/2021/texmf-dist/fonts/vf/public/kpfonts/jkpssbn8t.vf,"rb")
> makempx debug: ./mptextmp.mp <http://mptextmp.mp>: 0x55cea1848840 =
> fopen(/opt/luatex/texlive/2021/texmf-dist/fonts/tfm/public/kpfonts/jkpssbn8r.tfm,"rb")
> makempx debug: ./mptextmp.mp <http://mptextmp.mp>: 0x55cea1848840 =
> fopen(/opt/luatex/texlive/2021/texmf-dist/fonts/vf/public/kpfonts/jkpmn7t.vf,"rb")
> makempx debug: ./mptextmp.mp <http://mptextmp.mp>: 0x55cea184d500 =
> fopen(/opt/luatex/texlive/2021/texmf-dist/fonts/tfm/public/kpfonts/jkpmne.tfm,"rb")
> makempx debug: ./mptextmp.mp <http://mptextmp.mp>: 0x55cea184d500 =
> fopen(/opt/luatex/texlive/2021/texmf-dist/fonts/tfm/public/kpfonts/jkpmn8r.tfm,"rb")
>
> but this time the numbers change:
> $>grep 'fopen' OUT | perl -pe 's{(.+: )([0-9a-z]+)( = fopen.+)$}{$2}'
> -|sort|uniq|nl|tail -1
> 1036 0x55cea68eee50
> This means that I have 1036 different file descriptors
> ( 0x55cea68eee50 is just the last one of the list that I have sorted)
> and I have checked that these files were not correctly closed.
> It's not a bug of miktex, it's a bug of mpost (that I have fixed): I
> don't see it in linux because I can have more than 1036 files open
> (but this limit can be lowered , so the problem remains).
>
>
> --
> luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/metapost/attachments/20211223/e55edf58/attachment.html>
More information about the metapost
mailing list.