Re: Paged Pool memory



On Nov 17, 10:16 am, Harish_38 <Haris...@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
When the exception is translated i can see that the exception code is
X_E_NOT_ENOUGH_MEMORY. That explains the orgin of Exception.
This can be a common problem( low resources ).

The problem for crash is stack overflow and i trying to find the reason for
that as this is an uncommon. The exception handling mechanism is allocating
lot of memory(like u said) on the stack and ultimately the stack overflows
before the exception is completely handled.

That's the trouble.

Exception 1 -- caused by original out of memory
Goes into exception handler
tries to allocate lots of memory
fails -- throws another nested exception
Exception 2 -- further down the stack
Goes into exception handler
tries to allocate lots of memoryt
fails...

repeat until no stack left :-)

.



Relevant Pages

  • Re: x86 exception handling and stack demand
    ... When an exception occurs that will be passed down to user mode as an SEH exception, the kernel arranges for control to return to user mode at a special function in NTDLL, with several parameters on the stack containing information about the exception. ... In XP and later, the system stores a pointer to the initial stack allocation block in the TEB that is used by the kernel to decommit the stack via NtFreeVirtualMemory when the thread is terminated in a non-graceful fashion, closing this leak. ...
    (microsoft.public.win32.programmer.kernel)
  • [PATCH] x86: style fascism for xen assemblies
    ... * a view to being able to inline as much as possible. ... push %eax ... * This is run where a normal iret would be run, with the same stack setup: ... In order to deliver the nested exception properly, ...
    (Linux-Kernel)
  • RE: System.AccessViolationException in .NET 2.0 application
    ... Based on the call stack, there is an AV exception in the ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.general)
  • Re: How to recover from a EXCEPTION_STACK_OVERFLOW?
    ... Reduce the amount of local variables in your exception handling, ... the handling to fit in what little stack is available. ... from a stack overflow can be difficult and unreliable. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Stack Overflow crash while inserting in std::map after migration to VS2005 (VC8)
    ... A first-chance exception ... Any time you see a stack overflow exception, it's a problem - first chance, ...
    (microsoft.public.vc.stl)

Loading