2008-08-29 03:42:37 when I debuged driver, Kernel Panic coming!
Matthew Wang (CHINA)
Message: 61314
I wrote a camera driver, when I insmod it , and then rmmod it, after a little while, Kernel Panic appeared:
root:/tmp> BUG: failure at mm/slab.c:592/page_get_cache()!
Kernel panic - not syncing: BUG!
I got no idea how to do the next step...
I suspected that the memory leaked, but I freed all what I kmalloc in my code.
TranslateQuoteReplyEditDelete
2008-08-29 04:12:48 Re: when I debuged driver, Kernel Panic coming!
Mike Frysinger (UNITED STATES)
Message: 61315
if the BUG() only occurs when you you insmod/rmmod your module, then start small and work your way back up. disable most of the stuff in your module until things start crashing.
QuoteReplyEditDelete
2008-08-29 04:52:14 Re: when I debuged driver, Kernel Panic coming!
Matthew Wang (CHINA)
Message: 61319
Hi,Mike
is it because of the memory leaking?
TranslateQuoteReplyEditDelete
2008-08-29 05:11:11 Re: when I debuged driver, Kernel Panic coming!
Mike Frysinger (UNITED STATES)
Message: 61322
it could be a leak/corruption/etc... cant really guess by looking at the output of that BUG()