Discussion:
while analyzing the memory leaks error Symbol could not found occu
(too old to reply)
Ashish Kumar Verma
2010-09-08 05:45:03 UTC
Permalink
Raw Message
Hi All
I am trying to analyze memory leaks using WINDBG for that I have downloaded
the appropraite symbols from the follwoing link

http://msdl.microsoft.com/download/symbols/packages/windowsxp/WindowsXP-KB936929-SP3-x86-symbols-full-ENU.exe"

After Installing the Symbol at the location C:\Windows\Symbols i have set
the Symbol path "C:\Windows\Symbols" under the option File --> Symbol File
Path and also set the path of my exe and .PDB file for the exe is also set
under the Symbol File Path, after it while analyzing the memory leaks for exe
when i execute the command

0:001> !heap -p -a 003f46e8 is executed along with WINDBG then following
stack has been generated

0:001> !heap -p -a 003f46e8

address 003f46e8 found in

_HEAP @ 3f0000

HEAP_ENTRY Size Prev Flags UserPtr UserSize - state

003f46e0 000d 0000 [07] 003f46e8 00050 - (busy)

Trace: 005c

7c96eed2 ntdll!RtlDebugAllocateHeap+0x000000e1

7c94b394 ntdll!RtlAllocateHeapSlowly+0x00000044

7c918f21 ntdll!RtlAllocateHeap+0x00000e64

*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.1433_x-ww_5cf844d2\MSVCR80.dll -

78134efe MSVCR80!malloc+0x000001f5

78134f70 MSVCR80!calloc+0x00000018

401016 Test_Leak!wmain+0x00000016

*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\system32\kernel32.dll -



7c817077 kernel32!RegisterWaitForInputIdle+0x00000049



In the above call stack two errors as displayed above has been occured in
which symbols for Kernal32.dll and MSVCR80.dll is missing.

So please suggest the soluiton for the same.

Operating System: Windows XP (SP3)

Thanks

Ashish
Scott Noone
2010-09-08 12:30:45 UTC
Permalink
Raw Message
Try using the MS symbol server instead of downloading the symbols directly:

.symfix+ c:\websymbols
.reload

-scott
--
Scott Noone
Consulting Associate
OSR Open Systems Resources, Inc.
http://www.osronline.com
http://twitter.com/analyzev
Post by Ashish Kumar Verma
Hi All
I am trying to analyze memory leaks using WINDBG for that I have downloaded
the appropraite symbols from the follwoing link
http://msdl.microsoft.com/download/symbols/packages/windowsxp/WindowsXP-KB936929-SP3-x86-symbols-full-ENU.exe"
After Installing the Symbol at the location C:\Windows\Symbols i have set
the Symbol path "C:\Windows\Symbols" under the option File --> Symbol File
Path and also set the path of my exe and .PDB file for the exe is also set
under the Symbol File Path, after it while analyzing the memory leaks for exe
when i execute the command
0:001> !heap -p -a 003f46e8 is executed along with WINDBG then following
stack has been generated
0:001> !heap -p -a 003f46e8
address 003f46e8 found in
HEAP_ENTRY Size Prev Flags UserPtr UserSize - state
003f46e0 000d 0000 [07] 003f46e8 00050 - (busy)
Trace: 005c
7c96eed2 ntdll!RtlDebugAllocateHeap+0x000000e1
7c94b394 ntdll!RtlAllocateHeapSlowly+0x00000044
7c918f21 ntdll!RtlAllocateHeap+0x00000e64
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.1433_x-ww_5cf844d2\MSVCR80.dll
-
78134efe MSVCR80!malloc+0x000001f5
78134f70 MSVCR80!calloc+0x00000018
401016 Test_Leak!wmain+0x00000016
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\system32\kernel32.dll -
7c817077 kernel32!RegisterWaitForInputIdle+0x00000049
In the above call stack two errors as displayed above has been occured in
which symbols for Kernal32.dll and MSVCR80.dll is missing.
So please suggest the soluiton for the same.
Operating System: Windows XP (SP3)
Thanks
Ashish
Ashish Kumar Verma
2010-09-17 11:52:03 UTC
Permalink
Raw Message
Hi Scott

Thanks for your response; I have set the path .symfix+ D:\localsymbols and
then execute .reload command but the following error stil occuring.

!heap -p -a 01ae4760
address 01ae4760 found in
_HEAP @ 3f0000
HEAP_ENTRY Size Prev Flags UserPtr UserSize - state
01ae4758 000d 0000 [07] 01ae4760 00050 - (busy)
Trace: 005c
7c96eed2 ntdll!RtlDebugAllocateHeap+0x000000e1
7c94b394 ntdll!RtlAllocateHeapSlowly+0x00000044
7c918f21 ntdll!RtlAllocateHeap+0x00000e64
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.1433_x-ww_5cf844d2\MSVCR80.dll -
78134efe MSVCR80!malloc+0x000001f5
78134f70 MSVCR80!calloc+0x00000018
401016 Test_Leak!wmain+0x00000016
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\system32\kernel32.dll -
7c817077 kernel32!RegisterWaitForInputIdle+0x00000049

Please suggest how to resolve the problem.

Thanks
Ashish
Post by Scott Noone
.symfix+ c:\websymbols
.reload
-scott
--
Scott Noone
Consulting Associate
OSR Open Systems Resources, Inc.
http://www.osronline.com
http://twitter.com/analyzev
Post by Ashish Kumar Verma
Hi All
I am trying to analyze memory leaks using WINDBG for that I have downloaded
the appropraite symbols from the follwoing link
http://msdl.microsoft.com/download/symbols/packages/windowsxp/WindowsXP-KB936929-SP3-x86-symbols-full-ENU.exe"
After Installing the Symbol at the location C:\Windows\Symbols i have set
the Symbol path "C:\Windows\Symbols" under the option File --> Symbol File
Path and also set the path of my exe and .PDB file for the exe is also set
under the Symbol File Path, after it while analyzing the memory leaks for exe
when i execute the command
0:001> !heap -p -a 003f46e8 is executed along with WINDBG then following
stack has been generated
0:001> !heap -p -a 003f46e8
address 003f46e8 found in
HEAP_ENTRY Size Prev Flags UserPtr UserSize - state
003f46e0 000d 0000 [07] 003f46e8 00050 - (busy)
Trace: 005c
7c96eed2 ntdll!RtlDebugAllocateHeap+0x000000e1
7c94b394 ntdll!RtlAllocateHeapSlowly+0x00000044
7c918f21 ntdll!RtlAllocateHeap+0x00000e64
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.1433_x-ww_5cf844d2\MSVCR80.dll
-
78134efe MSVCR80!malloc+0x000001f5
78134f70 MSVCR80!calloc+0x00000018
401016 Test_Leak!wmain+0x00000016
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\system32\kernel32.dll -
7c817077 kernel32!RegisterWaitForInputIdle+0x00000049
In the above call stack two errors as displayed above has been occured in
which symbols for Kernal32.dll and MSVCR80.dll is missing.
So please suggest the soluiton for the same.
Operating System: Windows XP (SP3)
Thanks
Ashish
Ashish Kumar Verma
2010-09-17 11:56:03 UTC
Permalink
Raw Message
Hi Scott

Thanks for your reply; I have set the Symbol path
.symfix+ D:\localsymbols
.reload
but the follwoing problem still occurring
0:001> !heap -p -a 01ae4760
address 01ae4760 found in
_HEAP @ 3f0000
HEAP_ENTRY Size Prev Flags UserPtr UserSize - state
01ae4758 000d 0000 [07] 01ae4760 00050 - (busy)
Trace: 005c
7c96eed2 ntdll!RtlDebugAllocateHeap+0x000000e1
7c94b394 ntdll!RtlAllocateHeapSlowly+0x00000044
7c918f21 ntdll!RtlAllocateHeap+0x00000e64
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.1433_x-ww_5cf844d2\MSVCR80.dll -
78134efe MSVCR80!malloc+0x000001f5
78134f70 MSVCR80!calloc+0x00000018
401016 Test_Leak!wmain+0x00000016
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\system32\kernel32.dll -
7c817077 kernel32!RegisterWaitForInputIdle+0x00000049

Thanks
Ashish
Post by Scott Noone
.symfix+ c:\websymbols
.reload
-scott
--
Scott Noone
Consulting Associate
OSR Open Systems Resources, Inc.
http://www.osronline.com
http://twitter.com/analyzev
Post by Ashish Kumar Verma
Hi All
I am trying to analyze memory leaks using WINDBG for that I have downloaded
the appropraite symbols from the follwoing link
http://msdl.microsoft.com/download/symbols/packages/windowsxp/WindowsXP-KB936929-SP3-x86-symbols-full-ENU.exe"
After Installing the Symbol at the location C:\Windows\Symbols i have set
the Symbol path "C:\Windows\Symbols" under the option File --> Symbol File
Path and also set the path of my exe and .PDB file for the exe is also set
under the Symbol File Path, after it while analyzing the memory leaks for exe
when i execute the command
0:001> !heap -p -a 003f46e8 is executed along with WINDBG then following
stack has been generated
0:001> !heap -p -a 003f46e8
address 003f46e8 found in
HEAP_ENTRY Size Prev Flags UserPtr UserSize - state
003f46e0 000d 0000 [07] 003f46e8 00050 - (busy)
Trace: 005c
7c96eed2 ntdll!RtlDebugAllocateHeap+0x000000e1
7c94b394 ntdll!RtlAllocateHeapSlowly+0x00000044
7c918f21 ntdll!RtlAllocateHeap+0x00000e64
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.1433_x-ww_5cf844d2\MSVCR80.dll
-
78134efe MSVCR80!malloc+0x000001f5
78134f70 MSVCR80!calloc+0x00000018
401016 Test_Leak!wmain+0x00000016
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\system32\kernel32.dll -
7c817077 kernel32!RegisterWaitForInputIdle+0x00000049
In the above call stack two errors as displayed above has been occured in
which symbols for Kernal32.dll and MSVCR80.dll is missing.
So please suggest the soluiton for the same.
Operating System: Windows XP (SP3)
Thanks
Ashish
Giggle
2010-09-18 09:04:48 UTC
Permalink
Raw Message
On Sep 17, 7:56 am, Ashish Kumar Verma
Post by Ashish Kumar Verma
Hi Scott
Thanks for your reply; I have set the Symbol path
.symfix+ D:\localsymbols
.reload
but the follwoing problem still occurring
0:001> !heap -p -a 01ae4760
    address 01ae4760 found in
      HEAP_ENTRY Size Prev Flags    UserPtr UserSize - state
        01ae4758 000d 0000  [07]   01ae4760    00050 - (busy)
        Trace: 005c
        7c96eed2 ntdll!RtlDebugAllocateHeap+0x000000e1
        7c94b394 ntdll!RtlAllocateHeapSlowly+0x00000044
        7c918f21 ntdll!RtlAllocateHeap+0x00000e64
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for
C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.1433_x- ww_5cf844d2\MSVCR80.dll -
        78134efe MSVCR80!malloc+0x000001f5
        78134f70 MSVCR80!calloc+0x00000018
        401016 Test_Leak!wmain+0x00000016
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for
C:\WINDOWS\system32\kernel32.dll -
        7c817077 kernel32!RegisterWaitForInputIdle+0x00000049
Thanks
Ashish
Post by Scott Noone
.symfix+ c:\websymbols
.reload
-scott
--
Scott Noone
Consulting Associate
OSR Open Systems Resources, Inc.
http://www.osronline.com
http://twitter.com/analyzev
Post by Ashish Kumar Verma
Hi All
I am trying to analyze memory leaks using WINDBG for that I have downloaded
the appropraite symbols from the follwoing link
http://msdl.microsoft.com/download/symbols/packages/windowsxp/Windows..."
After Installing the Symbol at the location C:\Windows\Symbols i have set
the Symbol path "C:\Windows\Symbols" under the option File --> Symbol File
Path and also set the path of my exe and .PDB file for the exe is also set
under the Symbol File Path, after it while analyzing the memory leaks for exe
when i execute the command
0:001> !heap -p -a 003f46e8 is executed along with WINDBG then following
stack has been generated
0:001> !heap -p -a 003f46e8
   address 003f46e8 found in
     HEAP_ENTRY Size Prev Flags    UserPtr UserSize - state
       003f46e0 000d 0000  [07]   003f46e8    00050 - (busy)
       Trace: 005c
       7c96eed2 ntdll!RtlDebugAllocateHeap+0x000000e1
       7c94b394 ntdll!RtlAllocateHeapSlowly+0x00000044
       7c918f21 ntdll!RtlAllocateHeap+0x00000e64
*** ERROR: Symbol file could not be found.  Defaulted to export symbols
for
C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.1433_x- ww_5cf844d2\MSVCR80.dll
 -
       78134efe MSVCR80!malloc+0x000001f5
       78134f70 MSVCR80!calloc+0x00000018
       401016 Test_Leak!wmain+0x00000016
*** ERROR: Symbol file could not be found.  Defaulted to export symbols
for
C:\WINDOWS\system32\kernel32.dll -
       7c817077 kernel32!RegisterWaitForInputIdle+0x00000049
In the above call stack two errors as displayed above has been occured in
which symbols for Kernal32.dll and MSVCR80.dll is missing.
So please suggest the soluiton for the same.
Operating System: Windows XP (SP3)
Thanks
Ashish
Use this one: http://msdl.microsoft.com/download/symbols
Scott Noone
2010-09-27 16:27:30 UTC
Permalink
Raw Message
"Giggle" <***@gmail.com> wrote in message
news:4b231b0c-5dc3-4f43-a6df-
Post by Giggle
Use this one: http://msdl.microsoft.com/download/symbols
Not sure I understand what you mean here. .symfix is a command that
automatically adds the symbol server to your path.

-scott
--
Scott Noone
Consulting Associate
OSR Open Systems Resources, Inc.
http://www.osronline.com
Post by Giggle
On Sep 17, 7:56 am, Ashish Kumar Verma
Post by Ashish Kumar Verma
Hi Scott
Thanks for your reply; I have set the Symbol path
.symfix+ D:\localsymbols
.reload
but the follwoing problem still occurring
0:001> !heap -p -a 01ae4760
address 01ae4760 found in
HEAP_ENTRY Size Prev Flags UserPtr UserSize - state
01ae4758 000d 0000 [07] 01ae4760 00050 - (busy)
Trace: 005c
7c96eed2 ntdll!RtlDebugAllocateHeap+0x000000e1
7c94b394 ntdll!RtlAllocateHeapSlowly+0x00000044
7c918f21 ntdll!RtlAllocateHeap+0x00000e64
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.1433_x-
ww_5cf844d2\MSVCR80.dll -
78134efe MSVCR80!malloc+0x000001f5
78134f70 MSVCR80!calloc+0x00000018
401016 Test_Leak!wmain+0x00000016
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\system32\kernel32.dll -
7c817077 kernel32!RegisterWaitForInputIdle+0x00000049
Thanks
Ashish
Post by Scott Noone
.symfix+ c:\websymbols
.reload
-scott
--
Scott Noone
Consulting Associate
OSR Open Systems Resources, Inc.
http://www.osronline.com
http://twitter.com/analyzev
Post by Ashish Kumar Verma
Hi All
I am trying to analyze memory leaks using WINDBG for that I have downloaded
the appropraite symbols from the follwoing link
http://msdl.microsoft.com/download/symbols/packages/windowsxp/Windows..."
After Installing the Symbol at the location C:\Windows\Symbols i have set
the Symbol path "C:\Windows\Symbols" under the option File --> Symbol File
Path and also set the path of my exe and .PDB file for the exe is also set
under the Symbol File Path, after it while analyzing the memory leaks
for
exe
when i execute the command
0:001> !heap -p -a 003f46e8 is executed along with WINDBG then following
stack has been generated
0:001> !heap -p -a 003f46e8
address 003f46e8 found in
HEAP_ENTRY Size Prev Flags UserPtr UserSize - state
003f46e0 000d 0000 [07] 003f46e8 00050 - (busy)
Trace: 005c
7c96eed2 ntdll!RtlDebugAllocateHeap+0x000000e1
7c94b394 ntdll!RtlAllocateHeapSlowly+0x00000044
7c918f21 ntdll!RtlAllocateHeap+0x00000e64
*** ERROR: Symbol file could not be found. Defaulted to export
symbols
for
C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.1433_x-
ww_5cf844d2\MSVCR80.dll
-
78134efe MSVCR80!malloc+0x000001f5
78134f70 MSVCR80!calloc+0x00000018
401016 Test_Leak!wmain+0x00000016
*** ERROR: Symbol file could not be found. Defaulted to export
symbols
for
C:\WINDOWS\system32\kernel32.dll -
7c817077 kernel32!RegisterWaitForInputIdle+0x00000049
In the above call stack two errors as displayed above has been occured in
which symbols for Kernal32.dll and MSVCR80.dll is missing.
So please suggest the soluiton for the same.
Operating System: Windows XP (SP3)
Thanks
Ashish
Use this one: http://msdl.microsoft.com/download/symbols
Scott Noone
2010-09-27 16:27:24 UTC
Permalink
Raw Message
Well, that looks OK. You're getting a stack trace properly but there aren't
PDBs indexed for some of the MS supplied components. While annoying, this
doesn't appear to have affected the stack trace you're getting. If you run
the command again you shouldn't see the warnings the second time, which will
declutter the output.

