libmallocfail

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 :)

3 Responses to “libmallocfail”

  1. Chris Samuel Says:

    Ooh, do tell.. ;-)

  2. Mark Callaghan Says:

    Do you really want to do this? Look at http://bugs.mysql.com/25058

  3. MacPlusG3 Says:

    scary. very scary bug.

Leave a Reply