Skip to content

resolvectl: segfault when resolving mDNS service #23843

@vchillara

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Programming errors, that need preferential fixingneeds-reporter-feedback ❓There's an unanswered question, the reporter needs to answerresolve

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions