Menu

#133 XeTeX produces bad dvi on MIPS

Future
closed
nobody
None
5
2016-11-20
2016-09-27
No

https://bugs.debian.org/836454

Compiling the following MWE with the XeLaTex at MIPS leads to the error:

xdvipdfmx:fatal: Bad DVI: negative point_size: -1371074304

MWE:

\documentclass{article}
\XeTeXtracingfonts=1  % for verbose logs
\usepackage{fontspec}
\begin{document}
\title{Test}
\author{Foo}
\maketitle
Test content test content.
\end{document}

Minimal compilation command:

xelatex test

Verbose compilation command:

xelatex -recorder -output-driver='xdvipdfmx -vv >> test.fls 2>&1’ test

Failure is reproduced only at MIPS (which is big-endian), all other systems (such as amd64, i386 and even similar 32-bit big-endian hppa).
It is also reproduced at QEMU chroot and at MIPS build machine (it blocks the asn1c build by the way).
Failure is not reproduced using debian stable (texlive 2014).

Logs and output are provided by adding the

\XeTeXtracingfonts=1

to the tex file and by running xelatex and xdvipdfmx in a verbose mode using the command:

xelatex -recorder -output-driver='xdvipdfmx -vv >> test.fls 2>&1’ test

Files test.log and test.xdv are attached.

Contents of test.fls:

PWD /tmp/t
INPUT /etc/texmf/web2c/texmf.cnf
INPUT /usr/share/texmf/web2c/texmf.cnf
INPUT /usr/share/texlive/texmf-dist/web2c/texmf.cnf
INPUT /var/lib/texmf/web2c/xetex/xelatex.fmt
INPUT test.tex
OUTPUT test.log
INPUT /usr/share/texlive/texmf-dist/tex/latex/base/article.cls
INPUT /usr/share/texlive/texmf-dist/tex/latex/base/article.cls
INPUT /usr/share/texlive/texmf-dist/tex/latex/base/size10.clo
INPUT /usr/share/texlive/texmf-dist/tex/latex/base/size10.clo
INPUT /usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.sty
INPUT /usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.sty
INPUT /usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty
INPUT /usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty
INPUT /usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3-code.tex
INPUT /usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3-code.tex
INPUT /usr/share/texlive/texmf-dist/tex/generic/unicode-data/UnicodeData.txt
INPUT /usr/share/texlive/texmf-dist/tex/generic/unicode-data/CaseFolding.txt
INPUT /usr/share/texlive/texmf-dist/tex/generic/unicode-data/SpecialCasing.txt
INPUT /usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3xdvipdfmx.def
INPUT /usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3xdvipdfmx.def
INPUT /usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
INPUT /usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
INPUT /usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty
INPUT /usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty
INPUT /usr/share/texlive/texmf-dist/tex/latex/fontspec/tuenc.def
INPUT /usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
INPUT /usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
INPUT /usr/share/texlive/texmf-dist/tex/latex/euenc/eu1enc.def
INPUT /usr/share/texlive/texmf-dist/tex/latex/euenc/eu1enc.def
INPUT /usr/share/texlive/texmf-dist/tex/latex/euenc/eu1lmr.fd
INPUT /usr/share/texlive/texmf-dist/tex/latex/euenc/eu1lmr.fd
INPUT /usr/share/texlive/texmf-dist/tex/xelatex/xunicode/xunicode.sty
INPUT /usr/share/texlive/texmf-dist/tex/xelatex/xunicode/xunicode.sty
INPUT /usr/share/texmf/tex/latex/tipa/t3enc.def
INPUT /usr/share/texlive/texmf-dist/tex/latex/euenc/eu1lmss.fd
INPUT /usr/share/texlive/texmf-dist/tex/latex/euenc/eu1lmss.fd
INPUT /usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
INPUT /usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
INPUT /usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty
INPUT /usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty
INPUT /usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
INPUT /usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
INPUT /usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty
INPUT /usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty
INPUT /usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
INPUT /usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
INPUT /usr/share/texlive/texmf-dist/tex/latex/graphics-def/xetex.def
INPUT /usr/share/texlive/texmf-dist/tex/latex/graphics-def/xetex.def
INPUT /usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.cfg
INPUT /usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.cfg
INPUT test.aux
INPUT test.aux
OUTPUT test.aux
INPUT /usr/share/texmf/tex/latex/tipa/t3cmr.fd
INPUT /usr/share/texmf/tex/latex/tipa/t3cmr.fd
INPUT /usr/share/texlive/texmf-dist/fonts/map/fontname/texfonts.map
INPUT /usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmmi12.tfm
INPUT /usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmmi8.tfm
INPUT /usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmmi6.tfm
INPUT /usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmsy10.tfm
INPUT /usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmsy8.tfm
INPUT /usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmsy6.tfm
INPUT /usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmr12.tfm
INPUT /usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmr8.tfm
INPUT /usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmr6.tfm
INPUT test.aux
<FONTMAP: var="" lib="" texmf="" fonts="" map="" pdftex="" updmap="" pdftex.map=""><FONTMAP: var="" lib="" texmf="" fonts="" map="" dvipdfmx="" updmap="" kanjix.map=""><FONTMAP: usr="" share="" texlive="" texmf-dist="" fonts="" map="" dvipdfmx="" ckx.map="">No dvi filename specified, reading standard input.
stdin -> test.pdf
DVI Comment: XeTeX output 2016.09.03:0919

