From owner-freebsd-current@FreeBSD.ORG Thu Mar 6 16:53:41 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 40633AFE; Thu, 6 Mar 2014 16:53:41 +0000 (UTC) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id F116BCC8; Thu, 6 Mar 2014 16:53:40 +0000 (UTC) Received: from [192.168.2.2] (unknown [77.243.161.229]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id E9F025C45; Thu, 6 Mar 2014 17:53:36 +0100 (CET) Subject: Re: kgdb on CURRENT? Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Content-Type: multipart/signed; boundary="Apple-Mail=_F1775542-D502-4080-A3DB-3D4AD550DDFC"; protocol="application/pgp-signature"; micalg=pgp-sha1 From: Dimitry Andric X-Priority: 3 (Normal) In-Reply-To: <1109024062.20140306203329@serebryakov.spb.ru> Date: Thu, 6 Mar 2014 17:53:22 +0100 Message-Id: <29A900D3-A470-4FD7-8BD8-32086429A4E5@FreeBSD.org> References: <1109024062.20140306203329@serebryakov.spb.ru> To: lev@FreeBSD.org X-Mailer: Apple Mail (2.1874) Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Mar 2014 16:53:41 -0000 --Apple-Mail=_F1775542-D502-4080-A3DB-3D4AD550DDFC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 06 Mar 2014, at 17:33, Lev Serebryakov wrote: > CURRENT r262833, kernel from custom config (with symbols ad debugging > info), crash. >=20 > savecore says "Unable to find matching kernel" >=20 > kgdb /var/crash/vmcore.1 /boot/kerne/kernel says: >=20 > Dwarf Error: wrong version in compilation unit header (is 4, should be = 2) [in module /boot/kernel/kernel.symbols] >=20 > Is it local problem or kgdb is broken with latest clang import? No, clang 3.4 just defaults to DWARF4 format, which kgdb does not grok. Please put the following in your custom kernel configuration, similar to GENERIC: makeoptions DEBUG=3D-gdwarf-2 # Build kernel with gdb(1) = debug symbols Now on a side note, it would be very nice if our kernel debugging extensions were ported to the ports version of gdb, which is non-ancient... :-) -Dimitry --Apple-Mail=_F1775542-D502-4080-A3DB-3D4AD550DDFC Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iEYEARECAAYFAlMYqAoACgkQsF6jCi4glqO2MgCgpt47nc38Lo9LHHx+yynNfIj2 7nsAn3XHbXNq9EkZQRtzNmKHUdlMi5mQ =L9k5 -----END PGP SIGNATURE----- --Apple-Mail=_F1775542-D502-4080-A3DB-3D4AD550DDFC--