Bug 1967686
Summary: | SIGINT not passed to scl based process when using sudo | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Piyush Bhoot <pbhoot> |
Component: | scl-utils | Assignee: | Michal Domonkos <mdomonko> |
Status: | CLOSED ERRATA | QA Contact: | Lukáš Zachar <lzachar> |
Severity: | unspecified | Docs Contact: | |
Priority: | high | ||
Version: | 8.4 | CC: | ayadav, mdomonko |
Target Milestone: | beta | Keywords: | AutoVerified, Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | scl-utils-2.0.2-15.el8 | Doc Type: | No Doc Update |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-05-10 14:30:03 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Piyush Bhoot
2021-06-03 15:32:49 UTC
What happens here is that scl simply treats any abnormal process termination as an error and doesn't handle SIGINT in any special way. The reason it "works" when using bash as the scl command and running tail in it (as described in Comment 0) is simply because scl is not involved there at all, and bash doesn't print an error on SIGINT. Normally, using sudo in the same scenario would behave the same way (no error), however this is a peculiarity of gcc-toolset-10 which ships a sudo wrapper (see Bug 849452 and a fixup Bug 1319936) that actually runs another scl instance nested - and scl, as mentioned above, prints an error on SIGINT. So it's actually the nested scl instance that yields the error, not the parent one (but that's not important here.) Anyway, handling SIGINT fixes all of the above, here's the patch: https://github.com/sclorg/scl-utils/commit/9147d3b66e0a263c2eb427b7892b34c925363854 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (scl-utils bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2022:1959 |