termux / termux/termux-docker

sometimes `bash` crashes when running `build-package.sh`

Open
#89 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

github_actions
Dominant language
Shell
Stars
731
Forks
109
PR merge metrics
No merged PRs in 30d

Description

Intermittent ~1/20 builds.

I am not sure what component causes this issue, so I am writing it here to save it:

Skipping already built dependency zstd@1.5.7-1
libc: Fatal signal 11 (SIGSEGV), code 128 (SI_KERNEL), fault addr 0x0 in tid 36954 (bash), pid 36954 (bash)
./build-package.sh: line 816: 36954 Segmentation fault         (core dumped) ( if [[ "$TERMUX_ON_DEVICE_BUILD" == "false" && -n "${TERMUX_ARCH+x}" && "${TERMUX_ARCH}" == 'all' ]]; then

https://github.com/termux-user-repository/tur/actions/runs/30449837156/job/90568989252?pr=2695

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing build-package.sh around line 816 and the linked GitHub Actions run, focusing on the intermittent bash SIGSEGV after the zstd dependency is skipped. Reproduce the build and gather enough information to identify the responsible component; done means the crash cause is isolated and a verified fix or actionable diagnosis is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, docker, shell
Domain
build-system, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.