[tlbuild] expand_depth vs. sigsegv check

Johannes Hielscher jhielscher at posteo.de
Tue Jun 2 11:59:57 CEST 2020


Am Mon, 1 Jun 2020 16:31:39 -0600
schrieb Karl Berry <karl at freefriends.org>:

> Anyone who has a chance, can you please try running
>   tex '\def\z{\number\z}\z'
> on the command line (or the equivalent)?

aarch64-linux, 512 MB RAM:

This is TeX, Version 3.14159265 (TeX Live 2020) (preloaded format=tex)
! TeX capacity exceeded, sorry [expansion depth=10000].



Same machine, with `ulimit -S -s 3287` or lower:

This is TeX, Version 3.14159265 (TeX Live 2020) (preloaded format=tex)
Segmentation fault



This is a ridiculously low limit. This tiny machine (4cm×4cm) already
struggles with TeX documents of everyday complexity, still these 3 MB
are less than 1% of its RAM.

The limit on my x86_64-linux machine is at 1728k.


Best,
Johannes



More information about the tlbuild mailing list.