Re: Bug?
luigi scarso <[email protected]> Thu, 23 Dec 2021 19:37:11 +0100
| Newsgroups | gmane.comp.tex.metapost |
|---|---|
| Message-ID | <CAG5iGsDctVM1werOmpfDQAA38eEjgPLrYxDgjipX_U+T2juU6g@mail.gmail.com> |
On Thu, Dec 23, 2021 at 7:17 PM Pétiard François <[email protected]> wrote: > Le 23/12/2021 à 15:39, luigi scarso a écrit : > > > > On Thu, Dec 23, 2021 at 2:56 PM luigi scarso <[email protected]> > 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 &> OUT where test.mp is the first correct case . I see lots of line like these ones makempx debug: ./mptextmp.mp: 0x5585feec9070 = fopen(/opt/luatex/texlive/2021/texmf-dist/fonts/tfm/jknappen/ec/ecsx2488.tfm,"rb") makempx debug: ./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 uses the kpfonts, I see lots of lines like makempx debug: ./mptextmp.mp: 0x55cea183e830 = fopen(/opt/luatex/texlive/2021/texmf-dist/fonts/vf/public/kpfonts/jkpssbn8t.vf,"rb") makempx debug: ./mptextmp.mp: 0x55cea1848840 = fopen(/opt/luatex/texlive/2021/texmf-dist/fonts/tfm/public/kpfonts/jkpssbn8r.tfm,"rb") makempx debug: ./mptextmp.mp: 0x55cea1848840 = fopen(/opt/luatex/texlive/2021/texmf-dist/fonts/vf/public/kpfonts/jkpmn7t.vf,"rb") makempx debug: ./mptextmp.mp: 0x55cea184d500 = fopen(/opt/luatex/texlive/2021/texmf-dist/fonts/tfm/public/kpfonts/jkpmne.tfm,"rb") makempx debug: ./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 -- http://tug.org/metapost/