I wrote an application that use pthread. It has memory management problems.
It runs well without any problem but after some minutes, hours or day, is created Segmentation fault.
For detecting reason of segmentation fault, i use memwatch, a memory leakage detection tool. But when log file is created, it shows only function that cause problem. Beacuse of using some own functions(wroted by myself) for free specialized structures, the function cause problem, is always same function. I need to get stack trace so i can find where that it call the special function(that it free memory).
How can i do it?
I thank you for any other suggestions for memory leakage detection.