Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

tmc-sandbox: ptrace: Operation not permitted

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

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
docker, docker-compose, linux

Research direction

Start with docker-compose-dev.yml and the tmc-sandbox configuration, then reproduce the submission failure using the reported Docker and Debian environment. Check how ptrace permissions are configured and verify the sandbox can pass the ptrace check without producing the logged error; document the confirmed configuration and any version-specific behavior.

Written by the indexing model from the issue text.

Description

Getting Running the submission failed in Submission logs:

[0.400874] Checking that ptrace can change system call numbers...Core dump limits :
[0.400931] 	soft - NONE
[0.400944] 	hard - NONE
[0.401052] ptrace: Operation not permitted
[0.401247] check_ptrace : expected SIGSTOP, got status = 9

Changing tmc-sandbox capabilities in docker-compose-dev.yml:

cap_add:
      - SYS_PTRACE

seems to fix the issue. Maybe the default capabilities have changed in the newer docker versions.
Platform:

Docker version 17.12.0-ce, build c97c6d6
docker-compose version 1.19.0, build 9e633ef
Linux hostname 4.9.0-5-amd64 #1 SMP Debian 4.9.65-3+deb9u2 (2018-01-04) x86_64 GNU/Linux
Dominant language
Ruby
Stars
51
Forks
42
Avg merge
1h 27m
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

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.

More from testmycode/tmc-server

All issues in testmycode/tmc-server

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.