I am writing a linux daemon, and currently it works very well, but it is leaking memory (and this is bad - after a few hours it segfaults after using 60% of the system memory). It is strange that I use only new / deleted operators and a try / catch block around the main function, so this is not an exception created by the new one - it is just segfaults at some point due to lack of memory, I think.
I used valgrind, but it found only a one-time small leak and nothing more. I also tried gdb, but despite the fact that the application is compiled with flags -g -rdynamic, it does not translate all addresses into function names.
Can you tell me some of the best ways to debug memory that I could use to determine the source of the leak?
source
share