how to panic FreeBSD
Hello I am trying to learn kernel debugging and one of the approaches I have come up with is to introduce situations in the sys code by which the compiled kernel is buggy and will panic. My query is what are the typical bugs that I can introduce in say by which the kernel would panic. Thanks for any help. -- oo@@oo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how to panic FreeBSD
Only OpenSource wrote: I am trying to learn kernel debugging and one of the approaches I have come up with is to introduce situations in the sys code by which the compiled kernel is buggy and will panic. Most people introducing bugs into the kernel do so by accident, rather than deliberately. Most people trying to debug the kernel use optional printf or kernel-logging statements (see PDEBUG, CF_DEBUG, VLOG, etc) controlled by things like DEBUG, WITNESS, INVARIANTS, etc. My query is what are the typical bugs that I can introduce in say by which the kernel would panic. If you want to panic the kernel, just call panic(some reason) directly. -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how to panic FreeBSD
Only OpenSource [EMAIL PROTECTED] wrote: I am trying to learn kernel debugging and one of the approaches I have come up with is to introduce situations in the sys code by which the compiled kernel is buggy and will panic. My query is what are the typical bugs that I can introduce in say by which the kernel would panic. If you browse the filed problem reports, you will find more than enough real panics and if you also have a look at the closed ones, you'll find solutions as well. You could also panic your systems with classics like: - kldloading /dev/mem - kldloading kernel modules that aren't in sync with the kernel - mounting a file system through USB and then unplugging the drive without umounting first Fabian -- http://www.fabiankeil.de/ signature.asc Description: PGP signature