[tex-live] repeated xelatex call destroys pdf output

Norbert Preining norbert at preining.info
Tue Sep 4 16:26:08 CEST 2018

Hi all,

here down at Debian we got a bug report which I can easily reproduce
with upstream TeX Live.

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:

I can send the .tex, the .aux file, or whatever might be useful to

It would be great if someone can help tracking down this strange bug.



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

More information about the tex-live mailing list