On Tue, Mar 16, 2021 at 8:47 AM Martin Budaj
Hi,
there is a segfault produced by LuaTeX, Version 1.12.0 (TeX Live 2020/Debian) when processing the following:
\ifdefined\directlua \protected\def\pdfmapfile {\pdfextension mapfile } \protected\def\pdfmapline {\pdfextension mapline } \edef\pdfgentounicode {\pdfvariable gentounicode} \protected\def\pdfglyphtounicode {\pdfextension glyphtounicode } \fi
\pdfglyphtounicode{A}{0041} \pdfgentounicode=1 \pdfmapfile{} \pdfmapline{cmr10 CMR10 34} % no font embedding anything \end
PdfTex, Version 3.14159265-2.6-1.40.21 (TeX Live 2020/Debian) gives the following assertion:
pdftex: ../../../texk/web2c/pdftexdir/writefont.c:555: write_fontdictionary: Assertion `fo->fd->builtin_glyph_names != NULL' failed. Aborted
If the combination of using \pdfgentounicode and not embedding any font is invalid, some reasonable error message should be produced.
hm , I am not able to reproduce it with luatex --credits This is LuaTeX, Version 1.12.0 (TeX Live 2020) The LuaTeX team is Hans Hagen, Hartmut Henkel, Taco Hoekwater, Luigi Scarso. LuaTeX merges and builds upon (parts of) the code from these projects: tex : Donald Knuth etex : Peter Breitenlohner, Phil Taylor and friends omega : John Plaice and Yannis Haralambous aleph : Giuseppe Bilotta pdftex : Han The Thanh and friends kpathsea : Karl Berry, Olaf Weber and others lua : Roberto Ierusalimschy, Waldemar Celes and Luiz Henrique de Figueiredo metapost : John Hobby, Taco Hoekwater, Luigi Scarso, Hans Hagen and friends pplib : Paweł Jackowski fontforge : George Williams (partial) luajit : Mike Pall (used in LuajitTeX) Compiled with libpng 1.6.37; using 1.6.37 Compiled with lua version 5.3.5 Compiled with mplib version 2.00 Compiled with zlib 1.2.11; using 1.2.11 Development id: 7306 and with luatex --credits This is LuaTeX, Version 1.13.0 (TeX Live 2021) The LuaTeX team is Hans Hagen, Hartmut Henkel, Taco Hoekwater, Luigi Scarso. LuaTeX merges and builds upon (parts of) the code from these projects: tex : Donald Knuth etex : Peter Breitenlohner, Phil Taylor and friends omega : John Plaice and Yannis Haralambous aleph : Giuseppe Bilotta pdftex : Han The Thanh and friends kpathsea : Karl Berry, Olaf Weber and others lua : Roberto Ierusalimschy, Waldemar Celes and Luiz Henrique de Figueiredo metapost : John Hobby, Taco Hoekwater, Luigi Scarso, Hans Hagen and friends pplib : Paweł Jackowski fontforge : George Williams (partial) luajit : Mike Pall (used in LuajitTeX) Compiled with libpng 1.6.37; using 1.6.37 Compiled with lua version 5.3.6 Compiled with mplib version 2.00 Compiled with zlib 1.2.11; using 1.2.11 Development id: 7417 How do you run your test ? -- luigi