Thank you for the detailed explanation.
Following up on your comments, I set up a clean sandbox environment to validate the behavior locally using the same simplified script.
The setup completed successfully, and the tests ran as expected in this environment.
I exercised the setup with Lua 5.3.6 and 5.4.8 ( both officially supported ), as well as Lua 5.5.0 ( not officially supported ). In all cases, the behavior was consistent during these tests. The same CFLAGS were used for both mod_lua and the Linux build (-DUSE_LINUX).
For reference, below are the validation steps and results observed:
Test environment details:
Distribution: Ubuntu 22.04
gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04.2)
Libraries and versions:
I am sharing these results in case they are useful as an additional data point.
Kind regards,
PS: I will organize the build script and make it available on a gist or GitLab.
links: