Re: texworks crashes with a context mkiv example

Bruno Voisin <[email protected]> Tue, 17 Mar 2026 05:27:06 +0100
Newsgroups gmane.comp.tex.live
Message-ID <[email protected]>
> On 16 Mar 2026, at 18:20, Bruno Voisin <[email protected]> wrote:
> 
> - Switching to "mtxrun --generate" or "mtxrun --luatex --generate" [...], everything goes to /var/folders/1r/dhdtft1s4qgfjwbcpkfhqf5c0000gn/T/luametatex-cache [...]. I need to create ~/Library/texlive/2026/texmf-var (= TEXMFVAR on the Mac) manually, for  "mtxrun --generate" and "mtxrun --luatex --generate" to put their generated files there.

Searching previous emails, this reminds of an earlier problem with luaotfload, solved in LuaTeX development id 7606:

https://tug.org/pipermail/tex-live/2024-February/050121.html

I don't know how to find which commit corresponds to 7606. Based on the dates, this might be:

2024-02-20 Luigi Scarso <[email protected]> 
	* in kpse mode, --shell-escape enable the standard lfs.* and os.* functions otherwise protected 
	* fixed lfs.mkdirp return value 

2024-02-19 Luigi Scarso <[email protected]> 
	* new function lfs.mkdirp -- make parent directories as needed.

namely

https://gitlab.lisn.upsaclay.fr/texlive/luatex/-/commit/981ccb7ae598a1725f82b24104cadc5ffab998b4
https://gitlab.lisn.upsaclay.fr/texlive/luatex/-/commit/43d3969bf67359cdc9a7236ea49e21ad4004e470

Regarding LuaMetaTeX, mtxrun.lua defines a lfs.mkdirs which looks similar to LuaTeX's lfs.mkdirp.

Bruno Voisin