Termux LD_PRELOAD from termux-exec makes all-features jsh fail at startup #73
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
On Termux,
LD_PRELOADis commonly set to$PREFIX/lib/libtermux-exec-ld-preload.so. The all-features Androidjsh-androidbinary fails before running commands because embedded sed/pcre2 rejects production dynamic-loader override variables:Smoke result:
./jsh-android -c "echo smoke-ok"fails in the normal Termux environment.env -u LD_PRELOAD ./jsh-android -c "echo smoke-ok"succeeds once the missing boot modules are embedded.Expected: the Android/Termux build should either allow the known Termux
termux-execpreload path or sanitize/handle it before sed/pcre2 initialization.Actual: the raw binary fails in a default Termux shell environment.