I'm working on a large project concerning many memory operations.
Our program has got a "core.*" for many times. From the core information, I am sure that some invalid memory operation has coursed that. But the project is so complicated that reviewing codes costs too much time, besides, this program started up over 80 threads, and it seems that the "core" shows up irregularly.
I am thinking about setting some "hooks" in the system memory operations like memcpy, malloc .etc. How can I do this? Should I rewrite & recompile the gnu libs?
compile Your code with -fbounds-check option . May be Useful