Problem with mktex* generated files when running latex on GCP cloud run

Norbert Preining norbert at preining.info
Tue Jul 15 06:14:13 CEST 2025


To conclude this thread:

This issue stems from gvisor (https://gvisor.dev) which provides a
sandbox environment for docker container on GCP.

There, the st_nlink entry for directories is hard-coded to 2.

libkpathsea uses the leaf-optimization trick to skip directories where
st_nlink == 2:
https://github.com/TeX-Live/texlive-source/blob/tags/texlive-2025.2/texk/kpathsea/elt-dirs.c#L277-L293
(before the rework Karl just did recently)

Thus, the directory with the tfm file was never searched.

Bug report towards gvisor: https://github.com/google/gvisor/issues/11925

Best regards

Norbert

--
DI Dr Norbert Preining                        https://www.preining.info
arXiv / Cornell University   +   IFMGA Guide   +   TU Wien  +  TeX Live
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13


More information about the texhax mailing list.