void-linux / void-packages

The Void source packages collection
https://voidlinux.org
Other
2.53k stars 2.13k forks source link

zlib-1.3 upgrade breaks lualatex #45986

Closed tuxliban closed 1 year ago

tuxliban commented 1 year ago

Is this a new report?

Yes

System Info

Void 6.1.51_1 x86_64-musl

Package(s) Affected

texlive-20210325

Does a report exist for this bug with the project's home (upstream) and/or another distro?

No response

Expected behaviour

compilation of the foo.tex file should produce a pdf file.

-> $ /usr/bin/lualatex foo.tex 
This is LuaHBTeX, Version 1.13.0 (TeX Live 2021/VoidLinux) 
 restricted system commands enabled.
(./foo.tex
LaTeX2e <2020-10-01> patch level 4
 L3 programming layer <2021-02-18>
(/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2020/04/10 v1.4m Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size12.clo))
(/usr/share/texmf-dist/tex/latex/lipsum/lipsum.sty
(/usr/share/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/share/texmf-dist/tex/latex/l3backend/l3backend-luatex.def))
(/usr/share/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
(/usr/share/texmf-dist/tex/latex/l3packages/xparse/xparse-2020-10-01.sty
(/usr/share/texmf-dist/tex/latex/l3packages/xparse/xparse-generic.tex)))
(/usr/share/texmf-dist/tex/latex/lipsum/lipsum.ltd.tex))
(/usr/share/texmf-dist/tex/generic/babel/babel.sty
(/usr/share/texmf-dist/tex/generic/babel/babel.def
(/usr/share/texmf-dist/tex/generic/babel/luababel.def)
(/usr/share/texmf-dist/tex/generic/babel/luababel.def))
(/usr/share/texmf-dist/tex/generic/babel-spanish/spanish.ldf
(/usr/share/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-es.tex
UTF-8 Spanish hyphenation patterns
(/usr/share/texmf-dist/tex/generic/hyph-utf8/patterns/tex/hyph-es.tex))))
(/usr/share/texmf-dist/tex/latex/base/inputenc.sty

Package inputenc Warning: inputenc package ignored with utf8 based engines.

) (/usr/share/texmf-dist/tex/latex/base/fontenc.sty
(/usr/share/texmf-dist/tex/latex/lm/t1lmr.fd))
(/usr/share/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/share/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(/usr/share/texmf-dist/tex/latex/graphics-def/luatex.def)))
(/usr/share/texmf-dist/tex/latex/parskip/parskip.sty
(/usr/share/texmf-dist/tex/latex/kvoptions/kvoptions.sty
(/usr/share/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty)
(/usr/share/texmf-dist/tex/generic/kvsetkeys/kvsetkeys.sty))
(/usr/share/texmf-dist/tex/latex/etoolbox/etoolbox.sty))
(/usr/share/texmf-dist/tex/latex/setspace/setspace.sty)
(/usr/share/texmf-dist/tex/latex/hanging/hanging.sty)
(/usr/share/texmf-dist/tex/latex/xurl/xurl.sty
(/usr/share/texmf-dist/tex/latex/url/url.sty))
(/usr/share/texmf-dist/tex/latex/hyperref/hyperref.sty
(/usr/share/texmf-dist/tex/generic/iftex/iftex.sty)
(/usr/share/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty
(/usr/share/texmf-dist/tex/generic/infwarerr/infwarerr.sty))
(/usr/share/texmf-dist/tex/generic/kvdefinekeys/kvdefinekeys.sty)
(/usr/share/texmf-dist/tex/generic/pdfescape/pdfescape.sty)
(/usr/share/texmf-dist/tex/latex/hycolor/hycolor.sty)
(/usr/share/texmf-dist/tex/latex/letltxmacro/letltxmacro.sty)
(/usr/share/texmf-dist/tex/latex/auxhook/auxhook.sty)
(/usr/share/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/usr/share/texmf-dist/tex/latex/hyperref/hyperref-langpatches.def)
(/usr/share/texmf-dist/tex/generic/intcalc/intcalc.sty)
(/usr/share/texmf-dist/tex/generic/etexcmds/etexcmds.sty)
(/usr/share/texmf-dist/tex/latex/hyperref/puenc.def)
(/usr/share/texmf-dist/tex/generic/bitset/bitset.sty
(/usr/share/texmf-dist/tex/generic/bigintcalc/bigintcalc.sty))
(/usr/share/texmf-dist/tex/latex/base/atbegshi-ltx.sty))
(/usr/share/texmf-dist/tex/latex/hyperref/hluatex.def
(/usr/share/texmf-dist/tex/generic/stringenc/stringenc.sty)
(/usr/share/texmf-dist/tex/latex/base/atveryend-ltx.sty)
(/usr/share/texmf-dist/tex/latex/rerunfilecheck/rerunfilecheck.sty
(/usr/share/texmf-dist/tex/generic/uniquecounter/uniquecounter.sty)))
(/usr/share/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/share/texmf-dist/tex/generic/iftex/ifvtex.sty))
(/usr/share/texmf-dist/tex/latex/psnfss/helvet.sty)
(/usr/share/texmf-dist/tex/latex/psnfss/t1phv.fd)
No file foo.aux.
(/usr/share/texmf-dist/tex/latex/base/ts1cmr.fd)
(/usr/share/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/share/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty
(/usr/share/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
(/usr/share/texmf-dist/tex/latex/hyperref/nameref.sty
(/usr/share/texmf-dist/tex/latex/refcount/refcount.sty)
(/usr/share/texmf-dist/tex/generic/gettitlestring/gettitlestring.sty))
*geometry* driver: auto-detecting
*geometry* detected driver: luatex
[1{/usr/share/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
Underfull \hbox (badness 10000) in paragraph at lines 65--66

warning  (pdf backend): ignoring duplicate destination with the name 'page.'
[2]
warning  (pdf backend): ignoring duplicate destination with the name 'page.'
[3] (./foo.aux)

Package rerunfilecheck Warning: File `foo.out' has changed.
(rerunfilecheck)                Rerun to get outlines right
(rerunfilecheck)                or use package `bookmark'.

)
(\end occurred inside a group at level 1)

### semi simple group (level 1) entered at line 50 (\begingroup)
### bottom level
(see the transcript file for additional information)
 563 words of node memory still in use:
   5 hlist, 1 vlist, 2 rule, 4 glue, 5 kern, 1 glyph, 13 attribute, 64 glue_spe
c, 8 attribute_list, 1 write nodes
   avail lists: 1:2,2:137,3:241,4:37,5:360,6:21,7:6487,8:69,9:115,10:34,11:955
{/usr/share/texmf-dist/fonts/enc/dvips/base/8r.enc}</usr/share/texmf-dist/fonts
/type1/urw/helvetic/uhvb8a.pfb></usr/share/texmf-dist/fonts/type1/urw/helvetic/
uhvr8a.pfb></usr/share/texmf-dist/fonts/type1/urw/helvetic/uhvro8a.pfb>
Output written on foo.pdf (3 pages, 34017 bytes).
Transcript written on foo.log.

Actual behaviour

-> $ /usr/bin/lualatex foo.tex
PANIC: unprotected error in call to Lua API (zlib library version does not match - header: 1.2.13, library: 1.3)
Abort

Steps to reproduce

  1. Create a *.tex file and configure in the preamble the corresponding packages to compile it with lualatex.
  2. Compile the *.tex file using lualatex
heuer commented 1 year ago

I can confirm the problem:

PANIC: unprotected error in call to Lua API (zlib library version does not match - header: 1.2.13, library: 1.3) Aborted

(using Void Linux 6.3.13_1 x86_64-glibc)

Output of lualatex --credits:

lualatex --credits
This is LuaHBTeX, Version 1.13.0 (TeX Live 2021/VoidLinux)

The LuaTeX team is Hans Hagen, Hartmut Henkel, Taco Hoekwater, Luigi Scarso.

LuaHBTeX 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 libharfbuzz 7.3.0; using 8.1.1
Compiled with libpng 1.6.40; using 1.6.40
Compiled with lua version 5.3.6
Compiled with mplib version 2.00
Compiled with zlib 1.2.13; using 1.3

Development id: 7418
morrismuehl commented 1 year ago

I can confirm this bug. Compilation with XeLateX also fails when incorporating eps files (xdvipdfmx spits out an error):

System Info

Void Linux 6.3.13_1 x86_64-glibc

 This is XeTeX, Version 3.141592653-2.6-0.999993 (TeX Live 2021/VoidLinux) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
(./mwe.tex
LaTeX2e <2020-10-01> patch level 4
L3 programming layer <2021-02-18>
(/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2020/04/10 v1.4m Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/share/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(/usr/share/texmf-dist/tex/latex/graphics-def/xetex.def)))
(/usr/share/texmf-dist/tex/latex/l3backend/l3backend-xetex.def
(|extractbb --version)) (./mwe.aux)
(/usr/share/texmf-dist/tex/latex/base/ts1cmr.fd) [1] (./mwe.aux)PANIC: unprotected error in call to Lua API (zlib library version does not match - header: 1.2.13, library: 1.3)

xdvipdfmx:fatal: Image inclusion failed for "mwe.eps".

No output PDF file written.
 )
Error 256 (driver return code) generating output;
file mwe.pdf may not be valid.
Transcript written on mwe.log. 
triallax commented 1 year ago

@tuxliban I think this just needs a rebuild of lualatex to get fixed, can you try this and push a PR if it works?

tuxliban commented 1 year ago

@tuxliban I think this just needs a rebuild of lualatex to get fixed, can you try this and push a PR if it works?

Thanks for the advice. I performed the package rebuild and indeed there were no problems. Now I just have to wait for them to accept the pull request. #46125