[RESOLVED] Win2008/Win2008R2: LPQ.exe crashes when starting up - heap corruption in lpq!main+0x2d4

Status: Resolved

Update 120417: Persistence pays off... ;) Finally I've got this hotfix approved, and committed for release in June timeframe (REL12-06, KB2701239)! Resolving this issue now.

Yesterday I noticed an lpq.exe-related crash case in our queue. When I had a look at the dump, I noticed we now have three customers hitting this problem, both on Win2008 and on Win2008R2. I am curious to see if any other people are hitting this as well, since we do not have filed a hotfix request for this yet.

The dump shows the service is just starting up, and crashes with a heap corruption:

FAILURE_BUCKET_ID: STATUS_HEAP_CORRUPTION_AFTER_CALL_c0000374_lpq.exe!main

0:000> knL
  *** Stack trace for last set context - .thread/.cxr resets it
 # Child-SP RetAddr Call Site
00 00000000`0023f760 00000000`76e04736 ntdll!RtlReportCriticalFailure+0x62
01 00000000`0023f830 00000000`76e05942 ntdll!RtlpReportHeapFailure+0x26
02 00000000`0023f860 00000000`76e075f4 ntdll!RtlpHeapHandleError+0x12
03 00000000`0023f890 00000000`76dadcb7 ntdll!RtlpLogHeapFailure+0xa4
04 00000000`0023f8c0 000007fe`fcfb1582 ntdll!RtlFreeHeap+0x1aab7
05 00000000`0023f940 00000000`ff20147c KERNELBASE!LocalFree+0x2e
06 00000000`0023f980 00000000`ff201659 lpq!main+0x2d4
07 00000000`0023f9e0 00000000`76c3652d lpq!__mainCRTStartup+0x13d
08 00000000`0023fa20 00000000`76d6c521 kernel32!BaseThreadInitThunk+0xd
09 00000000`0023fa50 00000000`00000000 ntdll!RtlUserThreadStart+0x1d

If you see this issue as well, drop me a mail and create a case with us please!