Repository navigation
Description
What version of Codex is running?
codex-cli 0.41.0
Which model were you using?
n/a
What platform is your computer?
termux
What steps can reproduce the bug?
run codex it will display bad system call
What is the expected behavior?
it runs
What do you see instead?
bad system call
Additional information
termux-info
Termux Variables:
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP__APK_FILE=/data/app/com.termux-wrfvruohdsDOJm3B0c7F5g==/base.apk
TERMUX_APP__APK_RELEASE=F_DROID
TERMUX_APP__APP_VERSION_CODE=1022
TERMUX_APP__APP_VERSION_NAME=0.119.0-beta.3
TERMUX_APP__DATA_DIR=/data/user/0/com.termux
TERMUX_APP__IS_DEBUGGABLE_BUILD=false
TERMUX_APP__IS_INSTALLED_ON_EXTERNAL_STORAGE=false
TERMUX_APP__LEGACY_DATA_DIR=/data/data/com.termux
TERMUX_APP__PACKAGE_NAME=com.termux
TERMUX_APP__PID=32402
TERMUX_APP__SE_FILE_CONTEXT=u:object_r:app_data_file:s0:c225,c261,c512,c768
TERMUX_APP__SE_INFO=default:targetSdkVersion=28:complete
TERMUX_APP__TARGET_SDK=28
TERMUX_VERSION=0.119.0-beta.3
TERMUX__APPS_DIR=/data/user/0/com.termux/termux/apps
TERMUX__HOME=/data/data/com.termux/files/home
TERMUX__PREFIX=/data/data/com.termux/files/usr
TERMUX__ROOTFS_DIR=/data/data/com.termux/files
TERMUX__SE_PROCESS_CONTEXT=u:r:untrusted_app_27:s0:c225,c261,c512,c768
TERMUX__UID=11505
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
sources.list
deb https://mirrors.bfsu.edu.cn/termux/apt/termux-main stable main
x11-repo (sources.list.d/x11.list)
deb https://mirrors.bfsu.edu.cn/termux/apt/termux-x11 x11 main
Updatable packages:
All packages up to date
termux-tools version:
1.45.0
Android version:
10
Kernel build information:
Linux localhost 4.14.116 #1 SMP PREEMPT Mon Sep 28 20:39:25 CST 2020 aarch64 Android
Device manufacturer:
HUAWEI
Device model:
TEL-AN00a
Supported ABIs:
SUPPORTED_ABIS: arm64-v8a,armeabi-v7a,armeabi
SUPPORTED_32_BIT_ABIS: armeabi-v7a,armeabi
SUPPORTED_64_BIT_ABIS: arm64-v8a
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec-ld-preload.so
Installed termux plugins:
com.termux.api versionCode:51
com.termux.window versionCode:15
pkg install strace
strace -o codex.log codex
Activity
etraut-openai commentedon Jan 13, 2026
Closing stale bug.
Henkster72 commentedon Oct 21, 2026
Updated reproduction on current standalone CLI\n\nThis is reproducible on native Termux/Android, not specific to one phone model or Android desktop mode.\n\n- Device: Huawei P20 Pro CLT-L29\n- Android: 10\n- Termux: 0.118.3\n- Architecture: arm64-v8a / aarch64\n- Kernel: Linux 4.14.116 Android\n- Codex: standalone
codex-cli 0.163.0\n\nThe official standalone installer detectsLinux (ARM64)and installs successfully.codex --versionworks. Starting the interactive CLI withcodexthen fails withBad system call. Using--sandbox danger-full-accessallows the TUI to render, but the interactive session is not stable and exits before/feedbackcan be used.\n\nReproduction:\n\ntext\ninstall standalone Codex CLI on native Termux\ncodex --version # codex-cli 0.163.0\ncodex # Bad system call\ncodex --sandbox danger-full-access # TUI renders, but session is not stable\n\n\nThis appears to be a Linux sandbox/runtime syscall incompatibility with Android/Termux. The standalone ARM64 binary itself can execute enough to report its version.\n\nPlease consider documenting Android/Termux support status or making the CLI degrade gracefully when Linux sandbox syscalls are unavailable.