Bug 2186468
| Summary: | dnsmasq crash when used for DNS caching with NetworkManager [fedora] | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Petr Menšík <pemensik> |
| Component: | dnsmasq | Assignee: | Petr Menšík <pemensik> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | aegorenkov.91, dking, dns-sig, dougsland, myllynen, pemensik, rhel-cs-infra-services-qe |
| Target Milestone: | --- | Keywords: | TestCaseProvided, Triaged |
| Target Release: | --- | Flags: | pemensik:
needinfo?
(dking) |
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | dnsmasq-2.89-5.fc38 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 2185878 | Environment: | |
| Last Closed: | 2023-06-09 02:00:23 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: | |||
| Bug Depends On: | 2185878 | ||
| Bug Blocks: | |||
|
Description
Petr Menšík
2023-04-13 11:52:01 UTC
Interesting difference between RHEL9 and Rawhide is systemctl restart dbus no longer triggers call to remove_watch in dnsmasq. So the same way to reproduce it does not work. Code on dnsmasq side is the same as on RHEL9, so I think it could still be crashed, but not so easy. Tested on: dbus-libs-1.14.6-1.fc38.x86_64 dnsmasq-2.89-3.fc39.x86_64 Pushed test into fedora: https://src.fedoraproject.org/tests/dnsmasq/c/6169c32d0635b96582c2ba833f8e13a7d9b897ca Hmm, interesting thing were discovered in new written test. The change prevents crash of dnsmasq. But anyway it stops listening on dbus and after restart it does not continue to react on dbus messages. Dbus becomes disconnected and it does not fix until restarted. Hello David, I have found you as a dbus maintainer. Do you know a good way to handle dbus socket disconnection? Is it even required to handle that? It seems to be restarting dbus-broker.service is prevented by its package. I saw in [1] that dbus restart is indeed not common. Is there any way dbus might disconnect sockets from end application, different than stopping and restarting dbus-broker.service? Is there any best practice to handle such situation? [1] https://wiki.ubuntu.com/DbusRestart Test prepared as regression test in Fedora: https://src.fedoraproject.org/tests/dnsmasq//blob/main/f/Regression/dbus-watches FEDORA-2023-5efaca2641 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-5efaca2641 FEDORA-2023-5efaca2641 has been pushed to the Fedora 38 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-5efaca2641` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-5efaca2641 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2023-5efaca2641 has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report. |