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
[-- Attachment #1 --] On Sep 28, 2014, at 0:34, José Pérez 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. > > I get stuck on apic_isr looping which leads nowhere. > > So I thought maybe things improve if I debug from another machine. > > > 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? > > I have no old-style uarts hardware anymore, as the handbook suggests... > > 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’t a usable way, but there were some interesting viable methods that came up (which haven’t 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 [-- Attachment #2 --] -----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?761DF16E-5383-46BA-B886-CD3358D976AA>
