I'm recoding malloc/calloc/realloc/free functions. For now, I finished malloc and for tests, I just write "free" function like :
void free(void* ptr) {}
And I test my functions with different software, works with ls/firefox/man ...
But, with software like GIMP I have :
*** Error in `gimp': free(): invalid next size (normal): 0x0000000001d75e00 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x80996)[0x7f280d77e996]
/lib/x86_64-linux-gnu/libc.so.6(+0x82614)[0x7f280d780614]
/lib/x86_64-linux-gnu/libc.so.6(__libc_memalign+0x9a)[0x7f280d781e1a]
/lib/x86_64-linux-gnu/libc.so.6(posix_memalign+0x4c)[0x7f280d783a2c]
SO, I don't understand why I've this problem with a free which do nothing. (my free function is called, I tested with a "printf")
Does someone know where it comes from?
Thanks for reading Hope to hear you