code in cvs is broken

Rob Browning rlb@defaultvalue.org
Fri, 16 Nov 2001 13:47:17 -0600


linas@linas.org (Linas Vepstas) writes:

> another tried & true trick is to create your own library with
> the routine g_free() in it.  You can then make it do whatever 
> you want, including calling assert on address xxxx.  The
> The only trick is to make sure it is linked in *after* any other 
> libs that uses g_free, but *before* the real glib.  i.e.

FWIW under linux you can also use

  LD_PRELOAD=/my/overridelib.so some-app

and selectively overload the app's symbols with the ones in
overridelib.so.  This can be useful if you want to flip back and forth
without a recompile...

-- 
Rob Browning
rlb @defaultvalue.org, @linuxdevel.com, and @debian.org
Previously @cs.utexas.edu
GPG=1C58 8B2C FB5E 3F64 EA5C  64AE 78FE E5FE F0CB A0AD