From owner-cvs-all Thu May 9 13:34: 6 2002 Delivered-To: cvs-all@freebsd.org Received: from tao.org.uk (genius.tao.org.uk [212.135.162.51]) by hub.freebsd.org (Postfix) with ESMTP id CAA7437B401; Thu, 9 May 2002 13:33:40 -0700 (PDT) Received: by tao.org.uk (Postfix, from userid 100) id 21A0B2C8; Thu, 9 May 2002 21:18:34 +0100 (BST) Date: Thu, 9 May 2002 21:18:33 +0100 From: Josef Karthauser To: John Baldwin Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/usb usb_port.h Message-ID: <20020509201833.GA403@genius.tao.org.uk> References: <20020509155333.GA442@genius.tao.org.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AhhlLboLdkugWU4S" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --AhhlLboLdkugWU4S Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 09, 2002 at 01:04:22PM -0400, John Baldwin wrote: >=20 > >> If you have kernel.debug lying around for this one, try using > >> addr2line (or gdb) to get the file and line of those addresses > >> in the backtrace. Probably just the first one is needed as this > >> is a simple NULL pointer dereference. > >=20 > > Ok. Here's a trace from a remote debug: > >=20 > > Program received signal SIGSEGV, Segmentation fault. > > sysctl_find_oidname (name=3D0xc02e50ce "ata_dma", list=3D0x0) > > at /usr/src/sys/kern/kern_sysctl.c:79 > > 79 SLIST_FOREACH(oidp, list, oid_link) { > > (gdb) bt > > #0 sysctl_find_oidname (name=3D0xc02e50ce "ata_dma", list=3D0x0) > > at /usr/src/sys/kern/kern_sysctl.c:79 > > #1 0xc01ef62c in sysctl_register_oid (oidp=3D0xc0333380) > > at /usr/src/sys/kern/kern_sysctl.c:104 > > #2 0xc01efb70 in sysctl_register_all (arg=3D0x0) > > at /usr/src/sys/kern/kern_sysctl.c:402 > > #3 0xc01cf7c5 in mi_startup () at /usr/src/sys/kern/init_main.c:208 > > (gdb) > >=20 > > Joe >=20 > I don't see how this can happen. Can you try doing a make clean to delete > all the .o's and rebuild the kernel from scratch? Also, can you run 'nm' > on the resulting kernel to make sure there aren't any unresolved symbols? > (unresolved symbols have a type of 'U'). Yes, you're right. I've done a nice clean kernel build and this problem has gone away; coupled with the env fix I've now got a system that boots. Sweet! Joe --AhhlLboLdkugWU4S Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjza2ZkACgkQXVIcjOaxUBaabACdEejvMVa6C4FFZ5HI1CqSA1L7 4c8AoNB2SpvjN5+a14mesFxNskm16Qpz =LSh4 -----END PGP SIGNATURE----- --AhhlLboLdkugWU4S-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message