How to detect memory leak with windbug?

Hi,
There is a memory leak issue in a File System Filter Driver, the leaking tag
is “Strg”.
Pool Used:
NonPaged Paged
Tag Allocs Used Allocs Used

Top 10 Paged Pool Tags

!tag Strg 0 0 1756020 96043136 Dynamic Translated
strings
!tag R600 115 1561704 277 13458856 UNKNOWN pooltag
‘R600’, please update pooltag.txt
!tag MmSt 0 0 1322 4209088 Mm section object
prototype ptes , Binary: nt!mm
!tag UlHT 0 0 1 4198400 Hash Table , Binary:
http.sys
!tag CM35 0 0 86 2871296 Internal Configuration
manager allocations , Binary: nt!cm

Howere, the tag ‘Strg’ is not used in my driver.
What does “Dynamic Translated strings” mean?

Could anybody tell me how to find the cause of the issue?
Thanks.


Nasser

i didnt attach anything but lyris rejected my earlier reply saying
attachement not acceptable

may be copy paste embedded unicode which lyris rejected

so saved a copy in notepad and reposting txt

sorry if this came out twice

you have avast running in the system ?

according to pooltag.txt in windbg folder tag strg is from some unknown
module
according to google there is a thread that talks about mrxsmb being related
to this tag
and leaks memory in conjunction with avast

It would seem that the Strg is responsible for the leak. Now I did some
searches and this is what i found:

From pooltag.txt:
Code:
Strg - - Dynamic Translated strings
From MS Knowledge Base Article MS KB262386, it would seem that the driver
filename is mrxsmb.sys (my system has the version 5.1.2600.1143
(xpsp2.021108-1929) of that file by the way) and its a MS’s driver.
So basically it appears that avast is just somehow causing this MS driver to
start leaking in my system. I’m going to try running avast’s resident
providers one at a time to see which one causes it.

http://support.microsoft.com/?kbid=262386

http://forum.avast.com/index.php?topic=1477.30

and there seems to be some sort of patch for it if it is avast related in
that thread
- Show quoted text -

> you have avast running in the system ?

according to google there is a thread that talks about mrxsmb being
related to this tag
and leaks memory in conjunction with avast

hehe, raj_r made a bad guess :wink:

“Strg” is default pool tag for Rtl* functions which allocate a memory, e.g.

RtlCreateUnicodeString

RtlAnsiStringToUnicodeString

RtlUpcaseUnicodeString

RtlStringFromGUID

check if you call RtlFreeUnicodeString when you use these functions !!

Petr

It would seem that the Strg is responsible for the leak. Now I did some
searches and this is what i found:

From pooltag.txt:
Code:
Strg - - Dynamic Translated strings
>From MS Knowledge Base Article MS KB262386, it would seem that the driver
filename is mrxsmb.sys (my system has the version 5.1.2600.1143
(xpsp2.021108-1929) of that file by the way) and its a MS’s driver.
So basically it appears that avast is just somehow causing this MS driver to
start leaking in my system. I’m going to try running avast’s resident
providers one at a time to see which one causes it.

http://support.microsoft.com/?kbid=262386

http://forum.avast.com/index.php?topic=1477.30

and there seems to be some sort of patch for it if it is avast related in
that thread
- Show quoted text -

— You are currently subscribed to windbg as: xxxxx@avast.com To
unsubscribe send a blank email to xxxxx@lists.osr.com

yep petr is right just grepped for the pattern didnt find anything in mrxsmb
but the tag is in ntkr / ntos .exes

lkd> s -a 60000000 l?ffffffff “hStrg”; .foreach (place { s -[1]a 60000000
l?ffffffff “hStrg” } ) { u place L4; !address place } ; .shell findstr /M
/D:c:\windows\system32\ “Strg” *.*

80601a11 68 53 74 72 67 ff 75 08-6a 01 e8 60 26 f4 ff 5d hStrg.u.j…`&…]
80607948 68 53 74 72 67 0f b7 45-d2 50 57 e8 28 c7 f3 ff hStrg…E.PW.(…
80607993 68 53 74 72 67 0f b7 46-02 50 6a 00 e8 dc c6 f3 hStrg…F.Pj…
nt!ExpAllocateStringRoutine+0x5:
80601a11 6853747267 push 67727453h
80601a16 ff7508 push dword ptr [ebp+8]
80601a19 6a01 push 1
80601a1b e86026f4ff call nt!ExAllocatePoolWithTag (80544080)
804d7000 - 001f7000
Usage KernelSpaceUsageImage
ImageName ntkrnlpa.exe

nt!NtDisplayString+0x9e:
80607948 6853747267 push 67727453h
8060794d 0fb745d2 movzx eax,word ptr [ebp-2Eh]
80607951 50 push eax
80607952 57 push edi
804d7000 - 001f7000
Usage KernelSpaceUsageImage
ImageName ntkrnlpa.exe

nt!NtDisplayString+0xe9:
80607993 6853747267 push 67727453h
80607998 0fb74602 movzx eax,word ptr [esi+2]
8060799c 50 push eax
8060799d 6a00 push 0
804d7000 - 001f7000
Usage KernelSpaceUsageImage
ImageName ntkrnlpa.exe

<.shell waiting 1 second(s) for process>
<.shell process may need input> c:\windows\system32:
ntkrnlpa.exe
ntoskrnl.exe
.shell: Process exited
Press ENTER to continue

regards

raj

On 11/30/08, Petr Kurtin wrote:
>
>
>
> > you have avast running in the system ?
> > according to google there is a thread that talks about mrxsmb being
> related to this tag
> > and leaks memory in conjunction with avast
>
> hehe, raj_r made a bad guess :wink:
>
>
>
> “Strg” is default pool tag for Rtl* functions which allocate a memory, e.g.
>
> RtlCreateUnicodeString
>
> RtlAnsiStringToUnicodeString
>
> RtlUpcaseUnicodeString
>
> RtlStringFromGUID
>
> …
>
> check if you call RtlFreeUnicodeString when you use these functions !!
>
>
>
> Petr
>
>
>
>
>
>
> It would seem that the Strg is responsible for the leak. Now I did some
> searches and this is what i found:
>
> From pooltag.txt:
> Code:
> Strg - - Dynamic Translated strings
> >From MS Knowledge Base Article MS KB262386, it would seem that the driver
> filename is mrxsmb.sys (my system has the version 5.1.2600.1143
> (xpsp2.021108-1929) of that file by the way) and its a MS’s driver.
> So basically it appears that avast is just somehow causing this MS driver
> to start leaking in my system. I’m going to try running avast’s resident
> providers one at a time to see which one causes it.
>
> http://support.microsoft.com/?kbid=262386
>
>
> http://forum.avast.com/index.php?topic=1477.30
>
> and there seems to be some sort of patch for it if it is avast related in
> that thread
> - Show quoted text -
>
>
> — You are currently subscribed to windbg as: xxxxx@avast.com To
> unsubscribe send a blank email to xxxxx@lists.osr.com
>
> —
> You are currently subscribed to windbg as: unknown lmsubst tag argument: ‘’
>
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>