Skip to content
This repository has been archived by the owner on Oct 31, 2021. It is now read-only.

2 memory leaks issues #3

Open
GoogleCodeExporter opened this issue Sep 22, 2015 · 0 comments
Open

2 memory leaks issues #3

GoogleCodeExporter opened this issue Sep 22, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. SHINY_VERSION "2.6 RC1"
2. latest version of visual leak detector http:https://vld.codeplex.com/
3. vld detects 2 memory leaks for the clode below:

#include "Shiny.h"
#include "vld.h"
int main()
{
  PROFILE_BEGIN( test );
  PROFILE_END(  );
  PROFILE_UPDATE();
  PROFILE_OUTPUT(0);
  return 0;
}

What is the expected output? What do you see instead?

WARNING: Visual Leak Detector detected memory leaks!
---------- Block 1 at 0x00D86FF8: 22528 bytes ----------
Leak Hash: 0xEB9FE4E9 Count: 1
  Call Stack:
    c:\lab\lib\shiny\shiny\src\shinymanager.c (315): test.exe!_ShinyManager_createNodeTable + 0xF bytes
    c:\lab\lib\shiny\shiny\src\shinymanager.c (223): test.exe!_ShinyManager_lookupNode + 0xE bytes
    c:\lab\lib\shiny\shiny\include\shinymanager.h (159): test.exe!ShinyManager_lookupAndBeginNode + 0x11 bytes
    c:\cv_src\main\test\test.cpp (149): test.exe!main + 0x14 bytes
    f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (555): test.exe!__tmainCRTStartup + 0x19 bytes
    f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (371): test.exe!mainCRTStartup
    0x75E033AA (File and line number not available): kernel32.dll!BaseThreadInitThunk + 0x12 bytes
    0x77759EF2 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x63 bytes
    0x77759EC5 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x36 bytes
  Data:
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........


---------- Block 2 at 0x00D8C838: 11280 bytes ----------
Leak Hash: 0x5CA85C76 Count: 1
  Call Stack:
    c:\lab\lib\shiny\shiny\src\shinynodepool.c (38): test.exe!ShinyNodePool_create + 0x15 bytes
    c:\lab\lib\shiny\shiny\src\shinymanager.c (294): test.exe!_ShinyManager_createNodePool + 0x9 bytes
    c:\lab\lib\shiny\shiny\src\shinymanager.c (224): test.exe!_ShinyManager_lookupNode + 0xE bytes
    c:\lab\lib\shiny\shiny\include\shinymanager.h (159): test.exe!ShinyManager_lookupAndBeginNode + 0x11 bytes
    c:\cv_src\main\test\test.cpp (149): test.exe!main + 0x14 bytes
    f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (555): test.exe!__tmainCRTStartup + 0x19 bytes
    f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (371): test.exe!mainCRTStartup
    0x75E033AA (File and line number not available): kernel32.dll!BaseThreadInitThunk + 0x12 bytes
    0x77759EF2 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x63 bytes
    0x77759EC5 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x36 bytes
  Data:
    00 00 00 00    A0 C8 D8 00    48 F4 D8 00    CD CD CD CD     ........ H.......
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    08 70 2D 01    70 70 2D 01    00 00 00 00    00 00 00 00     .p-.pp-. ........
    00 00 00 00    00 00 00 00    01 00 00 00    00 70 2D 01     ........ .....p-.
    01 00 00 00    00 00 80 3F    00 00 00 00    00 00 00 00     .......? ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........


Visual Leak Detector detected 2 memory leaks (33880 bytes).

What version of the product are you using? On what operating system?
SHINY_VERSION "2.6 RC1"
Windows 7

Please provide any additional information below.

Original issue reported on code.google.com by hatem.taleb on 27 Feb 2013 at 10:09

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant