I'm writing a linux deamon and as for now it works pretty well, but it leaks memory ( and it's bad - after few hours it segfaults after using 60% of the system's memory). The strange thing is, that I'm using only new/delete operators and have a try/catch block around the main function, so it's not an exception thrown by new - it just segfaults at some point due to the lack of memory I guess.
I used valgrind, but it only found a one time small leak and nothing else. I tried gdb too, but altough the app is compiled with -g -rdynamic flags it does not translate all the addresses into function names...
Can you tell me some better ways of memory debugging, that I could use to determine the source of the leak?