Hi,
srg wrote:
But the trouble I'm having is that after this, I get a page fault that something (possibly dlmalloc) is writing to 0xC above that 1MB? huh?
Either some code uses memory that it didn't allocate, or dlmalloc is buggy.
What does your OS do to handle a page fault? You need some way of getting the EIP that is pushed on the stack when a page fault occurs. Use this EIP to find the code that caused the page fault and figure out why it caused the page fault.
srg wrote:
So I get my mapper to map one more page than needed and the 0xC can then be written to.
You can't fix a bug by hiding it...
srg wrote:
But, now I get a page fault saying that something has try to write to the 0x802xxxxx region, way off my heap.
Hmm - maybe there 2 bugs!
Cheers,
Brendan