From nobody Wed Jun 14 10:35:30 2023 X-Original-To: current@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 4Qh1zT1ZcFz4djJR for ; Wed, 14 Jun 2023 10:35:49 +0000 (UTC) (envelope-from garyj@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.gmx.net", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qh1zS5KYtz4H2H; Wed, 14 Jun 2023 10:35:48 +0000 (UTC) (envelope-from garyj@gmx.de) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1686738947; x=1687343747; i=garyj@gmx.de; bh=7pVtMk4eS//x3qa+abyXLr+3xAsYaUsPfGOejaemi5s=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:In-Reply-To:References:Reply- To; b=Ncs8bLIPsVwJYao2C3Wv75dyUfZiiud1OsVVF9La/2UNzcoTRBkZIZTp6+600iBqbtC5Qh+ Vv4OlD1YiYYxVw1Wbt0xwhs5mGPpRFwhq+aYvTcn91Xtm9Ce4/jaPtq/8mM46GVw2ChOlJb0S oS4+FGEzV30qcBg149iqb+Zutr4wRskrTpbnkPyYoaEQs14JUFfCYTVR599jrHjQs8CtV+1Yk PmmfFrhS7lQaXXgwid3lOGetl8JHhH8Ur+M34JNaycFg6cVEPIEl4fBKwfM/Xm7nrpovxLpER aIxj3HN3LwTQo8gJBbOJw2DOZexoaY3XwchuwdEpYtDeebUxa8bA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from ernst.home ([91.59.239.189]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N8XPt-1q4ex80Gi9-014Vz9; Wed, 14 Jun 2023 12:35:47 +0200 Date: Wed, 14 Jun 2023 10:35:30 +0000 From: Gary Jennejohn To: Alexander Chernikov Cc: current@freebsd.org Subject: Re: ifconfig dumps core and gdb uses an undefined symbol Message-ID: <20230614123530.7e48c885@ernst.home> In-Reply-To: References: <20230614095956.26234554@ernst.home> <7A98AD66-35D3-447B-B808-2A52E9AD28F3@FreeBSD.org> <20230614110135.15b928db@ernst.home> <20230614115350.5e7386fa@ernst.home> Reply-To: garyj@gmx.de X-Mailer: Claws Mail 3.19.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:YG6mS4BOOYRM66vd3gWNTeBIwFG85rts8/67sKMIu910Wz/1m+3 dnW+Nj+LB4gBlvHK96Jn9MqA1c0yIe8gPwFm1kZC399w9f+fY38vBF8y7upV9ivk1BCJTwn T3yZ2MRepqJAt2bj6UsDcgTFyA5MlBKDTzeD9kje8ryrGSa0eRlRvyliKOlAqiUfW3v36Lz yxr6tHWISeRM2tcFCXsDg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:lgHd8dXk+Sk=;z49mTzJvcySihea09vzdfZYQDOm QUgOEu5ucyg96HKSQmi+YhesJAv57I5WEl0cNyJGY9uXAFhp1s1sx1YaVGnTLP+uQCr2pSP1i cXy5sf0k3k8pahzcrBVKN3eovPhG1u1G6TbQBRGW4m6lhOunYMgnAiqU7pGBA1ITYBPqCOY1K 5RqRqjCBR4/jdD5HRJLCbd3f3cO8gSxC9wbrtdkdFJSwZ+Q1cfsIC9ootZG4ilInaE4vy4xB6 bryprCDWvVwWf24hdLb2Qb8h9C9bG9nENQL520zYQka/e2DhqvdEYH0QbfwD6wpwQoKSHyU+X 9y2Jm1b5LhePMHJYvjLWESP3HHOiRcj3SVbt+mIY0tjSS9Tcq6IPI6OaELzux+/QA5071+WGv oRlPypE86+ptKEb32P7+TCM7tU587zgo3+xGYTsFmKYJzj21Toi+F+65mgTC6+6niG+fEJH4f dZwwEgG+cHhYYXCLTDWsNR4TmdtK31RBepMkPlFRFCTbY85/AR6/XIST5Wyn4ZEzC9aMZ6doD CaykflFw6tIC/F7/N32xuS0m7xgs9PshvDV5K0xTzCGyPCjFtBf9RTJjX6L3YYU0eUAvENEsg FUbm/H9weo4xnDdOjm8m/vZs7rLvU3SBfUtT9NC8d5A0xboRe49ufgxzfYGiA7Lsmw7vEAhJc BQS4cKT92EeIrt+IEbXDyiRrmdwWz+KskDQyVVDXeWIVeeR8V1txAXyVXnMZPJFw4i0uz2gOl WlgpUq355NuBQLs8uMY8zYFJN/qc1UZRsOFtzn4aPYZ3W/jYGBTH2bcX72Lkz3b0muEj+99qz KeoVc1UZF13Hbtr+CD9SMJJYHjyDi8vJG0MhxCyDt+r94Qmnfs1hPRcm4UVAjgqEt+LSMRglR WlqBJtzXL8obPlLze12m3d5YhgjWcX4tkAgh1RoHUmo+MQendAUFVokZlmXpD3y9jRGpZtL+Z yCGRFVBMoxDCCrggyaHFwWBsnDM= X-Rspamd-Queue-Id: 4Qh1zS5KYtz4H2H X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Wed, 14 Jun 2023 11:05:31 +0100 Alexander Chernikov wrote: > > On 14 Jun 2023, at 10:53, Gary Jennejohn wrote: > > > > On Wed, 14 Jun 2023 09:01:35 +0000 > > Gary Jennejohn > wrote: > > > >> On Wed, 14 Jun 2023 09:09:04 +0100 > >> Alexander Chernikov wrote: > >> > >>>> On 14 Jun 2023, at 08:59, Gary Jennejohn wrote: > >>> Hi Gary, > >>>> > >>>> So, now I have a new problem with current. > >>>> > >>>> I just now updated my current sources and ran buildworld and buildk= ernel, > >>>> since Gleb fixed the WITHOUT_PF problem. > >>>> > >>>> After installing the new world and kernel I see that ifconfig is du= mping > >>>> a core, apparently when it tries to show lo0, since re0 is correctl= y > >>>> shown: > >>>> > >>>> ifconfig > >>>> re0: flags=3D8843 metric 0 = mtu 4088 options=3D82098 > >>>> ether redacted > >>>> inet 192.168.178.XXX netmask 0xffffff00 broadcast 192.168.178.= 255 > >>>> Segmentation fault (core dumped) > >>> Could you please try to narrow down the crashing command? e.g. > >>> Ifconfig lo0 > >>> Ifconfig lo0 net > >>> Ifconfig lo0 inet6 > >>> Could you try to rebuild ifconfig w/o netlink (e.g. set WITHOUT_NETL= INK=3Dyes in the make.conf & make -C sbin/ifconfig clean all install) and = see if the new binary works? > >>> > >> > >> I already have WITHOUT_NETLINK=3Dyes in my /etc/src.conf. > >> > >> I didn't install ifconfig. I simply started it from the build directo= ry. > >> > >> ifconfig lo0 shows the settings for lo0 and then dumps core. > >> > > > > After your most recent changes "ifconfig re0" and "ifconfg lo0" don't > > result in any errors. But "ifconfig" alone still results in a core > > dump, which per gdb is happening in the strlcpy() call at in_status_tu= nnel() > > in af_inet.c. > Indeed. > > diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c > index d30d3e1909ae..6a80ad5763b2 100644 > --- a/sbin/ifconfig/ifconfig.c > +++ b/sbin/ifconfig/ifconfig.c > @@ -822,6 +822,7 @@ list_interfaces_ioctl(if_ctx *ctx) > continue; > if (!group_member(ifa->ifa_name, args->matchgroup, args-= >nogroup)) > continue; > + ctx->ifname =3D cp; > /* > * Are we just listing the interfaces? > */ > > Does this one fix the crash? > > YES! =2D- Gary Jennejohn