View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000549 | AlmaLinux-9 | sudo | public | 2025-07-21 15:40 | 2025-07-21 16:05 |
| Reporter | gregory-n-able | Assigned To | |||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | new | Resolution | open | ||
| Summary | 0000549: Backport request - Upstream bug 0000367 - use_pty: after killing an SSH connection some application are still running | ||||
| Description | This is a request to backport an upstream bugfix that can cause excessive resource utilization, especially when using the 'more' command, but has also been observed with the 'tail' command as well. See comment: https://github.com/sudo-project/sudo/issues/367#issuecomment-2042128393 and the reference to: "I suspect that there are no many reports just because in that case tail consume 0% of CPU. Indeed, we have 1 report for tail but 4, about more (because it reach 100% of CPU).". In my case, the issue I am seeing is with 'tail', but I expect some of our servers will encounter this with 'more', its just 'tail' is used much more frequently for troubleshooting. From Upstream release notes for sudo v1.9.16 (https://github.com/sudo-project/sudo/releases/tag/v1.9.16): When sudo runs a command in a pseudo-terminal and the user's terminal is revoked, the pseudo-terminal's foreground process group will now receive SIGHUP before the terminal is revoked. This emulates the behavior of the session leader exiting and is consistent with what happens when, for example, an ssh session is closed. GitHub issue 0000367 (https://github.com/sudo-project/sudo/issues/367). | ||||
| Steps To Reproduce | From the upstream bug report: be sure to use Defaults use_pty (that is now the default) 1. sudo su - 2. tail -f /var/log/messages 3. kill the SSH connection You will see the tail still running after that. | ||||
| Additional Information | Issue appears to happen when using 'su' as part of the 'sudo' command. Directly invoking sudo will correctly terminate the process on session disconnection. | ||||
| Tags | AlmaLinux, almalinux9, sudo | ||||
|
|
https://github.com/sudo-project/sudo/commit/41978a56e042977923c1a55191b887218c536145 looks to be the relevant commit. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2025-07-21 15:40 | gregory-n-able | New Issue | |
| 2025-07-21 15:40 | gregory-n-able | Tag Attached: AlmaLinux | |
| 2025-07-21 15:40 | gregory-n-able | Tag Attached: almalinux9 | |
| 2025-07-21 15:40 | gregory-n-able | Tag Attached: sudo | |
| 2025-07-21 16:05 | jonathan | Note Added: 0001153 |