Hi, The kernel doesn't hang, but my module enters a state which I as a newbie could not handle it. So I posed the problem to the group asking if I could do something with it. Normal commands like rmmod were not in a position to unload the module. Your suggestion of compiling the kernel with gdb was a very good insider in this direction. Thanks, Pradeep On Thu, 6 Dec 2001, Ravi K wrote: > Hi, > Are you saying your system hangs when it executed > BUG()? Don't you get a 'Oops' message when your > module_init is called? > The only way I know of attaching to the kernel when > it hits a BUG() is through a debugger like kgdb. For > this to work, your kernel should have been compiled > with the debugger code. You an find kgdb at > http://kgdb.sourceforge.net. > -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ IRC Channel: irc.openprojects.net / #kernelnewbies Web Page: http://www.kernelnewbies.org/