A kernel panic is caused when a serious, unrecoverable error occurs in the kernel (main part) of the operating system. There is no way to force a panic that I know of other than creating a driver that loads as a module into the kernel and then does something nasty in its interaction with the kernel. They can be caused by bad software loaded into the kernel or bad hardware. The kernel doesn't let a normal program destabilize the system enough to allow a panic.