How to debug panic()s in device_attach function of kernel module?
Yuriy.Tsibizov at gfk.ru
Thu Apr 17 23:53:39 PDT 2003
I'm trying to debug panic()s in one of my drivers (I can compile it only as module now),
but I can't find a way to get address where it was loaded by kldload.
I can't run kldstat (as recommended by developers' handbook, 17.6) because it panic()s
during kldloading (after LOR of ZONE_LOCKs after malloc(0) somewhere in device_attach of my driver).
Can I get this address inside kdb?
Another question, what is correct behavior of malloc(0, M_DEVBUF, M_NOWAIT | M_ZERO)?
More information about the freebsd-hackers