Re: Paged Pool memory
On Nov 17, 12:08 pm, Harish_38 <Haris...@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
Added my comments inline :
"roger....@xxxxxxxxx" wrote:
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.
Sorry, I slightly misread your earlier email.
Stack space is a sparse commodity at kernel level.
Try to not use much stack memory for handling exceptions, as in
Volodymyr's post.
So how much stack memory is your exception handler allocating?
Regards,
Roger.
.
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) - Controlled types and exception safety
... I can classify the stack's operations by assigning them any of the above four levels, so that I know what can be expected when an exception is thrown for any reason (like inability to allocate more memory, or alike). ... For example, if the Push method of the stack gives me the strong guarantee, then I *know* that by calling this method either the new element will be appended to the stack, or the stack will remain unchanged, so that even if the exception is thrown, I don't have to worry about the stack's internal consistency. ... Since stack can be a dynamic data structure, assigning one stack object to another may involve destroying one existing data structure *and* creating a new one in its place. ... (comp.lang.ada) - Re: Stop Error: 0x0000007F (0x00000008,0x80042000,0x00000000,0x00000000)
... call to the handler for a prior exception. ... double fault. ... A kernel stack overflow. ... One of three types of problems occurred in kernel-mode: Hardware ... (microsoft.public.windowsxp.help_and_support) |
|