From nobody Wed Feb 12 14:33:27 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 4YtLQn1Bklz5mt7R; Wed, 12 Feb 2025 14:33:37 +0000 (UTC) (envelope-from zlei@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 4YtLQn0jDKz42kd; Wed, 12 Feb 2025 14:33:37 +0000 (UTC) (envelope-from zlei@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1739370817; 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=osHTv9TupmZwhJJselIZpk3zSSPCAieHaWDuqfAfu7I=; b=m6E3WSlKplighPz3sOsjIRqrsCuYqNYBlatkpeb5edpuJCBHarej48Wnu+Tc0dwKDA3HXV wJ2q93lyX01r2V944qsZWVWkkSuDTLbYaiCOuNCznWceuJyy/PQMrk3IT1IYlzDjaHpC22 Spes2sBvfD+cY5R4lsWA0fNXzRfhn40QBHMNsku2tNOB3HHmb/S7vg19jWixo8N0WzFeu2 kj17I+5dx0+jGy+zyXXC7gDjdnwMqd23uyzo8P1FAPoge13SAE4FgvJi2pwTYXjjYfQu85 DwbbyjbJ7CGvR0UBh8jsCemboys54Xpy6tgtujcsJKYbx12nTdWCK4OW1ua6Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1739370817; 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=osHTv9TupmZwhJJselIZpk3zSSPCAieHaWDuqfAfu7I=; b=ydHs+hVjMANY1IDOkDw1snPNp90AIdx5O9AbHz2K1DlEVzOMeyrLVoqSOHUu++V8H+b+sF 5u7jH9lxsteCrjU1Bf19DMYBhfppiMZbLvmrAT1l+zZum7BLfCCZsmb8m3LNnhrj2E6f/z bktdFiP+4tWnKw85HRU+SJa/NbrQQgpEcElMd9oWz0qTAPkWS0ONHYtubZbv/+JNEpPMBS DvtOQoYJj/DPXE9Hs4WkyAV8+0jLNaXAxs8moKYOrcIIleiwD0ACCh0+UOPoziEqiHXn6C ev1UVuselGbkcIh3wGDH0Bbn2chLAsHCanXrH10KROdPn1uWKzX03UwrFoaSdw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1739370817; a=rsa-sha256; cv=none; b=kOqnrbjfdT563Wwk0sX2My0FxovIRyOtCsTLLXwhEWccPBkpENJE1lWSG305nMtJJUPBRX ff5fTqmQiv0uTe29Geehqepb5CIw5XuluHoW5/pLpYddBbhbngIFAwztd/89lHRFmD1GlM +xopc8cLkAA1F8zQB8a5jn9kQTC71JDu43N1IAtsjYi4WKYWMop2ERz6zV8LQeGj7oUTeE V6CyGEIy5X/n3HrTUAcTNH+iHCyzvXGhctJiiZgpdiicCwOC/B4SLMWlvJOyUY2uOzqmVB B5gYHhTAfo4/cVeRrTgr5FoLS72hmxZt/kA/btLYQ62NOizrGxwTKD3BsL01tQ== 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 4YtLQl635Zzr3v; Wed, 12 Feb 2025 14:33:35 +0000 (UTC) (envelope-from zlei@FreeBSD.org) From: Zhenlei Huang Message-Id: <4E048C3B-46DB-40E2-B489-4629CE311369@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_99B1978C-CC4C-4C4E-A527-DB1D4C62790E"; 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 Date: Wed, 12 Feb 2025 22:33:27 +0800 In-Reply-To: <40962DA9-AAE6-4B6D-8240-703D2E364DA5@FreeBSD.org> Cc: FreeBSD CURRENT , freebsd-net@freebsd.org To: A FreeBSD User References: <20250211224239.51cf1d2e@thor.sb211.local> <40962DA9-AAE6-4B6D-8240-703D2E364DA5@FreeBSD.org> X-Mailer: Apple Mail (2.3696.120.41.1.10) --Apple-Mail=_99B1978C-CC4C-4C4E-A527-DB1D4C62790E Content-Type: multipart/alternative; boundary="Apple-Mail=_F5A5F1A8-E43D-40BE-A8B2-3E46B4668A8F" --Apple-Mail=_F5A5F1A8-E43D-40BE-A8B2-3E46B4668A8F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Feb 12, 2025, at 10:13 PM, Zhenlei Huang wrote: >=20 >=20 >=20 >> 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. >=20 > 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. The developer's handbook has detailed instructions [1] about how to = debug. [1] = https://docs.freebsd.org/en/books/developers-handbook/tools/#debugging >=20 >>=20 >> To solve this, we have to restart rtadvd. >>=20 >> -- >>=20 >> A FreeBSD user --Apple-Mail=_F5A5F1A8-E43D-40BE-A8B2-3E46B4668A8F Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

On Feb 12, 2025, at 10:13 PM, Zhenlei Huang <zlei@FreeBSD.org> = wrote:



On Feb 12, 2025, at 5:42 AM, A FreeBSD User <freebsd@walstatt-de.de> wrote:

Hello,

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).

When stoppimg/starting = mpd5 several times, changing the IPv6 prefix, I can almost with a = 100%
certainty reproduce such an error calling = rtadvctl:

[...]
root@gate:~ # = rtadvctl -vv show
igb0: = flags=3D<UP,CONFIGURED,PERSIST> status=3D<RA_SEND> mtu = 1500
      DefaultLifetime: = 30m
      MinAdvInterval/MaxAdvInterv= al: 3m20s/10m
      AdvLinkMTU: <none>, = Flags: <none>, 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
[...]

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.

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.

The = developer's handbook has detailed instructions [1] about how to = debug. 




To solve this, we have to restart rtadvd.

--

A FreeBSD = user



= --Apple-Mail=_F5A5F1A8-E43D-40BE-A8B2-3E46B4668A8F-- --Apple-Mail=_99B1978C-CC4C-4C4E-A527-DB1D4C62790E 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----- iNUEARYKAH0WIQRj28YmNowGX1isJg7GJJ6Jgbd0XwUCZ6yxN18UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0NjNE QkM2MjYzNjhDMDY1RjU4QUMyNjBFQzYyNDlFODk4MUI3NzQ1RgAKCRDGJJ6Jgbd0 X+OrAQC93tyEeM8Bp/ETPMveJR3k0K0QfPWTiYvo1X9Zmf1YtQD/d04MM9I1pas9 Qr1qqMAlfrg3f+KStWpevvnft30Bnwc= =tReQ -----END PGP SIGNATURE----- --Apple-Mail=_99B1978C-CC4C-4C4E-A527-DB1D4C62790E--