From nobody Wed Jun 14 08:09:04 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 4QgykN29w4z4cxKp for ; Wed, 14 Jun 2023 08:09:16 +0000 (UTC) (envelope-from melifaro@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QgykN1XCPz3Ksv; Wed, 14 Jun 2023 08:09:16 +0000 (UTC) (envelope-from melifaro@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686730156; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=giDgBH2W1sXDAjDLOf5FN9xjdCr7TJhA3Yjkb0GDCZw=; b=FWMhGwF6MKMRQNynnkSO+71vpHY4OLtM+l5aOhWqW6Qy/6KapRG5/r3HBODES+Pjer8UuI Tt3Vnbh6578YY2AXpefcvBti6/2hXZ6ZvsijVJA7bwOox8dZoacRpKrsYwk4K6g2DUk+Ks ONZ1FiE51hyeTtsnvzESmieVkuS4o+AvHHNGqteSWPCMEOh1jraLj9pZcWw6jbeaikWBCE hv41CP80WHnlGNOCrZDZcTVKZXQaPP0y9B1yUnhVHQ+qy3sx8JQ+cUSJ/nZ2KKsy/B/DVG KhhR34APQ9tzTLtKhmO6UT47l+PGl/j3zUdWJiKK9hEMbiAoFDU4yGHI4Sx1xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686730156; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=giDgBH2W1sXDAjDLOf5FN9xjdCr7TJhA3Yjkb0GDCZw=; b=ND66q1L3DhgOyTN3xnoUjL+lIRQC8IJAoUdlICJ1+7eR8D5SlxntI1ok7+pkpwlqAg85mp liFLnA9+mU05TXtXQesciH8w00SUbsINdJCR6EZjNOk1f+V4NT8T7YzOYSR90bM+8JE1ei xpjT+OQN2kMsedlwnYc6K+Ng8dp6lAmz2XeWjoUEHoe5yFRu7MjdGopwZPW8Fl9C0VzM5C 9WTwXsviHQ6DQhcF4Knne4YPG5Fy9oJroEKKKEAOUAkv7djx5k2+r6wn73ExHQSdp53g8+ 1HDz4qtSGH/1u57MwJiNmP2liTZl5vI/5V6bnW9wgFqHM0aJ8purNp0HOroudA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686730156; a=rsa-sha256; cv=none; b=CAJ94elsEbYwWzwo+oRsWqfBf7e71valD2UmN4w7fGu7J2nAbFEAFsrSyYyOz2LFQU0AAP Ji9p//g2LmDoEPupYbdcalbhDPflOMwWqopuHhlzZ2enUfUj5aBgKxmf/bm8dFjVZMT2FP 9AlSZGKWp4EXbyBICGP+LjxSS50DogUkNWUrd0GbkG+dNhzsHpxlWifDkgkO2RNZYKvcr7 N0xqhhrTuAwBYwkZGjjJB8idp9+czo9tVxirY9KLJRXXFeuq0iLJDOEz6lzSJJT3yqmClU La/NKF7FmtHRvtzLb/n/SgZ5PP9elrKb5cQlzo6PkykSZA8WFgr6smuTPDMKVw== Received: from smtpclient.apple (unknown [IPv6:2a02:8084:d6bb:510:c042:b45f:635f:2eb0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: melifaro/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4QgykM5Q5bzGtZ; Wed, 14 Jun 2023 08:09:15 +0000 (UTC) (envelope-from melifaro@freebsd.org) Content-Type: text/plain; charset=utf-8 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 (Mac OS X Mail 16.0 \(3731.600.7\)) Subject: Re: ifconfig dumps core and gdb uses an undefined symbol From: Alexander Chernikov In-Reply-To: <20230614095956.26234554@ernst.home> Date: Wed, 14 Jun 2023 09:09:04 +0100 Cc: current@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <7A98AD66-35D3-447B-B808-2A52E9AD28F3@FreeBSD.org> References: <20230614095956.26234554@ernst.home> To: garyj@gmx.de X-Mailer: Apple Mail (2.3731.600.7) X-ThisMailContainsUnwantedMimeParts: N > On 14 Jun 2023, at 08:59, Gary Jennejohn wrote: Hi Gary, >=20 > So, now I have a new problem with current. >=20 > I just now updated my current sources and ran buildworld and = buildkernel, > since Gleb fixed the WITHOUT_PF problem. >=20 > After installing the new world and kernel I see that ifconfig is = dumping > a core, apparently when it tries to show lo0, since re0 is correctly > shown: >=20 > 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_NETLINK=3Dyes in the make.conf & make -C sbin/ifconfig clean all = install) and see if the new binary works? >=20 > Unfortunately, I see this error message when I try to look at the core > file with gdb: >=20 > 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=E2=80=9C-O0 -g3=E2=80=9D sbin/ifconfig clean all = install) & share the binary & core with me, I could take a look on = what=E2=80=99s happening. >=20 > pkg claims that my packages are all up to date. >=20 > Not exactly a fatal error, but still rather surprising. >=20 > -- > Gary Jennejohn >=20