
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

On Thu, Oct 9, 2014 at 12:14 AM, Thangalin
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

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 -----------------------------------------------------------------

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.

On Fri, Oct 10, 2014 at 12:36 AM, Thangalin
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
participants (3)
-
Hans Hagen
-
luigi scarso
-
Thangalin