Skip to content

Android x86_64 3.15t: mimalloc's raw syscall(SYS_access) is killed by the app seccomp filter (SIGSYS at Py_Initialize) #436

Closed

Description

@b-re-w

toolchain #145 android-e2e (run 43691526214) dies 5 s after start: Fatal signal 31 (SIGSYS), code 1 (SYS_SECCOMP), syscall 21 in libpython3.15t.so from cpython-3.15.0t-mobile x86_64. Disassembly maps it to _mi_prim_numa_node_count in CPython's vendored mimalloc (Objects/mimalloc/prim/unix/prim.c): line 65 takes the raw-syscall branch whenever SYS_open/SYS_access exist, and line 77 calls syscall(SYS_access, ...). Android's x86_64 app seccomp filter allows only faccessat. arm64 is unaffected (asm-generic has no __NR_access, the binary imports access@LIBC).

Fix: in .github/scripts/ft-mobile/build-android.sh, make Android take mimalloc's libc branch (add && !defined(ANDROID) to that guard), failing loudly if the guard line changes. Then rebuild the x86_64 asset and update its checksum.

Done when: the rebuilt x86_64 libpython3.15t.so has no syscall(21)/syscall(2) sites, and toolchain #145 android-e2e is green.

Activity

  1. b-re-w commented on Nov 15, 2026

    @b-re-w
    MemberAuthor

    Fixed by #437 and the rebuilt x86_64 asset: toolchain #145 android-e2e is green on the 3.15t x86_64 emulator (run 43709708615).

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions