Skip to content

bad system call termux #4197

Closed
Closed

Description

@mzltest

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

codex.log

Activity

  1. added
    bug
    on Sep 24, 2025
  2. added
    CLI
    on Nov 16, 2025
  3. added
    sandbox
    on Nov 23, 2025
  4. removed
    CLI
    on Dec 23, 2025
  5. etraut-openai commented on Jan 13, 2026

    @etraut-openai
    Contributor

    Closing stale bug.

  6. Henkster72 commented on Oct 21, 2026

    @Henkster72

    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 detects Linux (ARM64) and installs successfully. codex --version works. Starting the interactive CLI with codex then fails with Bad system call. Using --sandbox danger-full-access allows the TUI to render, but the interactive session is not stable and exits before /feedback can 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsandbox

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions