Description
Using the nightly image (reactos-gcc-amd64-Debug-0x502-462307282ba40a02027002370074b7de83cc3806), booting it in QEMU crashes with this error:
(/ntoskrnl/io/iomgr/driver.c:83) Deleting driver object '\Driver\KdDriver'
|
*** Assertion failed: Heap != NULL
|
*** Source File: ../src/sdk/lib/rtl/heap.c, line 119
|
I spent a few hours debugging this. I managed to find that this is happening:
ASSERT(Heap == NULL);
|
ASSERT(TotalSize != 0);
|
|
|
/* Reserve memory */
|
Status = ZwAllocateVirtualMemory(NtCurrentProcess(),
|
(PVOID *)&Heap,
|
0,
|
&TotalSize,
|
MEM_RESERVE,
|
PAGE_READWRITE);
|
|
|
if (!NT_SUCCESS(Status))
|
{
|
DPRINT1("Failed to reserve memory with status 0x%08x\n", Status);
|
return NULL;
|
}
|
|
|
ASSERT(Heap != NULL); // Fails?
|
I don't really have a clue what's going on. I added many, many asserts and prints to the kernel to try and catch the other side of this call but these prints and asserts never fired for this specific assertion. This could just be a buffering issue, but it makes me a little suspicious that the call isn't working at all?
Attachments
Issue Links
- relates to
-
CORE-20869 pciidex crash when booting in QEMU amd64
-
- Untriaged
-