473,394 Members | 1,703 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Getting proper Stack information from memory dump

Hi,

I am currently having a problem with random, intermittent lock ups in my
ASP.net application on our production server (99% CPU usage by 3 threads,
indefinately). I currently use IIS Debug Tools to do a memory dump of the
app when the lock up occurs, however the stack information is not very
useful.

I have just put a new build of our system onto production, and this build is
a "Debug" build as opposed to a "Release" build. I am hoping to get more
information from the dump, like which lines of code are being executed in
the web app.

Is there anything else I need to setup in order to get this level of detail
out of the dump. Right now, I am just getting Kernel calls, and the three
threads always lock up with the last call being:

KERNEL32!lstrcmpiw+0xbz

I am using Windbg to load and view the memory dump files.

Thanks,

Rishan
Nov 18 '05 #1
9 3227
you want the sos.dll for debugging clr code.

-- bruce (sqlwork.com)
"Microsoft News Server" <an**@anon.com> wrote in message
news:Op**************@TK2MSFTNGP10.phx.gbl...
| Hi,
|
| I am currently having a problem with random, intermittent lock ups in my
| ASP.net application on our production server (99% CPU usage by 3 threads,
| indefinately). I currently use IIS Debug Tools to do a memory dump of the
| app when the lock up occurs, however the stack information is not very
| useful.
|
| I have just put a new build of our system onto production, and this build
is
| a "Debug" build as opposed to a "Release" build. I am hoping to get more
| information from the dump, like which lines of code are being executed in
| the web app.
|
| Is there anything else I need to setup in order to get this level of
detail
| out of the dump. Right now, I am just getting Kernel calls, and the three
| threads always lock up with the last call being:
|
| KERNEL32!lstrcmpiw+0xbz
|
| I am using Windbg to load and view the memory dump files.
|
| Thanks,
|
| Rishan
|
|
Nov 18 '05 #2
Hi Rishan,

As Bruce said, you want to use the SOS extension for debugging managed
code. You can get it from the v1.1.4322 folder. Open your dump in Windbg
and then enter the following command to load it:

load c:\\windows\\microsoft.net\\framework\\v1.1.4322\\ sos

After it's loaded, you can use several methods to view the stack:

!clrstack

That will show you managed code in the stack. You can get more detail by
running:

!clrstack -a

If you've already got Perfmon data that shows which threads are the issue,
that should be all you need. If you'd like even more information on those
threads, try this:

!dumpstack

That will give you a lot more information.

Let me know if that helps you.

Jim Cheshire [MSFT]
MCP+I, MCSE, MCSD, MCDBA
ASP.NET Developer Support
ja******@online.microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.
--------------------
| From: "Microsoft News Server" <an**@anon.com>
| Subject: Getting proper Stack information from memory dump
| Date: Tue, 9 Nov 2004 14:45:35 -0500
| Lines: 26
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| Message-ID: <Op**************@TK2MSFTNGP10.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 206.47.190.38
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP10
phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.aspnet:274812
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi,
|
| I am currently having a problem with random, intermittent lock ups in my
| ASP.net application on our production server (99% CPU usage by 3 threads,
| indefinately). I currently use IIS Debug Tools to do a memory dump of the
| app when the lock up occurs, however the stack information is not very
| useful.
|
| I have just put a new build of our system onto production, and this build
is
| a "Debug" build as opposed to a "Release" build. I am hoping to get more
| information from the dump, like which lines of code are being executed in
| the web app.
|
| Is there anything else I need to setup in order to get this level of
detail
| out of the dump. Right now, I am just getting Kernel calls, and the three
| threads always lock up with the last call being:
|
| KERNEL32!lstrcmpiw+0xbz
|
| I am using Windbg to load and view the memory dump files.
|
| Thanks,
|
| Rishan
|
|
|

Nov 18 '05 #3
Hi,

Thanks for the help.

I actually do remember trying this a few days ago, and I got stuck with the
following error:

after .load c:\\sos.dll (i put it in my root drive)

I get back from windbg:

The call to load library(c:\\sos.dll) failed. Win32 erro 127
"The specified procedure could not be found"
Please check your debugger configuration and/or network access.

I am currently using the .Net Framework 1.0, I believe I have the latest
service pack installed on my dev box.

I get the same message when I try to register the dll using regsvr32 "The
specified procedure could not be found"

Thanks,

Rishan
"Jim Cheshire [MSFT]" <ja******@online.microsoft.com> wrote in message
news:ey**************@cpmsftngxa10.phx.gbl...
Hi Rishan,

As Bruce said, you want to use the SOS extension for debugging managed
code. You can get it from the v1.1.4322 folder. Open your dump in Windbg
and then enter the following command to load it:

load c:\\windows\\microsoft.net\\framework\\v1.1.4322\\ sos

After it's loaded, you can use several methods to view the stack:

!clrstack

That will show you managed code in the stack. You can get more detail by
running:

!clrstack -a

If you've already got Perfmon data that shows which threads are the issue,
that should be all you need. If you'd like even more information on those
threads, try this:

!dumpstack

That will give you a lot more information.

Let me know if that helps you.

Jim Cheshire [MSFT]
MCP+I, MCSE, MCSD, MCDBA
ASP.NET Developer Support
ja******@online.microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.
--------------------
| From: "Microsoft News Server" <an**@anon.com>
| Subject: Getting proper Stack information from memory dump
| Date: Tue, 9 Nov 2004 14:45:35 -0500
| Lines: 26
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| Message-ID: <Op**************@TK2MSFTNGP10.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 206.47.190.38
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP10
phx.gbl
| Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.aspnet:274812
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi,
|
| I am currently having a problem with random, intermittent lock ups in my
| ASP.net application on our production server (99% CPU usage by 3
threads,
| indefinately). I currently use IIS Debug Tools to do a memory dump of
the
| app when the lock up occurs, however the stack information is not very
| useful.
|
| I have just put a new build of our system onto production, and this
build
is
| a "Debug" build as opposed to a "Release" build. I am hoping to get more
| information from the dump, like which lines of code are being executed
in
| the web app.
|
| Is there anything else I need to setup in order to get this level of
detail
| out of the dump. Right now, I am just getting Kernel calls, and the
three
| threads always lock up with the last call being:
|
| KERNEL32!lstrcmpiw+0xbz
|
| I am using Windbg to load and view the memory dump files.
|
| Thanks,
|
| Rishan
|
|
|

Nov 18 '05 #4
Hi Jim,

When I did a depends.exe on SOS.dll, I was able to resolve a couple of
missing DLLS, except one still causes a problem: msvcrt.dll.

I don't know if this is within the scope of your expertise, or this
newsgroup, but any help is greatly appreciated:

The error message out of depends is:

At least one module has an unresolved import due to a missing export
function in an implicitly dependent module.

The function is: _strtoui64

Am I missing the latest version of msvcrt.dll ? Would it be part of a
service pack I don't have?

Thanks,

Rishan

"Jim Cheshire [MSFT]" <ja******@online.microsoft.com> wrote in message
news:ey**************@cpmsftngxa10.phx.gbl...
Hi Rishan,

As Bruce said, you want to use the SOS extension for debugging managed
code. You can get it from the v1.1.4322 folder. Open your dump in Windbg
and then enter the following command to load it:

load c:\\windows\\microsoft.net\\framework\\v1.1.4322\\ sos

After it's loaded, you can use several methods to view the stack:

!clrstack

That will show you managed code in the stack. You can get more detail by
running:

!clrstack -a

If you've already got Perfmon data that shows which threads are the issue,
that should be all you need. If you'd like even more information on those
threads, try this:

!dumpstack

That will give you a lot more information.

Let me know if that helps you.

Jim Cheshire [MSFT]
MCP+I, MCSE, MCSD, MCDBA
ASP.NET Developer Support
ja******@online.microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.
--------------------
| From: "Microsoft News Server" <an**@anon.com>
| Subject: Getting proper Stack information from memory dump
| Date: Tue, 9 Nov 2004 14:45:35 -0500
| Lines: 26
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| Message-ID: <Op**************@TK2MSFTNGP10.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 206.47.190.38
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP10
phx.gbl
| Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.aspnet:274812
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi,
|
| I am currently having a problem with random, intermittent lock ups in my
| ASP.net application on our production server (99% CPU usage by 3
threads,
| indefinately). I currently use IIS Debug Tools to do a memory dump of
the
| app when the lock up occurs, however the stack information is not very
| useful.
|
| I have just put a new build of our system onto production, and this
build
is
| a "Debug" build as opposed to a "Release" build. I am hoping to get more
| information from the dump, like which lines of code are being executed
in
| the web app.
|
| Is there anything else I need to setup in order to get this level of
detail
| out of the dump. Right now, I am just getting Kernel calls, and the
three
| threads always lock up with the last call being:
|
| KERNEL32!lstrcmpiw+0xbz
|
| I am using Windbg to load and view the memory dump files.
|
| Thanks,
|
| Rishan
|
|
|

Nov 18 '05 #5
Ok, i got it working on my laptop, which has Win XP (and the latest
msvcrt.dll, which has that missing export...that function is only present in
version 7 and above of msvcrt.dll)...

thanks again for all the help..

Rishan
"Jim Cheshire [MSFT]" <ja******@online.microsoft.com> wrote in message
news:ey**************@cpmsftngxa10.phx.gbl...
Hi Rishan,

As Bruce said, you want to use the SOS extension for debugging managed
code. You can get it from the v1.1.4322 folder. Open your dump in Windbg
and then enter the following command to load it:

load c:\\windows\\microsoft.net\\framework\\v1.1.4322\\ sos

After it's loaded, you can use several methods to view the stack:

!clrstack

That will show you managed code in the stack. You can get more detail by
running:

!clrstack -a

If you've already got Perfmon data that shows which threads are the issue,
that should be all you need. If you'd like even more information on those
threads, try this:

!dumpstack

That will give you a lot more information.

Let me know if that helps you.

Jim Cheshire [MSFT]
MCP+I, MCSE, MCSD, MCDBA
ASP.NET Developer Support
ja******@online.microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.
--------------------
| From: "Microsoft News Server" <an**@anon.com>
| Subject: Getting proper Stack information from memory dump
| Date: Tue, 9 Nov 2004 14:45:35 -0500
| Lines: 26
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| Message-ID: <Op**************@TK2MSFTNGP10.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 206.47.190.38
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP10
phx.gbl
| Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.aspnet:274812
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi,
|
| I am currently having a problem with random, intermittent lock ups in my
| ASP.net application on our production server (99% CPU usage by 3
threads,
| indefinately). I currently use IIS Debug Tools to do a memory dump of
the
| app when the lock up occurs, however the stack information is not very
| useful.
|
| I have just put a new build of our system onto production, and this
build
is
| a "Debug" build as opposed to a "Release" build. I am hoping to get more
| information from the dump, like which lines of code are being executed
in
| the web app.
|
| Is there anything else I need to setup in order to get this level of
detail
| out of the dump. Right now, I am just getting Kernel calls, and the
three
| threads always lock up with the last call being:
|
| KERNEL32!lstrcmpiw+0xbz
|
| I am using Windbg to load and view the memory dump files.
|
| Thanks,
|
| Rishan
|
|
|

Nov 18 '05 #6
Rishan,

SOS is not a COM DLL, so you cannot register it with regsvr32.

Try placing the DLL in the same directory as Windbg and running this:

load sos

No .dll after it. Just .load sos.

Jim Cheshire [MSFT]
MCP+I, MCSE, MCSD, MCDBA
ASP.NET Developer Support
ja******@online.microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.
--------------------
| From: "Rishan" <an**@anon.com>
| References: <Op**************@TK2MSFTNGP10.phx.gbl>
<ey**************@cpmsftngxa10.phx.gbl>
| Subject: Re: Getting proper Stack information from memory dump
| Date: Tue, 9 Nov 2004 19:05:40 -0500
| Lines: 118
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| Message-ID: <O0**************@TK2MSFTNGP11.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 206.47.190.38
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP11
phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.aspnet:274891
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi,
|
| Thanks for the help.
|
| I actually do remember trying this a few days ago, and I got stuck with
the
| following error:
|
| after .load c:\\sos.dll (i put it in my root drive)
|
| I get back from windbg:
|
| The call to load library(c:\\sos.dll) failed. Win32 erro 127
| "The specified procedure could not be found"
| Please check your debugger configuration and/or network access.
|
| I am currently using the .Net Framework 1.0, I believe I have the latest
| service pack installed on my dev box.
|
| I get the same message when I try to register the dll using regsvr32 "The
| specified procedure could not be found"
|
| Thanks,
|
| Rishan
| "Jim Cheshire [MSFT]" <ja******@online.microsoft.com> wrote in message
| news:ey**************@cpmsftngxa10.phx.gbl...
| > Hi Rishan,
| >
| > As Bruce said, you want to use the SOS extension for debugging managed
| > code. You can get it from the v1.1.4322 folder. Open your dump in
Windbg
| > and then enter the following command to load it:
| >
| > load c:\\windows\\microsoft.net\\framework\\v1.1.4322\\ sos
| >
| > After it's loaded, you can use several methods to view the stack:
| >
| > !clrstack
| >
| > That will show you managed code in the stack. You can get more detail
by
| > running:
| >
| > !clrstack -a
| >
| > If you've already got Perfmon data that shows which threads are the
issue,
| > that should be all you need. If you'd like even more information on
those
| > threads, try this:
| >
| > !dumpstack
| >
| > That will give you a lot more information.
| >
| > Let me know if that helps you.
| >
| > Jim Cheshire [MSFT]
| > MCP+I, MCSE, MCSD, MCDBA
| > ASP.NET Developer Support
| > ja******@online.microsoft.com
| >
| > This post is provided "AS-IS" with no warranties and confers no rights.
| >
| >
| > --------------------
| > | From: "Microsoft News Server" <an**@anon.com>
| > | Subject: Getting proper Stack information from memory dump
| > | Date: Tue, 9 Nov 2004 14:45:35 -0500
| > | Lines: 26
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| > | X-RFC2646: Format=Flowed; Original
| > | Message-ID: <Op**************@TK2MSFTNGP10.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: 206.47.190.38
| > | Path:
| >
cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP10
| > phx.gbl
| > | Xref: cpmsftngxa10.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:274812
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | Hi,
| > |
| > | I am currently having a problem with random, intermittent lock ups in
my
| > | ASP.net application on our production server (99% CPU usage by 3
| > threads,
| > | indefinately). I currently use IIS Debug Tools to do a memory dump of
| > the
| > | app when the lock up occurs, however the stack information is not very
| > | useful.
| > |
| > | I have just put a new build of our system onto production, and this
| > build
| > is
| > | a "Debug" build as opposed to a "Release" build. I am hoping to get
more
| > | information from the dump, like which lines of code are being
executed
| > in
| > | the web app.
| > |
| > | Is there anything else I need to setup in order to get this level of
| > detail
| > | out of the dump. Right now, I am just getting Kernel calls, and the
| > three
| > | threads always lock up with the last call being:
| > |
| > | KERNEL32!lstrcmpiw+0xbz
| > |
| > | I am using Windbg to load and view the memory dump files.
| > |
| > | Thanks,
| > |
| > | Rishan
| > |
| > |
| > |
| >
|
|
|

Nov 18 '05 #7
Hi Rishan,

Good deal. Glad you got it working.

Jim Cheshire [MSFT]
MCP+I, MCSE, MCSD, MCDBA
ASP.NET Developer Support
ja******@online.microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.
--------------------
| From: "Rishan" <an**@anon.com>
| References: <Op**************@TK2MSFTNGP10.phx.gbl>
<ey**************@cpmsftngxa10.phx.gbl>
| Subject: Re: Getting proper Stack information from memory dump
| Date: Tue, 9 Nov 2004 19:55:40 -0500
| Lines: 101
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| Message-ID: <OJ*************@TK2MSFTNGP11.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 206.47.190.38
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP11
phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.aspnet:274901
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Ok, i got it working on my laptop, which has Win XP (and the latest
| msvcrt.dll, which has that missing export...that function is only present
in
| version 7 and above of msvcrt.dll)...
|
| thanks again for all the help..
|
| Rishan
| "Jim Cheshire [MSFT]" <ja******@online.microsoft.com> wrote in message
| news:ey**************@cpmsftngxa10.phx.gbl...
| > Hi Rishan,
| >
| > As Bruce said, you want to use the SOS extension for debugging managed
| > code. You can get it from the v1.1.4322 folder. Open your dump in
Windbg
| > and then enter the following command to load it:
| >
| > load c:\\windows\\microsoft.net\\framework\\v1.1.4322\\ sos
| >
| > After it's loaded, you can use several methods to view the stack:
| >
| > !clrstack
| >
| > That will show you managed code in the stack. You can get more detail
by
| > running:
| >
| > !clrstack -a
| >
| > If you've already got Perfmon data that shows which threads are the
issue,
| > that should be all you need. If you'd like even more information on
those
| > threads, try this:
| >
| > !dumpstack
| >
| > That will give you a lot more information.
| >
| > Let me know if that helps you.
| >
| > Jim Cheshire [MSFT]
| > MCP+I, MCSE, MCSD, MCDBA
| > ASP.NET Developer Support
| > ja******@online.microsoft.com
| >
| > This post is provided "AS-IS" with no warranties and confers no rights.
| >
| >
| > --------------------
| > | From: "Microsoft News Server" <an**@anon.com>
| > | Subject: Getting proper Stack information from memory dump
| > | Date: Tue, 9 Nov 2004 14:45:35 -0500
| > | Lines: 26
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| > | X-RFC2646: Format=Flowed; Original
| > | Message-ID: <Op**************@TK2MSFTNGP10.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: 206.47.190.38
| > | Path:
| >
cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP10
| > phx.gbl
| > | Xref: cpmsftngxa10.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:274812
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | Hi,
| > |
| > | I am currently having a problem with random, intermittent lock ups in
my
| > | ASP.net application on our production server (99% CPU usage by 3
| > threads,
| > | indefinately). I currently use IIS Debug Tools to do a memory dump of
| > the
| > | app when the lock up occurs, however the stack information is not very
| > | useful.
| > |
| > | I have just put a new build of our system onto production, and this
| > build
| > is
| > | a "Debug" build as opposed to a "Release" build. I am hoping to get
more
| > | information from the dump, like which lines of code are being
executed
| > in
| > | the web app.
| > |
| > | Is there anything else I need to setup in order to get this level of
| > detail
| > | out of the dump. Right now, I am just getting Kernel calls, and the
| > three
| > | threads always lock up with the last call being:
| > |
| > | KERNEL32!lstrcmpiw+0xbz
| > |
| > | I am using Windbg to load and view the memory dump files.
| > |
| > | Thanks,
| > |
| > | Rishan
| > |
| > |
| > |
| >
|
|
|

Nov 18 '05 #8
Hi,

I just would like to confirm that in order to see detailed stack
information, the original ASP.net app that I'm trying to debug must have
been built in "Debug" mode. The dump I currently have is about a week old,
when the app in production was built in "Release" mode. When I try to view
stack information, it says the thread is not a managed thread. If it had
been built in Debug mode, it would have recognized the thread as managed
correct?

Thanks,

Rishan

"Jim Cheshire [MSFT]" <ja******@online.microsoft.com> wrote in message
news:ey**************@cpmsftngxa10.phx.gbl...
Hi Rishan,

As Bruce said, you want to use the SOS extension for debugging managed
code. You can get it from the v1.1.4322 folder. Open your dump in Windbg
and then enter the following command to load it:

load c:\\windows\\microsoft.net\\framework\\v1.1.4322\\ sos

After it's loaded, you can use several methods to view the stack:

!clrstack

That will show you managed code in the stack. You can get more detail by
running:

!clrstack -a

If you've already got Perfmon data that shows which threads are the issue,
that should be all you need. If you'd like even more information on those
threads, try this:

!dumpstack

That will give you a lot more information.

Let me know if that helps you.

Jim Cheshire [MSFT]
MCP+I, MCSE, MCSD, MCDBA
ASP.NET Developer Support
ja******@online.microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.
--------------------
| From: "Microsoft News Server" <an**@anon.com>
| Subject: Getting proper Stack information from memory dump
| Date: Tue, 9 Nov 2004 14:45:35 -0500
| Lines: 26
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| Message-ID: <Op**************@TK2MSFTNGP10.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 206.47.190.38
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP10
phx.gbl
| Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.aspnet:274812
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi,
|
| I am currently having a problem with random, intermittent lock ups in my
| ASP.net application on our production server (99% CPU usage by 3
threads,
| indefinately). I currently use IIS Debug Tools to do a memory dump of
the
| app when the lock up occurs, however the stack information is not very
| useful.
|
| I have just put a new build of our system onto production, and this
build
is
| a "Debug" build as opposed to a "Release" build. I am hoping to get more
| information from the dump, like which lines of code are being executed
in
| the web app.
|
| Is there anything else I need to setup in order to get this level of
detail
| out of the dump. Right now, I am just getting Kernel calls, and the
three
| threads always lock up with the last call being:
|
| KERNEL32!lstrcmpiw+0xbz
|
| I am using Windbg to load and view the memory dump files.
|
| Thanks,
|
| Rishan
|
|
|

Nov 18 '05 #9
Hi Rishan,

No. The debugger isn't going to care about symbols for your assembly. We
use tokens to identify the addresses of functions, etc. Symbols are not
necessary.

If the debugger says that a thread is not a managed thread, it's not. You
can easily see managed code if you do a kb or a kp on a thread. If you see
no information other than the address in a frame, that usually indicates
managed code running in that thread. However, in any case, if a thread
says that it's not managed, it's not.

Jim Cheshire [MSFT]
MCP+I, MCSE, MCSD, MCDBA
ASP.NET Developer Support
ja******@online.microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.
--------------------
| From: "Rishan" <an**@anon.com>
| References: <Op**************@TK2MSFTNGP10.phx.gbl>
<ey**************@cpmsftngxa10.phx.gbl>
| Subject: Re: Getting proper Stack information from memory dump
| Date: Thu, 11 Nov 2004 09:56:06 -0500
| Lines: 108
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| Message-ID: <eP**************@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 206.47.190.38
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!TK2MSFT NGP08.phx.gbl!tk2msftngp13
phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.aspnet:275332
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi,
|
| I just would like to confirm that in order to see detailed stack
| information, the original ASP.net app that I'm trying to debug must have
| been built in "Debug" mode. The dump I currently have is about a week
old,
| when the app in production was built in "Release" mode. When I try to
view
| stack information, it says the thread is not a managed thread. If it had
| been built in Debug mode, it would have recognized the thread as managed
| correct?
|
| Thanks,
|
| Rishan
|
| "Jim Cheshire [MSFT]" <ja******@online.microsoft.com> wrote in message
| news:ey**************@cpmsftngxa10.phx.gbl...
| > Hi Rishan,
| >
| > As Bruce said, you want to use the SOS extension for debugging managed
| > code. You can get it from the v1.1.4322 folder. Open your dump in
Windbg
| > and then enter the following command to load it:
| >
| > load c:\\windows\\microsoft.net\\framework\\v1.1.4322\\ sos
| >
| > After it's loaded, you can use several methods to view the stack:
| >
| > !clrstack
| >
| > That will show you managed code in the stack. You can get more detail
by
| > running:
| >
| > !clrstack -a
| >
| > If you've already got Perfmon data that shows which threads are the
issue,
| > that should be all you need. If you'd like even more information on
those
| > threads, try this:
| >
| > !dumpstack
| >
| > That will give you a lot more information.
| >
| > Let me know if that helps you.
| >
| > Jim Cheshire [MSFT]
| > MCP+I, MCSE, MCSD, MCDBA
| > ASP.NET Developer Support
| > ja******@online.microsoft.com
| >
| > This post is provided "AS-IS" with no warranties and confers no rights.
| >
| >
| > --------------------
| > | From: "Microsoft News Server" <an**@anon.com>
| > | Subject: Getting proper Stack information from memory dump
| > | Date: Tue, 9 Nov 2004 14:45:35 -0500
| > | Lines: 26
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| > | X-RFC2646: Format=Flowed; Original
| > | Message-ID: <Op**************@TK2MSFTNGP10.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: 206.47.190.38
| > | Path:
| >
cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP10
| > phx.gbl
| > | Xref: cpmsftngxa10.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:274812
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | Hi,
| > |
| > | I am currently having a problem with random, intermittent lock ups in
my
| > | ASP.net application on our production server (99% CPU usage by 3
| > threads,
| > | indefinately). I currently use IIS Debug Tools to do a memory dump of
| > the
| > | app when the lock up occurs, however the stack information is not very
| > | useful.
| > |
| > | I have just put a new build of our system onto production, and this
| > build
| > is
| > | a "Debug" build as opposed to a "Release" build. I am hoping to get
more
| > | information from the dump, like which lines of code are being
executed
| > in
| > | the web app.
| > |
| > | Is there anything else I need to setup in order to get this level of
| > detail
| > | out of the dump. Right now, I am just getting Kernel calls, and the
| > three
| > | threads always lock up with the last call being:
| > |
| > | KERNEL32!lstrcmpiw+0xbz
| > |
| > | I am using Windbg to load and view the memory dump files.
| > |
| > | Thanks,
| > |
| > | Rishan
| > |
| > |
| > |
| >
|
|
|

Nov 18 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Andrew | last post by:
Last night I was reading about implementing my own stack. The example given pushes items on and off the stack at the start and end of each procedure (ie. in a std module). What's not so clear is...
1
by: Adi | last post by:
A java program we have written crashes with IBM JDK 1.3.1 on linux. It works fine on other platforms(Solaris,HPUx). It gets a SIGSERV Signal 11 and crashes just after few minutes after starting up....
6
by: milkyway | last post by:
Hello out there, When one gets an error, they can use fprintf (Stdout, "File %s Line %d\n", __FILE__, __LINE__); Is there a similar way where on can print out the stack trace? Any help,...
13
by: Ben R. Bolton | last post by:
The documentation indicates that the threads "default stack size" is 1MB. The work "default" implies that it can be changed. Is it possible to change the StackSize in .NET? If so how? Is it...
9
by: shine | last post by:
what is the difference between a heap and a stack?
3
by: sukrit.mehra | last post by:
Hi, Please guide me to the right group(s) if the post isn't on topic here. My program is running on a ARM7 h/w on top of an RTOS. I want to dump the names of the functions that were called in...
3
by: Scottie_do | last post by:
I have a 20meg in-memory stack-based array and I'd like to normalise in the client's memory... then add foriegn keys, and display results on a datagrid. I discovered that converting the stack to a...
24
by: John | last post by:
I know this is a very fundamental question. I am still quite confused if the program call stack stack should always grows upwards from the bottom, or the opposite, or doesn't matter?? That means...
2
by: Scott | last post by:
I'm debugging an xmlrpc client/server application. Often when an exception occurs in the server, I receive only a very short error message on the client. For example: xmlrpclib.Fault: <Fault 1:...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.