[Dev-luatex] Memory allocation bugs?

Vianney le Clément vleclement at gmail.com
Sun Jan 1 13:14:13 CET 2012


Hello,

Recently, I have run into strange error messages using plain luatex. I
have narrowed it down to some minimal examples shown below with their
log. I have tried luatex provided by texlive 2011 and a build from the
latest svn trunk. They work fine with pdftex. They also work fine
(apart from luatex being unable to ship the huge page) when removing
the \font\temp=... line in the loop. In case you wonder, my intent is
not to put 10k lines on one page, it just simplifies the examples. I
also get the errors when spreading out the text across multiple pages.

Can you put me in CC of the replies as I'm not subscribed to the list? Thanks.

Best wishes for 2012,
Vianney

----
\pdfmapline{phvr8r Helvetica 32 <8r.enc}
\font\tenpt=phvr8r at 10pt

\newbox\outbox
\newcount\Line
\Line=0
\loop\ifnum\Line<12000
    \font\temp=phvr8r at 10pt
    \setbox0=\hbox{\tenpt The quick brown fox jumps over the lazy dog}
    \setbox\outbox=\vbox{\unvbox\outbox\box0}
    \advance\Line by 1
\repeat

\shipout\box\outbox

\bye
----
This is LuaTeX, Version beta-0.71.0-2011123118  (format=luatex
2011.8.17)  1 JAN 2012 12:53
 restricted \write18 enabled.
**double-free-node.tex
(./double-free-node.tex
\outbox=\box16
\Line=\count27
 [1]
! Attempt to double-free hlist node 57582, ignored.
l.14 \shipout\box\outbox

? X
{/opt/texlive/2011/texmf-dist/fonts/enc/dvips/base/8r.enc}
Output written on double-free-node.pdf (1 page, 67114 bytes).

PDF statistics: 12 PDF objects out of 1000 (max. 8388607)
 8 compressed objects within 1 object stream
 0 named destinations out of 1000 (max. 131072)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)
----

----
\pdfmapline{phvr8r Helvetica 32 <8r.enc}

\newbox\outbox
\newcount\Line
\Line=0
\loop\ifnum\Line<12000
    \font\temp=phvr8r at 10pt
    \setbox0=\hbox{The quick brown fox jumps over the lazy dog}
    \setbox\outbox=\vbox{\unvbox\outbox\box0}
    \advance\Line by 1
\repeat

\shipout\box\outbox

\bye
----
This is LuaTeX, Version beta-0.71.0-2011123118
 restricted \write18 enabled.
(./segfault.texSegmentation fault
----

----
\pdfmapline{phvr8r Helvetica 32 <8r.enc}

\newbox\outbox
\newcount\Line
\Line=0
\loop\ifnum\Line<10000
    \font\temp=phvr8r at 10pt
    \setbox0=\hbox{Test-test (test test), test test test test test
test'!" Test }
    \setbox\outbox=\vbox{\unvbox\outbox\box0}
    \advance\Line by 1
\repeat

\shipout\box\outbox

\bye
----
This is LuaTeX, Version beta-0.71.0-2011123118  (format=luatex
2011.8.17)  1 JAN 2012 12:51
 restricted \write18 enabled.
**copy-free-node.tex
(./copy-free-node.tex
\outbox=\box16
\Line=\count27

! Attempt to copy free hlist node 5549, ignored.
\body ... \setbox 0=\hbox {Test-test (test test),
                                                  test test test test test t...

\next ->\body
              \let \next \iterate \else \let \next \relax \fi \next
l.12 \repeat

? X
No pages of output.

PDF statistics: 0 PDF objects out of 1000 (max. 8388607)
 0 named destinations out of 1000 (max. 131072)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)
----


More information about the dev-luatex mailing list