[tex-live] repeated xelatex call destroys pdf output

Zdenek Wagner zdenek.wagner at gmail.com
Tue Sep 4 16:42:11 CEST 2018

Hi all,

the sample file is intended for XeLaTeX but requests the fontenc package to
encode unicode to the T1 encoding, which is wrong, it cannot work. As a
result it probably writes an illegal code into the .aux file and XeLaTeX
then crashes without completing the output to PDF (and the most important
xref tables are close to the end of the PDF file). Just removing
\usepackage[T1]{fontenc} solves the problem and it works fine on my

Zdeněk Wagner

út 4. 9. 2018 v 16:27 odesílatel Norbert Preining <norbert at preining.info>

> Hi all,
> here down at Debian we got a bug report which I can easily reproduce
> with upstream TeX Live.
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907784
> What happens is that when xelatex *first* compiles the document,
> everything is fine.
> It also generates a .aux file which somehow disturbes xelatex, because
> on the second run when the .aux file is read the output is a completely
> broken pdf.
> $ pdfinfo newfile1.damaged.pdf
> Syntax Error: Couldn't read xref table
> Syntax Warning: PDF file is damaged - attempting to reconstruct xref
> table...
> Syntax Error: Couldn't find trailer dictionary
> Syntax Error: Couldn't read xref table
> $
> I tried uncompressing it with pdftk but that converted the damaged file
> into a good and working one.
> I am having a hard time understand what might be wrong. It is also not
> trivial to reduce this example to a minimal one, thus I refrain from
> posting the files here, but only include the links:
> TeX files:
> https://bugs.debian.org/cgi-bin/bugreport.cgi?att=2;bug=907784;filename=test.tar.bz2;msg=5
> Images:
> https://bugs.debian.org/cgi-bin/bugreport.cgi?att=2;bug=907784;filename=pic.tar.bz2;msg=10
> I can send the .tex, the .aux file, or whatever might be useful to
> debug.
> It would be great if someone can help tracking down this strange bug.
> Thanks
> Norbert
> --
> PREINING Norbert                               http://www.preining.info
> Accelia Inc.     +    JAIST     +    TeX Live     +    Debian Developer
> GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tex-live/attachments/20180904/23cadd75/attachment.html>

More information about the tex-live mailing list