Pekka Enberg wrote:For debugging. It would be unreasonably inefficient on embedded systems to have them compiled in. It depends whether you consider error handling and debugging to be the same thing. Failing an assert is not an error - it is a bug. It is very difficult, and sometimes impossible, to contrive a useful response to a bug. It is also not really worth the effort. BUG_ON is a poor solution for embedded systems. When developing and debugging you don't want your system to panic just because you are on the track of a bug. And then when the system is in production, you don't want it to panic period. We have had lots of situations where BUG_ON has been used incorrectly to handle errors, and we have had to replace it with proper error-handling. Anyone developing or doing serious testing would have debugging turned on. Anyone doing debugging, would have debugging turned on. It seems pretty unlikely that the assertions would bit-rot. Selecting a config option doesn't seem that hard. How? Our asserts don't roll over and die. They print a message and dump the stack and keep going. And lots of file systems (e.g. EXT2, JFFS2) have optional prints as well, just like UBIFS. --
| Ingo Molnar | [bug] mm/slab.c boot crash in -git, "kernel BUG at mm/slab.c:2103!" |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Linus Torvalds | Linux 2.6.26-rc1 |
| Tilman Schmidt | Re: 2.6.25-rc8: FTP transfer errors |
git: | |
| Martin Langhoff | Using thunderbird to post/apply patches? |
| Aubrey Li | git proxy issue |
| Aneesh Kumar K.V | Re: git-fast-import |
| Sebastian Schuberth | git on Cygwin: Not a valid object name HEAD |
| Richard Stallman | Real men don't attack straw men |
| Juan Miscaro | When will OpenBSD support UTF8? |
| Theo de Raadt | Re: Real men don't attack straw men |
| Dave Harrison | Re: mail dovecot: pipe() failed: Too many open files |
| Paul Monday - CS | Re: Things to write (was Re: How can I get a piece of the action?!) |
| Kevin Cummings | Re: Modem |
| Linus Torvalds | USENET Readership report for Oct 92 |
| Al Clark | Patching boot image (was Re: Making the file system) |