-scott
--
Scott Noone
Consulting Associate
OSR Open Systems Resources, Inc.
http://www.osronline.com
Post by Ashish Kumar Verma
Hi Scott
Thanks for your reply; I have set the Symbol path
.symfix+ D:\localsymbols
.reload
but the follwoing problem still occurring
0:001> !heap -p -a 01ae4760
address 01ae4760 found in
HEAP_ENTRY Size Prev Flags UserPtr UserSize - state
01ae4758 000d 0000 [07] 01ae4760 00050 - (busy)
Trace: 005c
7c96eed2 ntdll!RtlDebugAllocateHeap+0x000000e1
7c94b394 ntdll!RtlAllocateHeapSlowly+0x00000044
7c918f21 ntdll!RtlAllocateHeap+0x00000e64
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.1433_x-ww_5cf844d2\MSVCR80.dll
-
78134efe MSVCR80!malloc+0x000001f5
78134f70 MSVCR80!calloc+0x00000018
401016 Test_Leak!wmain+0x00000016
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\system32\kernel32.dll -
7c817077 kernel32!RegisterWaitForInputIdle+0x00000049
Thanks
Ashish
Post by Scott Noone
.symfix+ c:\websymbols
.reload
-scott
--
Scott Noone
Consulting Associate
OSR Open Systems Resources, Inc.
http://www.osronline.com
http://twitter.com/analyzev
Post by Ashish Kumar Verma
Hi All
I am trying to analyze memory leaks using WINDBG for that I have downloaded
the appropraite symbols from the follwoing link
http://msdl.microsoft.com/download/symbols/packages/windowsxp/WindowsXP-KB936929-SP3-x86-symbols-full-ENU.exe"
After Installing the Symbol at the location C:\Windows\Symbols i have set
the Symbol path "C:\Windows\Symbols" under the option File --> Symbol File
Path and also set the path of my exe and .PDB file for the exe is also set
under the Symbol File Path, after it while analyzing the memory leaks
for
exe
when i execute the command
0:001> !heap -p -a 003f46e8 is executed along with WINDBG then following
stack has been generated
0:001> !heap -p -a 003f46e8
address 003f46e8 found in
HEAP_ENTRY Size Prev Flags UserPtr UserSize - state
003f46e0 000d 0000 [07] 003f46e8 00050 - (busy)
Trace: 005c
7c96eed2 ntdll!RtlDebugAllocateHeap+0x000000e1
7c94b394 ntdll!RtlAllocateHeapSlowly+0x00000044
7c918f21 ntdll!RtlAllocateHeap+0x00000e64
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.1433_x-ww_5cf844d2\MSVCR80.dll
-
78134efe MSVCR80!malloc+0x000001f5
78134f70 MSVCR80!calloc+0x00000018
401016 Test_Leak!wmain+0x00000016
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\system32\kernel32.dll -
7c817077 kernel32!RegisterWaitForInputIdle+0x00000049
In the above call stack two errors as displayed above has been occured in
which symbols for Kernal32.dll and MSVCR80.dll is missing.
So please suggest the soluiton for the same.
Operating System: Windows XP (SP3)
Thanks
Ashish
Loading...