473,898 Members | 2,470 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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!lstrcm piw+0xbz

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

Thanks,

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

-- bruce (sqlwork.com)
"Microsoft News Server" <an**@anon.co m> wrote in message
news:Op******** ******@TK2MSFTN GP10.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!lstrcm piw+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\\mi crosoft.net\\fr amework\\v1.1.4 322\\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.co m>
| 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.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: 206.47.190.38
| Path:
cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl!TK 2MSFTNGP08.phx. gbl!TK2MSFTNGP1 0
phx.gbl
| Xref: cpmsftngxa10.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2748 12
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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!lstrcm piw+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******@onlin e.microsoft.com > wrote in message
news:ey******** ******@cpmsftng xa10.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\\mi crosoft.net\\fr amework\\v1.1.4 322\\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.co m>
| 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.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: 206.47.190.38
| Path:
cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl!TK 2MSFTNGP08.phx. gbl!TK2MSFTNGP1 0
phx.gbl
| Xref: cpmsftngxa10.ph x.gbl
microsoft.publi c.dotnet.framew ork.aspnet:2748 12
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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!lstrcm piw+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******@onlin e.microsoft.com > wrote in message
news:ey******** ******@cpmsftng xa10.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\\mi crosoft.net\\fr amework\\v1.1.4 322\\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.co m>
| 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.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: 206.47.190.38
| Path:
cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl!TK 2MSFTNGP08.phx. gbl!TK2MSFTNGP1 0
phx.gbl
| Xref: cpmsftngxa10.ph x.gbl
microsoft.publi c.dotnet.framew ork.aspnet:2748 12
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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!lstrcm piw+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******@onlin e.microsoft.com > wrote in message
news:ey******** ******@cpmsftng xa10.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\\mi crosoft.net\\fr amework\\v1.1.4 322\\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.co m>
| 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.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: 206.47.190.38
| Path:
cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl!TK 2MSFTNGP08.phx. gbl!TK2MSFTNGP1 0
phx.gbl
| Xref: cpmsftngxa10.ph x.gbl
microsoft.publi c.dotnet.framew ork.aspnet:2748 12
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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!lstrcm piw+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.co m>
| 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.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: 206.47.190.38
| Path:
cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl!TK 2MSFTNGP08.phx. gbl!TK2MSFTNGP1 1
phx.gbl
| Xref: cpmsftngxa10.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2748 91
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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******@onlin e.microsoft.com > wrote in message
| news:ey******** ******@cpmsftng xa10.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\\mi crosoft.net\\fr amework\\v1.1.4 322\\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.co m>
| > | 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.publi c.dotnet.framew ork.aspnet
| > | NNTP-Posting-Host: 206.47.190.38
| > | Path:
| >
cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl!TK 2MSFTNGP08.phx. gbl!TK2MSFTNGP1 0
| > phx.gbl
| > | Xref: cpmsftngxa10.ph x.gbl
| > microsoft.publi c.dotnet.framew ork.aspnet:2748 12
| > | X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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!lstrcm piw+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.co m>
| 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.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: 206.47.190.38
| Path:
cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl!TK 2MSFTNGP08.phx. gbl!TK2MSFTNGP1 1
phx.gbl
| Xref: cpmsftngxa10.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2749 01
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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******@onlin e.microsoft.com > wrote in message
| news:ey******** ******@cpmsftng xa10.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\\mi crosoft.net\\fr amework\\v1.1.4 322\\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.co m>
| > | 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.publi c.dotnet.framew ork.aspnet
| > | NNTP-Posting-Host: 206.47.190.38
| > | Path:
| >
cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl!TK 2MSFTNGP08.phx. gbl!TK2MSFTNGP1 0
| > phx.gbl
| > | Xref: cpmsftngxa10.ph x.gbl
| > microsoft.publi c.dotnet.framew ork.aspnet:2748 12
| > | X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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!lstrcm piw+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******@onlin e.microsoft.com > wrote in message
news:ey******** ******@cpmsftng xa10.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\\mi crosoft.net\\fr amework\\v1.1.4 322\\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.co m>
| 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.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: 206.47.190.38
| Path:
cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl!TK 2MSFTNGP08.phx. gbl!TK2MSFTNGP1 0
phx.gbl
| Xref: cpmsftngxa10.ph x.gbl
microsoft.publi c.dotnet.framew ork.aspnet:2748 12
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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!lstrcm piw+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.co m>
| 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.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: 206.47.190.38
| Path:
cpmsftngxa10.ph x.gbl!TK2MSFTFE ED02.phx.gbl!TK 2MSFTNGP08.phx. gbl!tk2msftngp1 3
phx.gbl
| Xref: cpmsftngxa10.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2753 32
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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******@onlin e.microsoft.com > wrote in message
| news:ey******** ******@cpmsftng xa10.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\\mi crosoft.net\\fr amework\\v1.1.4 322\\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.co m>
| > | 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.publi c.dotnet.framew ork.aspnet
| > | NNTP-Posting-Host: 206.47.190.38
| > | Path:
| >
cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl!TK 2MSFTNGP08.phx. gbl!TK2MSFTNGP1 0
| > phx.gbl
| > | Xref: cpmsftngxa10.ph x.gbl
| > microsoft.publi c.dotnet.framew ork.aspnet:2748 12
| > | X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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!lstrcm piw+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
7750
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 how this would work with class objects. In this case do you have to push the object on the stack at the start of every public procedure etc. in the class and pop it off at the end? I can't see how else you can know which object is active - or...
1
4315
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. THe program creates a good number of threads. Any suggestions most welcome. Have tried following setting LD_ASSUME_KERNEL=2.2.5 disabling JIT by passing -Djava.compiler=NONE
6
2421
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, hints or advice is appreciated ;-)
13
25589
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 possible to determine the amount of memory used in the current stack? Any assistance would be appreciated. Ben
9
3394
by: shine | last post by:
what is the difference between a heap and a stack?
3
2274
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 the sequence they were called (stack) onto a file as part of the assert routine. Something like a core dump in *nix. How to implement something like this? Where do I need to look?
3
2117
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 datatable my memory utilisation increases to 120 megs. (lots of overhead) Couple of questions 1)- Is that memory increase typical? All I want to do is bind it to a datagrid. 2)- Suppose I dump it to a CSV, or SQL. Is it possible to only...
24
6605
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 the stack pointer should go upwards when there are "push" operations, and stack pointer should go downards when there are "pop" operations?? If this is the case, the address should go upwards (increasing) or downards (decreasing) then? i.e....
2
4609
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: "<type 'exceptions.AssertionError'>:"> Presumably this is because xmlrpclib on the server is catching the exception, and only sending the exception name to the client, not the server's stack trace.
0
9840
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11259
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10857
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10948
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10483
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9661
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8035
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6076
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3305
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.