xdvipdfmx:fatal: Bad DVI: negative point_size: -1371074304

Output file removed.

It looks like xdv contains a value that is badly converted between different endianness.

An xdv file produced at amd64 box can be successfully converted to pdf at MIPS box using xdvipdfmx.
So I compared these test.xdv files:

% xxd test-amd64.xdv > test-amd64.xdv.xxd
% xxd test-mips.xdv > test-mips.xdv.xxd
% diff test-amd64.xdv.xxd test-mips.xdv.xxd
3c3
< 0000020: 362e 3039 2e30 323a 3231 3139 8b00 0000 6.09.02:2119....


0000020: 362e 3039 2e30 323a 3231 3137 8b00 0000 6.09.02:2117....
11c11
< 00000a0: 8d92 00db bbf7 fc00 0000 1300 1147 ae00 .............G..


00000a0: 8d92 00db bbf7 fc00 0000 13ae 4711 0000 ............G...
20c20
< 0000130: 00e1 1db2 fc00 0000 1400 0c00 0000 003f ...............?


0000130: 00e1 1db2 fc00 0000 1400 000c 0000 003f ...............?
40c40
< 0000270: 0000 fc00 0000 0e00 0a00 0000 003f 2f75 .............?/u


0000270: 0000 fc00 0000 0e00 000a 0000 003f 2f75 .............?/u
65c65
< 0000400: 9700 0000 0700 01fc 0000 0014 000c 0000 ................


0000400: 9700 0000 0700 01fc 0000 0014 0000 0c00 ................
70c70
< 0000450: 7466 0000 0000 fc00 0000 1300 1147 ae00 tf...........G..


0000450: 7466 0000 0000 fc00 0000 13ae 4711 0000 tf..........G...
75c75
< 00004a0: 6600 0000 00fc 0000 000e 000a 0000 0000 f...............


00004a0: 6600 0000 00fc 0000 000e 0000 0a00 0000 f……………

Differences between two xdv files are clearly in a byte order.
If I try to compile dvi files from a minimal LaTeX document then resulting DVI files are the same.

So it is a possible bug in XeTeX xdv generator.

1 Attachments

Discussion

  • Anonymous

    Anonymous - 2016-11-15

    This bug was caused by a configuration error on the Debian side.

    Sorry for the noice, I am closing this bug.

     
  • Norbert Preining

    This bug was caused by a configuration error on the Debian side and does not apply to upstream (here).

    This bug should be closed. Sorry for the noise.

     
  • Arthur Reutenauer

    • status: open --> closed
     
  • Arthur Reutenauer

    Thanks Norbert, I just closed it.

     

Anonymous
Anonymous

Add attachments
Cancel