64 bit printer driver problem when print to file bugcheck 0x3b..

Hi

Any help is highly appreciated…

In AMD 64 bit printer driver on Win XP 64 bit beta 1 sp 1, When I print
to file or FILE port from 64 bit application such as notepad works
fine…when printed to file from 32 bit application such as Winword.exe
It crashes the OS with BSOD of bugcheck 0x3b SYSTEM_SERVICE_EXCEPTION…

Works fine when printed to USB port or to a local file port say,
c:\test.prn

The driver passes thru the DrvEscape for the call of Extescape( ),and
later after returning from DrvEnableSurface the crash occurs…

OS Crash happens typically when FILE port is selected for printing…

Debug message from windbg shows the OS crash happens at
ntdll!zwReplyWaitRecievePort+0-x8

Below is the function stack…

ntdll!zwReplyWaitRecievePort+0-x8
splwow64!LPCConnMsgsServingThr-ead+0x96
Kernel32!BaseThreadStart+0x3a

Any more Clues pls…

The following are the Crash dump created. But this shows a different
place of crash…

I tried inserting a breakpoint at DrvStartDoc in my driver but crash
happens much before break…

************************************************************************
*******

*
*

* Bugcheck Analysis
*

*
*

************************************************************************
*******

SYSTEM_SERVICE_EXCEPTION (3b)

Arguments:

Arg1: 00000000c0000005

Arg2: fffff97fff03d9b1

Arg3: fffffadfe23b2060

Arg4: 0000000000000000

2b52f5 : fffffa8000c57d00 0000000000b05800 0000000000000000 0000000000000000 : win32k!memcpy+0x120

fffffadfe27bb880 fffff97fff2b580d : 0000000003e90040 0000000000000000 fffffadfe27bb980 fffffa8000c57d00 :
win32k!UMPDOBJ::bSendLargeBitmap+0x155

fffffadfe27bb950 fffff97fff14163b : fffffadfe27bba68 0000000000000002 fffffa8000000002 fffffa800013b020 :
win32k!UMPDDrvStartDoc+0x157

fffffadfe27bba30 fffff97fff14143a : 0000000000000001 fffffa8001fddc50 0000000000000000 0000000000000074 :
win32k!GreStartDocInternal+0x22f

fffffadfe27bbbb0 fffff80001041422 : 0000000004210655 fffffadf00000074 00000000002dcea8 fffffadf00000002 :
win32k!NtGdiStartDoc+0x365

fffffadfe27bbc70 0000000078bc7eaa : 0000000078bbc521 000000000013e5a0 0000000078bf89dc 0000000000000002 :
nt!KiSystemServiceCopyEnd+0x3

000000000013e4a8 0000000078bbc521 : 000000000013e5a0 0000000078bf89dc 0000000000000002 00000000002dcdb0 :
wow64win!NtGdiStartDoc+0xa

000000000013e4b0 0000000078be6866 : 00000000002dcd54 000000007efdd000 000000007efdb000 0000000078bf1860 :
wow64win!whNtGdiStartDoc+0x61

000000000013e510 0000000078b83c7d : 0000000000000000 0000000030b40252 0000000000374d78 0000000000000001 :
wow64!Wow64SystemServiceEx+0xd6

000000000013edd0 0000000078be6a5a : 000000007efdf000 0000000000000001 0000000000000000 000000007efdf000 :
wow64cpu!ServiceNoTurbo+0x28

000000000013ee60 0000000078be5e0d : 0000000000000000 000000000013f1a0 000000000013fab0 0000000000000000 :
wow64!RunCpuSimulation+0xa

000000000013ee90 0000000078ed8501 : 00000000001532f0 0000000000000000 000000000013fab0 0000000000000003 :
wow64!Wow64LdrpInitialize+0x2ed

000000000013f6c0 00000000001532f0 : 0000000000000000 000000000013fab0 0000000000000003 0000000000000001 :
ntdll!LdrpInitializeProcess+0x17d9

000000000013f6c8 0000000000000000 : 000000000013fab0 0000000000000003 0000000000000001 000000000013f880 : 0x1532f0

