Public bug reported:
## Environment
- Ubuntu 26.04.1 LTS (Resolute)
- sudo-rs: 0.2.13-0ubuntu1.2
- Traditional sudo: 1.9.17p2-1ubuntu3.2
- Execution environment: cron, non-interactive, without a controlling terminal
## Description
A scheduled ClamAV scan completed successfully, but the calling sudo-rs
process remained in a stopped state (T), leaving clamdscan as a zombie
process (Z).
The parent shell processes continued waiting indefinitely, preventing
the cron job from completing.
Process inspection revealed:
- sudo: State T (stopped)
- clamdscan: State Z (zombie)
- Pending shared signal: SIGCHLD (0000000000010000)
- TracerPid: 0
- No controlling terminal (TTY: ?, TPGID: -1)
Sending SIGCONT to the stopped sudo process immediately resolved the
situation. The zombie disappeared, the shell script completed its
cleanup routines, and the associated PAM sessions were closed.
## Comparative test
The system-wide sudo alternative was subsequently changed to traditional
sudo:
`sudo update-alternatives --set sudo /usr/bin/sudo.ws`
The same scheduled scan was repeated without modifying the shell scripts
or ClamAV configuration.
| Measurement | sudo-rs | Traditional sudo |
|---|---|---|
| File scan paths | 42564 | 42568 |
| Scan duration | 5103.752 seconds | 5303.998 seconds |
| Total script runtime | 02:10:35 | 01:28:24 |
| Stopped sudo process | Yes | No |
| Zombie child process | Yes | No |
| Manual intervention required | Yes | No |
With traditional sudo, the script completed in the same second as
clamdscan.
## Expected behavior
sudo should collect the terminated child process and return its exit
status to the calling shell without requiring manual intervention.
## Additional information
The exact trigger of the stopped state is currently unknown. The issue
occurred without a controlling terminal.
The comparative test suggests an issue specific to sudo-rs, although
reproducibility has not yet been established.
ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: sudo-rs 0.2.13-0ubuntu1.2
ProcVersionSignature: Ubuntu 7.0.0-44.44-generic 7.0.14
Uname: Linux 7.0.0-44-generic x86_64
ApportVersion: 2.34.1-0ubuntu0.1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Sun Nov 29 18:55:40 2026
InstallationDate: Installed on 2025-07-13 (504 days ago)
InstallationMedia: Ubuntu 22.04.4 LTS "Jammy Jellyfish" - Release amd64
(20240220)
ProcEnviron:
LANG=de_DE.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-256color
XDG_RUNTIME_DIR=<set>
SourcePackage: rust-sudo-rs
UpgradeStatus: Upgraded to resolute on 2026-10-27 (33 days ago)
** Affects: rust-sudo-rs (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug resolute wayland-session
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2178368
Title:
sudo-rs remains stopped (T) after child process exits in non-
interactive cron job, leaving a zombie process
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rust-sudo-rs/+bug/2178368/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs