From nobody Wed Jun 14 09:01:35 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 4Qgzv46C6Tz4d1LP for ; Wed, 14 Jun 2023 09:01:52 +0000 (UTC) (envelope-from garyj@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (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 4Qgzv42pG1z3RD3; Wed, 14 Jun 2023 09:01:52 +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=1686733310; x=1687338110; i=garyj@gmx.de; bh=cQlFmQherGJedIdQ96G0y/rZVTjYkJAZi7j6NGbyqG8=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:In-Reply-To:References:Reply- To; b=S1lG7SFYuDFz4Z3QOsHslhc+Qg9VKXIn+naOx3xGRJhBoRuv4WdHlrbkNyY5xLy/OI23mXd QlZggwa2K2PlODRlbvbKsSeeNVhV5erwIlTTam3r1Duvi57VDpxg4Qft3aKnexDYrrJguTrY6 P8oNSnycsMHg3Mk7SxtWnNOZLXYGO87sfil4oSAs0EMyhlcbudoVkf2NvOq/O8jizg/JHzN8N RONWk+mNJlgn9PME+mVhpdx+jnVs6hiTKMJpdHuN152qUusf7MSy/X7eP1a5RvbnW2KP8euSG Z4W6zDwQDsJgSwcmwiuae6XKCuYaSo4p9RbYb3FYd/g6lGB6LbGA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from ernst.home ([91.59.239.189]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M59GA-1qASqY1LRk-0017BE; Wed, 14 Jun 2023 11:01:50 +0200 Date: Wed, 14 Jun 2023 09:01:35 +0000 From: Gary Jennejohn To: Alexander Chernikov Cc: current@freebsd.org Subject: Re: ifconfig dumps core and gdb uses an undefined symbol Message-ID: <20230614110135.15b928db@ernst.home> In-Reply-To: <7A98AD66-35D3-447B-B808-2A52E9AD28F3@FreeBSD.org> References: <20230614095956.26234554@ernst.home> <7A98AD66-35D3-447B-B808-2A52E9AD28F3@FreeBSD.org> 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=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:W15erXTqe+sQX9ekPNTDabzbOBEI8udz5u1lK3cKh7fnl27OPHs GY2zVy7cZ35vQx8ZtTYaqJUMfX2GlVMsAaucBNcPFXgSJbyE7X6/nwLXeTLDk+K7djnd5E4 0ITV8QrXRphDAM92SxoESCozZf/Vh1DvvVtowat08VDEPLzCpsdW7rtky5rU2Kfgg9g7IG2 9lGYYJB/b5Xr9VASX/gYw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:huiNGjtmnnA=;Q3x5eA9iZ5sZcbazbNx6Yksh0ct QhPNWtsAoaTIfMEvO6ILIAu3NcOR6CKMAAscYWOM8378oPkUlcb99wm8xC1AT2OSCIT9UfuEm 6GqyQKkct+pzSDWe74k+gJc8kH3KiuQPOPqwYSOkWXJWLcWN+Hzzn+Q/OEmlulh4OQAqYgDL4 uzxMEa5skh+fr0EInGaLi7RGqR065Exlm6h7EG6L96b4Sm7//C7RRO4C2Q6evNJE7QZqnwyO4 TiuqAvVuHJdD0tsY2Y+te1azszfuOxSZzCPDazXYK4Pao8Hh4LRTP98KlExNMcJ8jREaalz2K RNUXmna4igyENTFTHWqnKCq8w2AlYIZwRFxwqwsPWex0HE9yJ+bKaUXgk2N3wMhQJgZVGb1cY Ewe8sb0/PJIqnKsaksX0S6L3ekGGiyzMOCWU3o0n45YNw78hEVrnM9PcFfstE36Gha8XaVhET rwvboNTGtjwZ+igIszbwqoQqBQ3/2b9cGoVIn7wJ+I632OOdNFWdJkKrGLDAIWaG6t1rCQOqU fOqsleQHcAMKxhjZMGbwLQPSV5X1jYjZP1OdRm9o76xTNTtezJpi6LC1WOM3lp0AwJae/Yqt4 s4GZczRaPgOumYcLJnY9iR7N6EWQwU5j+Dr3Du9SnJTLKtu2UGUnunsJS6/KoQBlumZ3Rv//V 2280ynYExCUOW9wbbHZQc1TYWgUM8OJ5OWmiTpafZFzMvy+8/HC1wacXYUYxkyon7mV0AzgGQ wPzSvTLybrXPmWfMdsqZfffV6RxALb5d4RznZF/iNsmt1VI9dEe4VCJoDPRbdF2yUfWb6lo9x 4Qd55H3gLl9kJ9U+cpnaQJTDpsKns/OJtXcfLUDhHSyV9Pei2TC6NdzoFnPBT8V+pxxCoWsDo 5LXg+sqxh56lGyaxilBtyx7gA/g8gtopy5Mb7G5Kdm8M+KLd06606brCyv9nCpjZhNIKI0x4G IGKZWIsyP5BNyTt5cW6j/qJ1c28= X-Rspamd-Queue-Id: 4Qgzv42pG1z3RD3 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 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 buildkern= el, > > since Gleb fixed the WITHOUT_PF problem. > > > > After installing the new world and kernel I see that ifconfig is dumpi= ng > > a core, apparently when it tries to show lo0, since re0 is correctly > > shown: > > > > ifconfig > > re0: flags=3D8843 metric 0 mtu= 4088 options=3D82098 > > ether redacted > > inet 192.168.178.XXX netmask 0xffffff00 broadcast 192.168.178.25= 5 > > 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_NETLINK= =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 directory. ifconfig lo0 shows the settings for lo0 and then dumps core. > > > > Unfortunately, I see this error message when I try to look at the core > > file with gdb: > > > > gdb /sbin/ifconfig ifconfig.core > > ld-elf.so.1: Undefined symbol "rl_eof_found" referenced from COPY > > relocation in /usr/local/bin/gdb > Not a specialist here, but if you could build the binary with debug > (make DEBUG_FLAGS=3D-O0 -g3 sbin/ifconfig clean all install) & share the > binary & core with me, I could take a look on what?s happening. > > I compiled gbd under /usr/ports and it now works, although it's emitting some weird errors. -O0 -g3 removes too much and gdb shows no useful information. With just -g3 I get this output from gdb after running the newly compiled ifconfig: Program terminated with signal SIGSEGV, Segmentation fault warning: Section `.reg-xstate/100294' in core file too small. #0 lagg_status (ctx=3D0x2f051660ba00) at /usr/src/sbin/ifconfig/iflagg.c:= 223 223 const int verbose =3D ctx->args->verbose; (gdb) bt #0 lagg_status (ctx=3D0x2f051660ba00) at /usr/src/sbin/ifconfig/iflagg.c:= 223 #1 0x00002efcf610ea55 in af_other_status (ctx=3D0x2f051660ba00) at /usr/src/sbin/ifconfig/ifconfig.c:964 #2 status (args=3D0x2f051660ba70, ifa=3D0x2f051a2f2000, sdl=3D) at /usr/src/sbin/ifconfig/ifconfig.c:1788 #3 list_interfaces_ioctl (args=3D0x2f051660ba70) at /usr/src/sbin/ifconfig/ifconfig.c:845 #4 list_interfaces (args=3D0x2f051660ba70) at /usr/src/sbin/ifconfig/ifconfig.c:428 #5 main (ac=3D, av=3D) at /usr/src/sbin/ifconfig/ifconfig.c:724 (gdb) I looked at ctx: (gdb) p ctx $1 =3D (if_ctx *) 0x2f051660ba00 (gdb) p/x *0x2f051660ba00 $2 =3D 0x0 <=3D=3D (gdb) So, looks like the problem is in iflagg and ctx is NULL. =2D- Gary Jennejohn