Skip to content

resolvectl: segfault when resolving mDNS service #23843

Closed

Description

@vchillara

systemd version the issue has been seen with

251

Used distribution

Fedora 35

Linux kernel version used

5.15.18-200.fc35.x86_64

CPU architectures issue was seen on

x86_64

Component

resolvectl, systemd-resolved

Expected behaviour you didn't see

Resolved service data

Unexpected behaviour you saw

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

  1. Run systemd-resolve --set-mdns=yes --interface=enp0s3
  2. 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

No response

Activity

  1. added
    bug 🐛
    on Jun 27, 2022
  2. added this to the v252 milestone on Jun 27, 2022
  3. yuwata commented on Jun 27, 2022

    @yuwata
    Member

    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.

  4. added
    needs-reporter-feedback ❓
    on Jun 27, 2022
  5. vchillara commented on Jun 28, 2022

    @vchillara
    ContributorAuthor

    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.

  6. evverx commented on Jun 30, 2022

    @evverx
    Contributor

    It could be that #23873 is the same issue.

  7. added 7 commits that reference this issue on Jul 1, 2022
    e5be7a5
    043f231
    db50a3b
    7551b1b
    9a8f3c9
    6a88b13
    d50a58e
  8. added a commit that references this issue on Aug 23, 2022
    e832a27
  9. added a commit that references this issue on Jan 27, 2023
    dc3faee
  10. added a commit that references this issue on Nov 1, 2023
    b70707b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛needs-reporter-feedback ❓resolve

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions