Subject: kgdb question: how to find out what hangs?
To: None <tech-kern@netbsd.org>
From: Tonnerre LOMBARD <tonnerre@bsdprojects.net>
List: tech-kern
Date: 05/18/2007 11:07:20
--DrWhICOqskFTAXiy
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Salut,
I'm currently trying to attach disks to my ips driver, but it simply hangs
the system during boot. I have now attached a kgdb, but when breaking
when it hangs, I just see my own interrupt.
When I continue stepping from there, I always just end up in the
Xresume_lapic_ltimer() function, so that's not very helpful.
Hubert gave me the tip to try xps, and that gave me the output:
proc pid flag nlwps comm
lwp flag wchan
0xcc4cc9dc 12 20200 2 1 atapibus0
0xcc4cb8ac 4 0xc2b33218 (sccomp)
0xcc4ccb80 11 20200 2 1 cryptoret
0xcc4cb940 4 0xc046a1b4 (crypto_wait)
0xcc4ccd24 10 20200 2 1 usbtask-dr
0xcc4cb9d4 4 0xc0493a34 (usbtsk)
0xcc4c3000 9 20200 2 1 usbtask-hc
0xcc4cba68 4 0xc0493a20 (usbtsk)
0xcc4c31a4 8 20200 2 1 usb0
0xcc4cbafc 4 0xc2b48248 (usbevt)
0xcc4c3348 7 20200 2 1 atabus1
0xcc4cbb90 4 0xc2b333a8 (atath)
0xcc4c34ec 6 20200 2 1 atabus0
0xcc4cbc24 4 0xc2b3323c (atath)
0xcc4c3690 5 20200 2 1 scsibus2
0xcc4cbcb8 4 0xc26a3f08 (xscmd)
0xcc4c3834 4 20200 2 1 scsibus1
0xcc4cbd4c 4 0xc2b32cbc (sccomp)
0xcc4c39d8 3 20200 2 1 scsibus0
0xcc4cbde0 4 0xc2b274bc (sccomp)
0xcc4c3b7c 2 20200 2 1 sysmon
0xcc4cbe74 4 0xc046a248 (smtaskq)
0xcc4c3d20 1 20000 2 1 init
0xcc4cbf08 4 0xc04a5e88 (initexec)
0xc04a7720 0 20200 2 1 swapper
0xc04a78e0 4 0xc04a8780 (cfpend)
Is it now possbile to attach to one of these sub processes or so? Because
it would be really interesting to find out what is hanging here.
Tonnerre
--DrWhICOqskFTAXiy
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (NetBSD)
iQIVAwUBRk1syO1mMGan/TnWAQK1PhAAoL0nh4QtkBmace1x7jONFlPySjkAFRiG
CHqS3fpcgPv5y/mHyU+UAbxt/8ixA/WYbc2QA4lpvlVHIcbmXm2JaXMxKH4kR9PV
a9zy0tdPbC3richoM3uvQc+wx+lMT+nn/nWifTl+kc24XCMys2+E7a/u3rgoJv2P
napt8p0UoecSbSNjrOfM1I1Whkmf/fhE7pYrNucp3i/GBHpv1qa08/lNiUQwMdzp
EFYWDYdAfHW1tItNRY3QhKGdCCz2jdCBUoiYwctKT2Irnf8ic2FFIkL1V6lxfulC
D47oPbMrrPQaWSlCYEG20M5t7nXplc1USVfZfNcoH81oBrSdQ4dsmMfal4eWX4FP
X+YeM3qcZse1SQVG3dsFmVy1cqKoJIb+OwRQ1AbvtXMdvzRXUXczc+GJLecwjUqs
FxpS+L81CS7XFD7k3gA/38iHAUJmp4z0CKs+gFTar6cdkhORSSMwqSThzrJYl08i
AaU0jJICfH0WPJ3anGdgHOwKKWD4Eaykohc2ariMklvcyTHgkI+8u3Kqnrl/FPHb
FWU7T1dVTfhgFzajxe2OILUbUyDxgy7f9Lvk9n3Ab2qEQdTN9KdasiJZ24uTvB+7
hd+6qPVuy8PQo6YLsIhry0YFzB9X9azHCuyWnFCOLSuuwGWJM9tqhQWbAFUxKwpa
I/H0+4szB00=
=rNYS
-----END PGP SIGNATURE-----
--DrWhICOqskFTAXiy--