You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
resolvectl: segfault when resolving mDNS service #23843
systemd-resolved occasionally runs into a segfault when trying to resolve an mDNS service via resolvectl.
resolvectl output:
Resolve call failed: Remote peer disconnected
systemd-resolved logs:
Jun 03 11:53:31 image systemd-resolved[28]: enp0s3: Bus client set MulticastDNS setting: yes
Jun 03 11:53:37 image systemd[1]: systemd-resolved.service: Main process exited, code=dumped, status=11/SEGV
Jun 03 11:53:37 image systemd[1]: systemd-resolved.service: Failed with result 'core-dump'.
Steps to reproduce the problem
Run systemd-resolve --set-mdns=yes --interface=enp0s3
Run resolvectl --type=SRV service XStream_Smart_Box_00-xxxxx._googlecast._tcp.local
"xxxxx" being a 16-byte ID
Additional program output to the terminal or log subsystem illustrating the issue
Could you provide the result of the coredump in the journal or coredumpctl? If it does not provide enough information, then please install debug symbols of systemd.
I was able to get this coredump output.
Here's part of the stack trace translated to file/line number:
#0 0x0000000000478622 n/a (/usr/lib/systemd/systemd-resolved + 0x78622) [src/resolve/resolved-dns-rr.c:216]
#1 0x000000000047f2cf n/a (/usr/lib/systemd/systemd-resolved + 0x7f2cf) [src/resolve/resolved-dns-answer.c:279]
#2 0x000000000046032f n/a (/usr/lib/systemd/systemd-resolved + 0x6032f) [src/resolve/resolved-mdns.c:414]
I built from source (tags/v251; #b622e95f2f59fcb58e23ddafed745eee26a0f52f) and used the mkosi image for testing.
Activity
yuwata commentedon Jun 27, 2022
Could you provide the result of the coredump in the journal or
coredumpctl? If it does not provide enough information, then please install debug symbols of systemd.vchillara commentedon Jun 28, 2022
I was able to get this coredump output.
Here's part of the stack trace translated to file/line number:
#0 0x0000000000478622 n/a (/usr/lib/systemd/systemd-resolved + 0x78622) [src/resolve/resolved-dns-rr.c:216]
#1 0x000000000047f2cf n/a (/usr/lib/systemd/systemd-resolved + 0x7f2cf) [src/resolve/resolved-dns-answer.c:279]
#2 0x000000000046032f n/a (/usr/lib/systemd/systemd-resolved + 0x6032f) [src/resolve/resolved-mdns.c:414]
I built from source (tags/v251; #b622e95f2f59fcb58e23ddafed745eee26a0f52f) and used the mkosi image for testing.
evverx commentedon Jun 30, 2022
It could be that #23873 is the same issue.
resolve: mdns: fix use-after-free
resolve: mdns: fix use-after-free
resolve: mdns: fix use-after-free
resolve: mdns: fix use-after-free
resolve: mdns: fix use-after-free
resolve: mdns: fix use-after-free
resolve: mdns: fix use-after-free
resolve: mdns: fix use-after-free
resolve: mdns: fix use-after-free
resolve: mdns: fix use-after-free