2
tcmalloc과 연결된 바이너리를 실행 중이고 누수 탐지를 위해 스택 추적 을 생성하지 않습니다.tcmalloc에서 스택 추적을 생성하지 않습니다.
The output says:
The 1 largest leaks:
Leak of 14bytes in 82093 objects allocated from:
If the preceding stack traces are not enough to find the leaks, try running THIS shell command:
pprof ../../prog "/tmp/prog.15062.prog-end.heap" --inuse_objects --lines --heapcheck --edgefraction=1e-10 --nodefraction=1e-10 --gv
pprof를 실행할 때 인쇄 할 노드가 없다는 메시지가 나타납니다.
나는이 문제를 디버깅하는 방법에 대한
HeapLeakChecker checker("prog");
....
assert(checker.NoLeaks());
어떤 아이디어로 의심되는 메모리 누수가 코드를 둘러싸는 무엇입니까?
흠 ... 나는 보통 비슷한 경우에 대해 deleaker 또는 다른 디버거를 사용합니다 ... –