Skip to content

Comments

Add gdb to Docker test containers#397

Merged
zhengyu123 merged 1 commit intomainfrom
zgu/docker-tests
Feb 25, 2026
Merged

Add gdb to Docker test containers#397
zhengyu123 merged 1 commit intomainfrom
zgu/docker-tests

Conversation

@zhengyu123
Copy link
Contributor

@zhengyu123 zhengyu123 commented Feb 24, 2026

What does this PR do?:

  • Install gdb in Alpine (musl) base image
  • Add --cap-add=SYS_PTRACE and --init/--ulimit flags to shell mode so gdb can ptrace processes inside the container

Motivation:
Add ability to debug crashes encountered during the test runs.

Additional Notes:

How to test the change?:

  • Run ./utils/run-docker-tests.sh --libc=musl --jdk=11 --shell --mount
  • Inside docker shell, run gdb
  • gdb should execute

For Datadog employees:

  • If this PR touches code that signs or publishes builds or packages, or handles
    credentials of any kind, I've requested a review from @DataDog/security-design-and-guidance.
  • This PR doesn't touch any of that.
  • JIRA: [JIRA-XXXX]

Unsure? Have a question? Request a review!

- Install gdb in Alpine (musl) base image
- Add --cap-add=SYS_PTRACE and --init/--ulimit flags to shell mode
  so gdb can ptrace processes inside the container

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@dd-octo-sts
Copy link

dd-octo-sts bot commented Feb 24, 2026

CI Test Results

Run: #22366891154 | Commit: 7115d81 | Duration: 11m 24s (longest job)

All 40 test jobs passed

Status Overview

JDK glibc-aarch64/debug glibc-amd64/debug musl-aarch64/debug musl-amd64/debug
8 - - -
8-ibm - - -
8-j9 - -
8-librca - -
8-orcl - - -
8-zing - -
11 - - -
11-j9 - -
11-librca - -
11-zing - -
17 - -
17-graal - -
17-j9 - -
17-librca - -
17-zing - -
21 - -
21-graal - -
21-librca - -
21-zing - -
25 - -
25-graal - -
25-librca - -

Legend: ✅ passed | ❌ failed | ⚪ skipped | 🚫 cancelled

Summary: Total: 40 | Passed: 40 | Failed: 0


Updated: 2026-02-24 19:50:36 UTC

@zhengyu123 zhengyu123 marked this pull request as ready for review February 24, 2026 19:51
@zhengyu123 zhengyu123 requested a review from a team as a code owner February 24, 2026 19:51
@zhengyu123 zhengyu123 merged commit be8ec0d into main Feb 25, 2026
101 checks passed
@zhengyu123 zhengyu123 deleted the zgu/docker-tests branch February 25, 2026 13:20
@github-actions github-actions bot added this to the 1.38.0 milestone Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants