shameless plug: I've made malloc hooking preload library for hunting such bugs, that automatizes most of the described work - https://github.com/samsk/log-malloc2
This looks really, really cool. You should download the bugged version of this gem and make a screencast showing how your tool makes this process easier.