Re: Unhandled exception when pushing esi



`!thread' will tell you about the stack region for a particular thread
(assuming you have enough information saved in your dump file).

By default, non-GUI threads will have around 12K of kernel stack on x86
systems, I believe. If you need to check this at runtime, there is an
`IoGetRemainingStackSize' call that you can use in kernel mode.

"Oracle" <wong.kam.keung@xxxxxxxxx> wrote in message
news:1148763290.206786.302740@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Ivan,

Is there a way that I can check the currently used stack size for that
thread in the dump file? What will be the usual size limit for a kernel
stack for a thread?

Thanks for any advice.

Ivan Brugiolo [MSFT] wrote:
My wild guess would be that you have exhausted the kernel stack
for that thread, by either creating a large on-the-stack variable,
of, by calling some _alloca() derivative function.



.



Relevant Pages

  • Re: Propose for Several Dump types
    ... >>In a minidump, Register info, plus the crash stack is enough. ... > Make it an EVENTHANDLERand dump it in ascii format. ... Don't think the ascii format is a good choose. ... stack in the userland with the kernel file and kernel symbol. ...
    (freebsd-arch)
  • Re: IE not starting
    ... You chopped the dump too soon. ... the Raw Stack Dump the words they display may be clues too. ... If you can get full symbols in your Stack Back Trace you would ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Msimn.exe Has Generated Errors and Will Be Closed by Windows - Knowledge base no help!!!
    ... It's not just any Stack Back Trace you want to see. ... section in the dump below those interpreted instructions. ... >>> and message rules may have to be edited to point to correct mail folders and you will lose all subscribed newsgroups. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Problem with code that inspects thread context and dumps stack trace
    ... It doesn't do a dump of all threads, ... "please dump your context" lock. ... You might also consider making the canonical order stack contain the thread ID of the ... >BOOL InitImagehlpFunctions(HANDLE hProcess, PSTR szPath) ...
    (microsoft.public.vc.mfc)
  • [PATCH] x86-64: improve the format of stack dumps
    ... Improve the format of stack dumps for x86-64. ... (similar to other arches) ... No duplicate register dump on RIP line. ... unsigned *usedp, const char **idp) ...
    (Linux-Kernel)