Quantcast
Channel: Visual Leak Detector for Visual C++ 2008-2015
Viewing all articles
Browse latest Browse all 704

New Post: endless recursive call to VLD itself

$
0
0
hello,

I found a bug of VLD: endless recursive call to VLD itself. The callstack is as the following.
It's just because getTls() calls TlsSetValue() API, and TlsSetValue() calls RtlAllocateHeap(), but heap allocation is hooked by VLD, so the recursion is endless.
vld_x86.dll!VisualLeakDetector::getTls()  Line 983  C++
vld_x86.dll!VisualLeakDetector::enabled()  Line 904 + 0x8 bytes C++
vld_x86.dll!VisualLeakDetector::_HeapAlloc(void * heap=0x00610000, unsigned long flags=8, unsigned long size=4096)  Line 1544 + 0x10 bytes  C++
KernelBase.dll!_TlsSetValue@8()  + 0x45f04 bytes    
vld_x86.dll!VisualLeakDetector::getTls()  Line 996 + 0x16 bytes C++
vld_x86.dll!VisualLeakDetector::enabled()  Line 904 + 0x8 bytes C++
vld_x86.dll!VisualLeakDetector::_HeapAlloc(void * heap=0x00610000, unsigned long flags=8, unsigned long size=4096)  Line 1544 + 0x10 bytes  C++
KernelBase.dll!_TlsSetValue@8()  + 0x45f04 bytes    
vld_x86.dll!VisualLeakDetector::getTls()  Line 996 + 0x16 bytes C++
vld_x86.dll!VisualLeakDetector::enabled()  Line 904 + 0x8 bytes C++
vld_x86.dll!VisualLeakDetector::_HeapAlloc(void * heap=0x00610000, unsigned long flags=8, unsigned long size=4096)  Line 1544 + 0x10 bytes  C++
KernelBase.dll!_TlsSetValue@8()  + 0x45f04 bytes    
vld_x86.dll!VisualLeakDetector::getTls()  Line 996 + 0x16 bytes C++
vld_x86.dll!VisualLeakDetector::enabled()  Line 904 + 0x8 bytes C++
vld_x86.dll!VisualLeakDetector::_HeapAlloc(void * heap=0x00610000, unsigned long flags=8, unsigned long size=4096)  Line 1544 + 0x10 bytes  C++
KernelBase.dll!_TlsSetValue@8()  + 0x45f04 bytes    
vld_x86.dll!VisualLeakDetector::getTls()  Line 996 + 0x16 bytes C++
vld_x86.dll!VisualLeakDetector::enabled()  Line 904 + 0x8 bytes C++
vld_x86.dll!VisualLeakDetector::_HeapAlloc(void * heap=0x00610000, unsigned long flags=8, unsigned long size=4096)  Line 1544 + 0x10 bytes  C++

Viewing all articles
Browse latest Browse all 704

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>