[ros-kernel] VirtualQuery problem
Mike Nordell
tamlin at algonet.se
Sat May 1 10:24:24 CEST 2004
Trying to make unhandled exceptions display the module names for the traced
stack frames (for debug builds), I've stumbled over an error. Since I'm
about to hibernate, perhaps someone else could have a look at it?
The error is as follow:
Module (executable) loaded at usual load addr (0x400000).
VirtualQuery for an address inside this modules mapped address space, say
0x411000, returns a faulty MEMORY_BASIC_INFORMATION.AllocationBase.
I have traced it to MmQuerySectionView in ntoskrnl\mm\section.c, called from
NtQueryVirtualMemory, but there my research ends. The error is that the code
sets both BaseAddress and AllocationBase to the same value. This is wrong.
AllocationBase is to be the first address of the module, i.e. the HMODULE of
it - its load address.
I suspect a call to NtQuerySection or something would be in place, but I
don't really know this area well enough to put the finishing touch to the
correction, why I was hoping someone else might provide some insight or
commit the fix for it.
/Mike
More information about the Ros-kernel
mailing list