valgrind can't find anything useful. I'm confused.
Symptomes:
- my data corrupted by a malloc() call
- return address of my function is replaced via something wrong
PS: code does NOT segfault
Currently I have some progress via replacing all my malloc() via mmap()
+mprotect()
You could also try the trial version of IBM Rational Purify - a pretty good tool to detect buffer overflows, memory leaks and any other memory corruption errors. Follow this link to download http://www-01.ibm.com/software/awdtools/purify/unix/