Provided by: failmalloc_1.0-2ubuntu1_amd64
failmalloc - memory allocation failure crash-test tool
failmalloc [-p|--probability probability] [-t|--times times] [-i|--interval interval] [-s|--space space] [-h|--help] [-v|--version] [--] [command ...]
The idea behind failmalloc is to demonstrate what really happens if memory allocation fails. Unfortunately, most programs in this world are not robust, mostly because programmers are careless, but sometimes because programmers are too brave. Regardless of whatever reasons, the most critical problem is in that there is no good way to see such failures in reality, until a program is deployed into a heavy production system. Clearly, this is too late! failmalloc addresses this problem. failmalloc inserts hooks into your program, which induces always, often or sometimes failures of memory allocation calls. The functions malloc, realloc and memalign are hooked, but other functions which use one of these functions are also affected.
These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). -p, --probability probability Specifies how often it should fail between 0.0 and 1.0. -t, --times times Specifies how many times failures may happen at most. -i, --interval interval Specifies the interval of failures. -s, --space space Specifies the size of free space where memory can be allocated safely in bytes. -h, --help Show summary of options. -v, --version Show version of program.
failmalloc was written by Yoshinori K. Okuji <firstname.lastname@example.org>. This manual page was written by Alessandro Ghedini <email@example.com>, for the Debian project (and may be used by others). December 8, 2010 FAILMALLOC(1)