NetBSD Problem Report #57486

From www@netbsd.org  Sat Jun 24 13:46:01 2023
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id F247F1A9242
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 24 Jun 2023 13:46:00 +0000 (UTC)
Message-Id: <20230624134559.AACA41A9244@mollari.NetBSD.org>
Date: Sat, 24 Jun 2023 13:45:59 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: mdnsd(8) memory leak
X-Send-Pr-Version: www-1.0

>Number:         57486
>Category:       bin
>Synopsis:       mdnsd(8) memory leak
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gutteridge
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 24 13:50:00 +0000 2023
>Last-Modified:  Fri Jun 30 02:29:57 +0000 2023
>Originator:     Taylor R Campbell
>Release:        netbsd-10
>Organization:
The NetMDNSD Foundation
>Environment:
NetBSD nanocons.local 10.0_BETA NetBSD 10.0_BETA (GENERIC64) #3: Tue Jan 17 16:42:00 UTC 2023  root@manticore.local:/usr/obj/10/evbarm64/sys/arch/evbarm/compile/GENERIC64 evbarm
>Description:
On a small local network with a dozen hosts, mdnsd routinely swells to hundreds of megabytes of RSS until it is nixed by the oom-killer (although the oom-killer often picks other victims like all the shell commands run by /etc/daily).

With the volume of data it processes in this scenario, it should really be limited to a few hundred kilobytes.
>How-To-Repeat:
Leave mdnsd running on a network with a few other machines and use .local hostnames.
>Fix:
Yes, please!

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: bin-bug-people->gutteridge
Responsible-Changed-By: gutteridge@NetBSD.org
Responsible-Changed-When: Fri, 30 Jun 2023 02:29:57 +0000
Responsible-Changed-Why:
I'll take a look at this.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.