On Sat, 2008-05-24 at 22:14 +0300, Andrei Soare wrote: > On Sat, May 24, 2008 at 8:22 PM, Yu Feng <[EMAIL PROTECTED]> > wrote: > No there is a bug in free_size.c (at least). > You didn't solve the conflict in addH. > > What conflict ? i think addH is ok. >
Yes it is OK. I didn't notice the link list. > Why not rewrite free_size.c with GLib's GHashTable? > > I didn't know it exists :P but now that i've wrtten my own hash, I'll > leave it. > That's fine. > > I found the problem: it was in my_malloc_hook.c, when i printed a NULL > pointer, it would print "(nil)" in the file and then free_size reads > "(nil)" with %p and it's not NULL. I fixed it, however I encounter > another error: > > I run the hooks with LD_PREOAD=/path/to/my_malloc_hook.so pidgin and > sometimes I get Segmentation Fault after about 10 seconds of > execution. So there is still something wrong with my_malloc_hook.c > Do you know what it could be ? > Thread safety? > > Thank you for your help :) > > -- > Andrei Soare _______________________________________________ gnome-love mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gnome-love
