Tom's Hardware > Forum > Windows XP > Device Driver > MmUnmapLockedPages causing Bugcheck B8

MmUnmapLockedPages causing Bugcheck B8

Forum Windows XP : Device Driver - MmUnmapLockedPages causing Bugcheck B8

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: microsoft.public.development.device.drivers,microsoft.public.windowsxp.device_driver.dev (More info?)

 

Hello Guys
My MmunMapLockedPages in IoCompletion routine is giving me Bugcheck B8 with
all the Args being NULL.
and moreever this happens only when the File system is NTFS.
Any ideas on how to proceed?
Has anyone come across these...

Sample code is as follows...

ASSERT((ewData->User)!=NULL);
ASSERT(Irp->MdlAddress!=NULL);
__try{
MmUnmapLockedPages(ewData->User, Irp->MdlAddress);
}
__except (EXCEPTION_EXECUTE_HANDLER)
{
KdPrint(("\nError in MmUnmapLockedPages" ));
}

Regards
Shal

Sponsored Links
Register or log in to remove.

Archived from groups: microsoft.public.development.device.drivers,microsoft.public.windowsxp.device_driver.dev (More info?)

 

Can you attach the kernel debugger to the machine and send the callstack of
the thread that is bugchecking. A B8 bugcheck is a ATTEMPTED_SWITCH_FROM_DPC
(b8) bugcheck. The callstack should show the offending driver.

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Shalini" <kandukondein@NOSPAMyahoo.com> wrote in message
news:eiN3EBSXEHA.2964@TK2MSFTNGP09.phx.gbl...
> Hello Guys
> My MmunMapLockedPages in IoCompletion routine is giving me Bugcheck B8
> with
> all the Args being NULL.
> and moreever this happens only when the File system is NTFS.
> Any ideas on how to proceed?
> Has anyone come across these...
>
> Sample code is as follows...
>
> ASSERT((ewData->User)!=NULL);
> ASSERT(Irp->MdlAddress!=NULL);
> __try{
> MmUnmapLockedPages(ewData->User, Irp->MdlAddress);
> }
> __except (EXCEPTION_EXECUTE_HANDLER)
> {
> KdPrint(("\nError in MmUnmapLockedPages" ));
> }
>
> Regards
> Shal
>
>

Reply to Anonymous

Archived from groups: microsoft.public.development.device.drivers,microsoft.public.windowsxp.device_driver.dev (More info?)

 

This means the OP calls unmap for user space address from a DPC.

"Jonathan Morrison [MSFT]" <jonathanm@mindspring.com> wrote in message
news:O5SKHeSXEHA.1048@tk2msftngp13.phx.gbl...
> Can you attach the kernel debugger to the machine and send the callstack
of
> the thread that is bugchecking. A B8 bugcheck is a
ATTEMPTED_SWITCH_FROM_DPC
> (b8) bugcheck. The callstack should show the offending driver.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> Use of any included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm
> "Shalini" <kandukondein@NOSPAMyahoo.com> wrote in message
> news:eiN3EBSXEHA.2964@TK2MSFTNGP09.phx.gbl...
> > Hello Guys
> > My MmunMapLockedPages in IoCompletion routine is giving me Bugcheck B8
> > with
> > all the Args being NULL.
> > and moreever this happens only when the File system is NTFS.
> > Any ideas on how to proceed?
> > Has anyone come across these...
> >
> > Sample code is as follows...
> >
> > ASSERT((ewData->User)!=NULL);
> > ASSERT(Irp->MdlAddress!=NULL);
> > __try{
> > MmUnmapLockedPages(ewData->User, Irp->MdlAddress);
> > }
> > __except (EXCEPTION_EXECUTE_HANDLER)
> > {
> > KdPrint(("\nError in MmUnmapLockedPages" ));
> > }
> >
> > Regards
> > Shal
> >
> >
>
>

Reply to Anonymous
Tom's Hardware > Forum > Windows XP > Device Driver > MmUnmapLockedPages causing Bugcheck B8
Go to:

There are 1175 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them