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

Using pipe on rootless container output hangs with use_pty enabled

Open
#403 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
c
Domain
cli

Research direction

The report gives a reproducible command but names no source files or tests. Start by tracing how use_pty handles piped output when sudo runs a rootless Podman command, then reproduce the hang with the supplied command on Red Hat 8 or 9. Done means the piped command exits without hanging while preserving behavior when use_pty is disabled.

Written by the indexing model from the issue text.

Description

With Podman, sudo can be used to run a container in the context of a non-root user (rootless). e.g.
sudo -iu testuser podman run -it busybox echo test
With use_pty enabled, ff the output is piped to another command then it hangs, irresponsive to ctrl+c.
sudo -iu testuser podman run -it busybox echo test | cat
The hanging won't happen if use_pty is disabled or sudo is not used. The deadlock seems to happen with the combination of rootless container and piping. It can be repro'd on Red Hat 8 & 9, the sudo version is 1.9.5p2.

Dominant language
C
Stars
1.7k
Forks
306
Avg merge
1d 2h
Merged PRs (30d)
22

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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 sudo-project/sudo

All issues in sudo-project/sudo

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.