Bazaar branches of libmallocfail
Simple LD_PRELOAD library that will take parameters via environment variables and cause malloc() to occationally fail.
Aim was to use this to test bits of MySQL/Drizzle although since their libtool based stuf, the binary in tree is a libtool shell script, and I haven’t found a way to LD_PRELOAD only for mysqld and not the shell script and the other processes spawned by it.
I have found a bug in libc though :)
Ooh, do tell.. ;-)
Do you really want to do this? Look at http://bugs.mysql.com/25058
scary. very scary bug.