000000000013f6d0 000000000013fab0 : 0000000000000003 0000000000000001 000000000013f880 0000000000000000 : 0x0

000000000013f6d8 0000000000000003 : 0000000000000001 000000000013f880 0000000000000000 0000000000000000 : 0x13fab0

000000000013f6e0 0000000000000001 : 000000000013f880 0000000000000000 0000000000000000 000000000208004e : 0x3

000000000013f6e8 000000000013f880 : 0000000000000000 0000000000000000 000000000208004e 00000000000203f0 : 0x1

000000000013f6f0 0000000000000000 : 0000000000000000 000000000208004e 00000000000203f0 0000000000000000 : 0x13f880

000000000013f6f8 0000000000000000 : 000000000208004e 00000000000203f0 0000000000000000 0000000000000001 : 0x0

000000000013f700 000000000208004e : 00000000000203f0 0000000000000000 0000000000000001 0000000000000000 : 0x0

000000000013f708 00000000000203f0 : 0000000000000000 0000000000000001 0000000000000000 0000000000000000 : 0x208004e

000000000013f710 0000000000000000 : 0000000000000001 0000000000000000 0000000000000000 000000000013fab0 : 0x203f0

000000000013f718 0000000000000001 : 0000000000000000 0000000000000000 000000000013fab0 00000000300000e0 : 0x0

000000000013f720 0000000000000000 : 0000000000000000 000000000013fab0 00000000300000e0 00000000a0fda885 : 0x1

000000000013f728 0000000000000000 : 000000000013fab0 00000000300000e0 00000000a0fda885 0000000000540052 : 0x0

000000000013f730 000000000013fab0 : 00000000300000e0 00000000a0fda885 0000000000540052 00000000000207d8 : 0x0

000000000013f738 00000000300000e0 : 00000000a0fda885 0000000000540052 00000000000207d8 0000000000000000 : 0x13fab0

000000000013f740 00000000a0fda885 : 0000000000540052 00000000000207d8 0000000000000000 0000000000000030 : WINWORD+0xe0

000000000013f748 0000000000540052 : 00000000000207d8 0000000000000000 0000000000000030 000000000000000c : 0xa0fda885

000000000013f750 00000000000207d8 : 0000000000000000 0000000000000030 000000000000000c 0000000078f00120 : 0x540052

000000000013f758 0000000000000000 : 0000000000000030 000000000000000c 0000000078f00120 0000000000000040 : 0x207d8

000000000013f760 0000000000000030 : 000000000000000c 0000000078f00120 0000000000000040 0000000000000000 : 0x0

000000000013f768 000000000000000c : 0000000078f00120 0000000000000040 0000000000000000 0000000000000000 : 0x30

000000000013f770 0000000078f00120 : 0000000000000040 0000000000000000 0000000000000000 0000000000540052 : 0xc

000000000013f778 0000000000000040 : 0000000000000000 0000000000000000 0000000000540052 00000000000207d8 :
ntdll!RtlFreeStringRoutine+0x28

000000000013f780 0000000000000000 : 0000000000000000 0000000000540052 00000000000207d8 0000000002080028 : 0x40

000000000013f788 0000000000000000 : 0000000000540052 00000000000207d8 0000000002080028 0000000078fa44f0 : 0x0

000000000013f790 0000000000540052 : 00000000000207d8 0000000002080028 0000000078fa44f0 00000000300000e0 : 0x0

000000000013f798 00000000000207d8 : 0000000002080028 0000000078fa44f0 00000000300000e0 0000000000000014 : 0x540052

000000000013f7a0 0000000002080028 : 0000000078fa44f0 00000000300000e0 0000000000000014 0000000000000000 : 0x207d8

000000000013f7a8 0000000078fa44f0 : 00000000300000e0 0000000000000014 0000000000000000 0000000000000000 : 0x2080028

000000000013f7b0 00000000300000e0 : 0000000000000014 0000000000000000 0000000000000000 00000000000207d8 :
ntdll!_PchSym+0x10

000000000013f7b8 0000000000000014 : 0000000000000000 0000000000000000 00000000000207d8 0000000000000000 : WINWORD+0xe0

Crashes at IMAGE_NAME: win32k.sys

Thanks,

Shiva P