|
From: Austin E. <aus...@gm...> - 2015-01-02 11:45:00
|
Dear All I have a C based application, it runs fine. I wanted to do memory leak check. I checked memory leak (using Valgrind 3.10.1 in a Ubuntu 12.04 LTS machine). Valgrind is really helpful. It helped me to great extent to fix memory leaks, uninitialized sections etc. Now I see some leaks (possible leaks) but stack it shows is empty one something as below. ==28501== ==28501== 5 bytes in 1 blocks are indirectly lost in loss record 32 of 152 ==28501== at 0x402CFC7: malloc (vg_replace_malloc.c:296) ==28501== by 0x40C48E7: ??? ==28501== by 0x40B7B7F: ??? ==28501== by 0x40E4830: ??? ==28501== by 0x40E4BC7: ??? ==28501== by 0x406FEAF: ??? ==28501== by 0x406C4EF: ??? ==28501== by 0x406AA9E: ??? ==28501== by 0x406489F: ??? ==28501== by 0x40646C9: ??? ==28501== by 0x4A2CE99: start_thread (pthread_create.c:308) ==28501== ==28501== 7 bytes in 1 blocks are indirectly lost in loss record 33 of 152 ==28501== at 0x402CFC7: malloc (vg_replace_malloc.c:296) ==28501== by 0x40AF985: ??? ==28501== by 0x40AE2A1: ??? ==28501== by 0x40ADB1B: ??? ==28501== by 0x40ADAAC: ??? ==28501== by 0x40C3B24: ??? ==28501== by 0x40BDAE2: ??? ==28501== by 0x40BDFA7: ??? ==28501== by 0x40BE6F2: ??? ==28501== by 0x40BF290: ??? ==28501== by 0x40BF483: ??? ==28501== by 0x40E63C0: ??? ==28501== My query is, why stack trace is empty. In such situations how do I catch where from problem origins. Many thanks. Austin |