From nobody Wed Feb 12 14:13:28 2025 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YtKzh0ngBz5mrTn; Wed, 12 Feb 2025 14:13:36 +0000 (UTC) (envelope-from zlei@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YtKzg5qYSz3xdm; Wed, 12 Feb 2025 14:13:35 +0000 (UTC) (envelope-from zlei@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1739369615; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=mua7+dyWoCcloY1USRqFTE/p31uVqbjgsb6qpdU/gLI=; b=IfzLdoc+ik27p6hWIZJH7Fl8H/fmbtwyVm2Z+6pahkTnfpezPFxwqY96c8ZHxRSicZMA/G icssVzfLd+BSfzm6MOckfcz0THx5yG+/7fXkjL4AR1FhgohvXzUmSUjTTYKtpUR0aQ16od iw8Sv5x7GFsap6UfSJvmEkZekCvVrKojq1wGtt611dSiUKJDiwkdyXXXzIE3zD/fzZbwDH LxZ6aPDypyTvhS47wLHjKuSSnM4y4hHIYPGGQqn3AQ3hZepn6vfVHeDXqniARgPFVGoxeH IPLN8rJNhkSbXbMhZZ/WseV2mGn3f+1turJ7uP17P6cM94dmuSbedR2+lg+pCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1739369615; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=mua7+dyWoCcloY1USRqFTE/p31uVqbjgsb6qpdU/gLI=; b=D2A+xSjZpTb12tmCTHF4Ib2mArRT50OLxqCdTWDLpSkBJaHhmXLxhKXrsoPVN8h2ku5vhR 1P3ulm8MwdgIeRKH0s37qLj351oIPACLnJ4ribhtqwYCYksdL2tN+67Lgc3HQnOpmyst27 EkJMYXxRhg2dcr/N+ly8D9UtskITc2QhGwTPjEqwnwL/Y2Mgpkon93UZQDip1brU3IcVq6 AwU7HHP+D2DMJ725dmMYhPm58/QAka+tzJkc6fpZHY1vfG/1Uu886MrE8vpJvGLoxpXh38 DAcqhcRYPIZUp2cHbud5Owb4E7MAX8ZBiBzCqWW/Lo9iGiSPwmgqEaH8oOpI6g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1739369615; a=rsa-sha256; cv=none; b=co3bBEvbRfZcYBxj87a+JVM/WH4uD44KkS3IOeM5/gPvEqDJ4P1F8fZXonHBKjOeYCf+By rcDU0YdenH9db8LrOOorrXu9oLJgEUXJYAR4XMMgSqxY0OHKOMUK5hY+xr9YcjhAI+wCoh F6KttyH+rayT2CC8dX8bxe4Rp+y/JEmKEhjAgzlk9MPJYMJfEXNZ2gcMqHZFS7j0I5Lnvz zlXTQWgHz4K8rwfJ+7ZLPuObUhmrClZgpq8NoBIN3nD0ApDCyJzfWoxi7unKu1KmGcSTiu 3XGy+MD1DrdeoO1A5lc7MmfGpdmSQ7VUnGB1Y2Xevv4ogK7HsCorOSyqYqnHCQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from smtpclient.apple (ns1.oxydns.net [45.32.91.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: zlei/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4YtKzf4lSBzrZT; Wed, 12 Feb 2025 14:13:34 +0000 (UTC) (envelope-from zlei@FreeBSD.org) Content-Type: multipart/signed; boundary="Apple-Mail=_D67C0B02-1B8D-469C-A94F-CB09D7E1A438"; protocol="application/pgp-signature"; micalg=pgp-sha512 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.10\)) Subject: Re: rtadvctl -vv show : Segmentation fault From: Zhenlei Huang In-Reply-To: <20250211224239.51cf1d2e@thor.sb211.local> Date: Wed, 12 Feb 2025 22:13:28 +0800 Cc: FreeBSD CURRENT , freebsd-net@freebsd.org Message-Id: <40962DA9-AAE6-4B6D-8240-703D2E364DA5@FreeBSD.org> References: <20250211224239.51cf1d2e@thor.sb211.local> To: A FreeBSD User X-Mailer: Apple Mail (2.3696.120.41.1.10) --Apple-Mail=_D67C0B02-1B8D-469C-A94F-CB09D7E1A438 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Feb 12, 2025, at 5:42 AM, A FreeBSD User = wrote: >=20 > Hello, >=20 > I'm running a small 14-STABLE (FreeBSD 14.2-STABLE #11 = n270324-8d5d7e2ba3a6: Thu Feb 6 > 16:56:03 CET 2025 amd64) based router appliance, running rtadvd(8). >=20 > When stoppimg/starting mpd5 several times, changing the IPv6 prefix, I = can almost with a 100% > certainty reproduce such an error calling rtadvctl: >=20 > [...] > root@gate:~ # rtadvctl -vv show > igb0: flags=3D status=3D mtu 1500 > DefaultLifetime: 30m > MinAdvInterval/MaxAdvInterval: 3m20s/10m > AdvLinkMTU: , Flags: , Preference: medium > ReachableTime: 0s, RetransTimer: 0s, CurHopLimit: 64 > AdvIfPrefixes: no > Next RA send: Tue Feb 11 22:36:21 2025 > Last RA send: Tue Feb 11 22:30:23 2025 > Prefixes (1): > Segmentation fault > [...] >=20 > The indication of such a rtadvd failure within our network is no = prefix delegation any > more, several IPv6 on the (client) hosts's NICs are marked = "deprecated" or "detached", but > none usable. >=20 > Checking on the gateway with the command shown above results in a = segmentation fault ... funny. Do you get the core dump ? You can attach the core to gdb or lldb to = easily figure out which line of source code is to be blamed. >=20 > To solve this, we have to restart rtadvd. >=20 > -- >=20 > A FreeBSD user --Apple-Mail=_D67C0B02-1B8D-469C-A94F-CB09D7E1A438 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iNUEARYKAH0WIQRj28YmNowGX1isJg7GJJ6Jgbd0XwUCZ6ysiF8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0NjNE QkM2MjYzNjhDMDY1RjU4QUMyNjBFQzYyNDlFODk4MUI3NzQ1RgAKCRDGJJ6Jgbd0 X34bAQDlQpib6mzf1H0zWdPzHfjiQNBo1plcoQVQxBEI3C2jNQEAuKX8y7NwALGT DuIHoRWhV3C+WbckW0d1FjZ6RqDblwE= =fvf+ -----END PGP SIGNATURE----- --Apple-Mail=_D67C0B02-1B8D-469C-A94F-CB09D7E1A438--