Date: Sun, 28 Sep 2014 13:38:24 -0700 From: Garrett Cooper <yaneurabeya@gmail.com> To: =?iso-8859-1?Q?Jos=E9_P=E9rez_Arauzo?= <fbl@aoek.com> Cc: FreeBSD Current <freebsd-current@freebsd.org> Subject: Re: What do you use for kernel debugging? Message-ID: <761DF16E-5383-46BA-B886-CD3358D976AA@gmail.com> In-Reply-To: <20140928071641.M7664@beckpeccoz.com> References: <20140928071641.M7664@beckpeccoz.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_C461D4E5-545F-48E9-A3D9-85D515C522E7 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Sep 28, 2014, at 0:34, Jos=E9 P=E9rez Arauzo <fbl@aoek.com> wrote: > Hello, > I am trying to track down a (deadlock?) issue in CURRENT via DDB. The = kernel does > not complete hw probes on my Acer V5. >=20 > I get stuck on apic_isr looping which leads nowhere. >=20 > So I thought maybe things improve if I debug from another machine. >=20 >=20 > What do you use for kernel debugging? According to the handbook kgdb = over serial > is a good option, do you agree? I'm on a netbook with no ethernet and = no option > for firewire: can I have a USB / nullmodem setup to work? >=20 > I have no old-style uarts hardware anymore, as the handbook = suggests... >=20 > Any idea is welcome before I buy extra hw. I have a USB to serial = showing up as > /dev/cuaU0, do I need to grab another one and a nullmodem cable or = there are better > alternatives? Thank you. There was some discussion recently about this on an internal list. = Unfortunately no, there isn=92t a usable way, but there were some = interesting viable methods that came up (which haven=92t been = implemented): ethernet/sound/xHCI. Your best bet, as others have noted, is to use boot -d, use WITNESS to = spot locking issues, dtrace to isolate which section of code there are = problems, and finally use one of the DEBUG options noted in = /sys/conf/NOTES and /sys/<your-architecture>/conf/NOTES . Hope that helps! -Garrett --Apple-Mail=_C461D4E5-545F-48E9-A3D9-85D515C522E7 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----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJUKHHAAAoJEMZr5QU6S73easYIAKdOGhZ3SvgF6FsauvKm1+Qs VTjc6GM52jQ8ph8Xnk51ETnCcCszZOyfG/5pwU9ldh3hiJNLYj1TKuIpxOEtmhX2 u9cyM9fWXRK/VIycFtsdoP3HvEwPRG2SFOUQO5VxVVvwEoGEWD+Jez/7KYm1tadO X4bkKnnXb9wYTz+pJNhXwjdX2Yxfgx+mi8iS2/7YxQgytC89wScoPLrsIEjyGENW iiSSJbbKLduOBvSJWO3aWIeEXItsbR2wJlbMtRPb4sJPk+MN5j9g2b9SElKzBi6m 2I3ZyOAEH0EJJDGsZNJkNZQzQHeFyldaJSBYchVIaKDbPQHiQeqFFxfVkCjJJ/E= =cDlc -----END PGP SIGNATURE----- --Apple-Mail=_C461D4E5-545F-48E9-A3D9-85D515C522E7--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?761DF16E-5383-46BA-B886-CD3358D976AA>