Re: [NTG-context] LuaTeX Crashes
On Fri, Oct 10, 2014 at 12:36 AM, Thangalin wrote: > Hi, > > This Heisenbug was arduous to nail down. The following code causes the > stack overflow on the first run: > > http://pastebin.com/raw.php?i=qwGGBrJf > > If the file is changed to compile successfully, then the compile will > succeed on subsequent attempts, even if the changes are reverted to > the original state. It only breaks on the first try. Something must be > cached, but I don't know what. > > $ context --version > mtx-context | current version: 2014.10.07 11:14 > > $ luatex --version > This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972) > > $ uname -a > Linux 3.13.0-36-generic #63-Ubuntu SMP Wed Sep 3 21:30:07 UTC 2014 > x86_64 x86_64 x86_64 GNU/Linux > > There might be some extraneous bits, but hopefully that will be enough > of a clue as to the problem. > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > no crash here current version: 2014.10.09 15:22 $ luatex --version This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972) $ uname -a Linux 3.14.1-031401-generic #201404141220 SMP Mon Apr 14 16:21:48 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] LuaTeX Crashes
Hi, This Heisenbug was arduous to nail down. The following code causes the stack overflow on the first run: http://pastebin.com/raw.php?i=qwGGBrJf If the file is changed to compile successfully, then the compile will succeed on subsequent attempts, even if the changes are reverted to the original state. It only breaks on the first try. Something must be cached, but I don't know what. $ context --version mtx-context | current version: 2014.10.07 11:14 $ luatex --version This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972) $ uname -a Linux 3.13.0-36-generic #63-Ubuntu SMP Wed Sep 3 21:30:07 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux There might be some extraneous bits, but hopefully that will be enough of a clue as to the problem. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] LuaTeX Crashes
On 10/9/2014 12:14 AM, Thangalin wrote: Hi, It seems tostring is calling itself indefinitely, causing it to crash: can you make an examnple ... C stack overflow stack traceback: [C]: in function 'tostring' ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:388: in function <...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:371> [C]: in function 'tostring' ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:347: in function <...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:332> [C]: in function 'tostring' ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:347: in function <...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:332> [C]: in function 'tostring' ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:347: in function <...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:332> [C]: in function 'tostring' ... ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:347: in function <...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:332> [C]: in function 'tostring' ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:347: in function <...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:332> [C]: in function 'tostring' ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:347: in function <...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:332> [C]: in function 'tostring' ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:711: in function 'pdfshareobjectreference' ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ano.lua:574: in function 'prerollreference' ...14.10.07/tex/texmf-context/tex/context/base/node-ref.lua:409: in function 'setreference' ...14.10.07/tex/texmf-context/tex/context/base/node-ref.lua:597: in function 'injectcurrentreference' [\directlua]:1: in main chunk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] LuaTeX Crashes
On Thu, Oct 9, 2014 at 12:14 AM, Thangalin wrote: > Hi, > > It seems tostring is calling itself indefinitely, causing it to crash: > > C stack overflow > stack traceback: > [C]: in function 'tostring' > ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:388: > in function > <...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:371> > [C]: in function 'tostring' > ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:347: > in function > <...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:332> > [C]: in function 'tostring' > ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:347: > in function > <...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:332> > [C]: in function 'tostring' > ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:347: > in function > <...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:332> > [C]: in function 'tostring' > ... > ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:347: > in function > <...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:332> > [C]: in function 'tostring' > ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:347: > in function > <...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:332> > [C]: in function 'tostring' > ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:347: > in function > <...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:332> > [C]: in function 'tostring' > ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:711: > in function 'pdfshareobjectreference' > ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ano.lua:574: > in function 'prerollreference' > ...14.10.07/tex/texmf-context/tex/context/base/node-ref.lua:409: > in function 'setreference' > ...14.10.07/tex/texmf-context/tex/context/base/node-ref.lua:597: > in function 'injectcurrentreference' > [\directlua]:1: in main chunk > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ I have just updated the minimals, abnd it's ok --- do you have a test file ? -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] LuaTeX Crashes
Hi, It seems tostring is calling itself indefinitely, causing it to crash: C stack overflow stack traceback: [C]: in function 'tostring' ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:388: in function <...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:371> [C]: in function 'tostring' ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:347: in function <...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:332> [C]: in function 'tostring' ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:347: in function <...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:332> [C]: in function 'tostring' ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:347: in function <...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:332> [C]: in function 'tostring' ... ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:347: in function <...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:332> [C]: in function 'tostring' ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:347: in function <...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:332> [C]: in function 'tostring' ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:347: in function <...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:332> [C]: in function 'tostring' ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:711: in function 'pdfshareobjectreference' ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ano.lua:574: in function 'prerollreference' ...14.10.07/tex/texmf-context/tex/context/base/node-ref.lua:409: in function 'setreference' ...14.10.07/tex/texmf-context/tex/context/base/node-ref.lua:597: in function 'injectcurrentreference' [\directlua]:1: in main chunk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] luatex crashes
Am 2014-01-21 um 22:49 schrieb Henning Hraban Ramm : > ConTeXt ver: 2014.01.21 16:07 MKIV beta fmt: 2014.1.21 int: english/english > > This is LuaTeX, Version beta-0.78.2 (TeX Live 2014/dev) (rev 4746) > > This is LuajitTeX, Version beta-0.78.2 (TeX Live 2014/dev) > > > The problems seems to be in the index mechanism, specifically in \placeindex. > If I use \completeindex[criterium=all], it runs through, then I can replace > it with \placeindex (to get rid of the title), and it works, while I don’t > change anything. > If I remove the „good“ TUC file, I get the crash again, and no TUC file is > created. If I put it back, it works again. > Rather minimal example: --- \setupregister[index][align=yes] \starttext \dorecurse{20}{% \expanded{\chapter{My chapter \recurselevel}} \expanded{\index{Index entry \recurselevel}} \expanded{\section{My Zapf \recurselevel}} \input zapf \expanded{\section{My Tufte \recurselevel}} \input tufte } \completeindex %\placeindex \stoptext --- Without the setup [align=yes] I get a different error, but no crash of the binary: structure > sectioning > chapter @ level 2 : 0.21 -> \headtext {index} ! Attempt to double-free glue_spec node 5028, ignored. system > tex > error on line 17 in file /Users/hraban/Documents/projekte/context-tests/indexcrash.tex: Attempt to double-free glue_spec node 5028, ignored ... 7 \expanded{\chapter{My chapter \recurselevel}} 8 \expanded{\index{Index entry \recurselevel}} 9 \expanded{\section{My Zapf \recurselevel}} 10 \input zapf 11 \expanded{\section{My Tufte \recurselevel}} 12 \input tufte 13 } 14 15 \completeindex 16 %\placeindex 17 >> 18 \stoptext \page_shipouts_normal ...box \shipoutscratchbox }} \else \page_shipouts_ignor... \page_boxes_shipout ... {\box \shipoutscratchbox } \fi \setnextrealpageno \th... \page_otr_construct_and_shipout ...cted_page #1#2} \page_otr_flush_pending_co... \page_sides_output_routine_nop ...de_float_output \global \d_page_sides_vsiz... \page_sides_output_routine ..._output_routine_nop \fi \page_otr_triggered_output_routine ...and_routine \fi ... l.17 Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] luatex crashes
On 1/21/2014 6:02 PM, Mojca Miklavec wrote: On Tue, Jan 21, 2014 at 5:49 PM, Henning Hraban Ramm wrote: Now I’ll look for a newer binary. No need to. Version 0.78.2 just came out (last week). While not impossible, it is highly unlikely that Taco addressed exactly this bug in the last week. What you could theoretically do is a binary search to find out which (old) version/commit broke the functionality. (Or simply continue working on a minimal example to send to Taco.) in fact luigi and i addressed that kind of bug last week; don't blame taco for it -) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] luatex crashes
On Tue, Jan 21, 2014 at 5:49 PM, Henning Hraban Ramm wrote: > > Now I’ll look for a newer binary. No need to. Version 0.78.2 just came out (last week). While not impossible, it is highly unlikely that Taco addressed exactly this bug in the last week. What you could theoretically do is a binary search to find out which (old) version/commit broke the functionality. (Or simply continue working on a minimal example to send to Taco.) Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] luatex crashes
Am 2014-01-21 um 21:40 schrieb Henning Hraban Ramm : > current version: 2014.01.21 10:58 or current version: 2014.01.21 16:07 > on OSX 10.9 > > > structures > end of sectionblock 'backpart' > Assertion failed: (type(p)==glue_spec_node), function delete_glue_ref, file > ../../../source/texk/web2c/luatexdir/tex/texnodes.w, line 2942. > > mtx-context | fatal error: no return code, message: luatex: execution > interrupted > > > > structures > end of sectionblock 'backpart' > Assertion failed: (type(p)==glue_spec_node), function delete_glue_ref, file > ../../../source/texk/web2c/luatexdir/tex/texnodes.w, line 2942. > > mtx-context | fatal error: no return code, message: luajittex: execution > interrupted > ConTeXt ver: 2014.01.21 16:07 MKIV beta fmt: 2014.1.21 int: english/english This is LuaTeX, Version beta-0.78.2 (TeX Live 2014/dev) (rev 4746) This is LuajitTeX, Version beta-0.78.2 (TeX Live 2014/dev) The problems seems to be in the index mechanism, specifically in \placeindex. If I use \completeindex[criterium=all], it runs through, then I can replace it with \placeindex (to get rid of the title), and it works, while I don’t change anything. If I remove the „good“ TUC file, I get the crash again, and no TUC file is created. If I put it back, it works again. I didn’t yet manage to create a minimal example, but it’s the same with all of my songbooklets that use registers for an alphabetical ToC. It doesn’t matter if I use LuaTeX or LuaJitTeX. Now I’ll look for a newer binary. Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] luatex crashes
current version: 2014.01.21 10:58 or current version: 2014.01.21 16:07 on OSX 10.9 structures > end of sectionblock 'backpart' Assertion failed: (type(p)==glue_spec_node), function delete_glue_ref, file ../../../source/texk/web2c/luatexdir/tex/texnodes.w, line 2942. mtx-context | fatal error: no return code, message: luatex: execution interrupted structures > end of sectionblock 'backpart' Assertion failed: (type(p)==glue_spec_node), function delete_glue_ref, file ../../../source/texk/web2c/luatexdir/tex/texnodes.w, line 2942. mtx-context | fatal error: no return code, message: luajittex: execution interrupted I didn’t investigate further yet - can you tell me in which direction I should look, or is the error already known? Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___