It seems that the -fmudflap function -fmudflap been removed from GCC.
Thus, my question is: what should I use instead for dynamic analysis of programs for extraordinary read / write, uninitialized readings and such problems?
(and perhaps as a side question: why was it removed?)
The mudflap approach (instrumentation of generated code inside the compiler) looks pretty elegant.
Background
Other tools instrumentalize the machine code level (e.g., Purify), at the source code level (e.g., Insure), or instrumentalize during CPU emulation (e.g., Valgrind).
A firewall approach may find errors that cannot be detected with valgrind or cleanup (for example, stack-based array access errors). It is also easier than other approaches.
I am looking for an open source solution.
source share