Ya that I know. I was asking how I will decide what is problem or where is
the problem.
Sorry for asking this, I never debugged assembly level.
I saw below is the assembly code
…
win32k!EngMapFile:
9529e584 8bff mov edi,edi
9529e586 55 push ebp
9529e587 8bec mov ebp,esp
9529e589 56 push esi
9529e58a 57 push edi
9529e58b 684766696c push 6C696647h
9529e590 6a20 push 20h
9529e592 33ff xor edi,edi
9529e594 e856b7f0ff call win32k!PALLOCMEM (951a9cef)
9529e599 8bf0 mov esi,eax
9529e59b 3bf7 cmp esi,edi
9529e59d 742d je win32k!EngMapFile+0x48 (9529e5cc)
9529e59f 8b450c mov eax,dword ptr [ebp+0Ch]
9529e5a2 3bc7 cmp eax,edi
9529e5a4 7503 jne win32k!EngMapFile+0x25 (9529e5a9)
9529e5a6 83c8ff or eax,0FFFFFFFFh
9529e5a9 57 push edi
…
I have step through these part but not able to find out any clue.
Any suggestion will help a lot.
/sarbojit
On Tue, Aug 24, 2010 at 6:33 PM, Gabriel Bercea wrote:
> well, in windbg with the “u” (unassable command)
> u win32k!EngMapFile
> something like that it should be.
>
> On Tue, Aug 24, 2010 at 3:42 PM, Sarbojit Sarkar wrote:
>
>> Maxim said we get to know something in assembler.
>> Could you please let me know what exactly I need to check in assembler?
>>
>> I have tried all possible combinations but did not get any success.
>>
>> Even after re-installation of driver issue is reproing.
>>
>> I have googled a lot but did not get anything worth.
>>
>>
>> On Mon, Aug 23, 2010 at 6:11 PM, Sarbojit Sarkar wrote:
>>
>>> Sorry for lot of updates…
>>>
>>> Though that codding mistake (I have explained in my previous response)
>>> was there but even after putting that check driver is not able to create
>>> file using EngMapFile().
>>>
>>> But it is correct that when ever app is crashing or some error in
>>> initialization of driver is happening then only this error is coming, else
>>> it is working fine.
>>>
>>> Any help or suggestion will highly appreciable.
>>>
>>> /sarbojit
>>>
>>>
>>> On Mon, Aug 23, 2010 at 1:45 PM, Sarbojit Sarkar wrote:
>>>
>>>> Ahhh…how fool I am…
>>>>
>>>> I was doing some App level changes for my driver. At the time of
>>>> development I hit some app crashes. So at the time of app crash my driver
>>>> was not getting disable properly. But I was deleting the file without
>>>> checking whether driver is successfully unmape the file or not?
>>>>
>>>> My doubt is this situation will arise only if, we are in
>>>> DrvDisablePDEV() and still some one is using that file?[I am un-mapping and<br>>>>> deleting the file inside DrvDisablePDEV()]
>>>> But as per me, DrvDisablePDEV() should get call at the end and no one
>>>> will be using the file at that time, please correct me if I am wrong.
>>>> Should I use some lock so that we will get to know if some one is using
>>>> that file and we need to wait for unmape? Please suggest.
>>>>
>>>> /sarbojit
>>>>
>>>>
>>>> On Fri, Aug 20, 2010 at 4:23 PM, Sarbojit Sarkar >>>> > wrote:
>>>>
>>>>> I saw both processes are running at 0 level only.
>>>>>
>>>>> Any pointer or any suggestion will help a lot.
>>>>>
>>>>>
>>>>> On Fri, Aug 20, 2010 at 4:08 PM, Sarbojit Sarkar <
>>>>> xxxxx@gmail.com> wrote:
>>>>>
>>>>>> Here is the code.
>>>>>>
>>>>>> DrvEnablePDEV()
>>>>>> {
>>>>>> …
>>>>>> pVideoMemory = EngMapFile(L"\??\c:\DispBuffer.dat", sizeof(buffer),
>>>>>> &pDev->pMappedFile);
>>>>>> …
>>>>>> }
>>>>>>
>>>>>> Some times calling is getting success and some time it is failing but
>>>>>> I am not sure how to debug the issue? Even I am not able to find out what
>>>>>> are the situations when it is failing.
>>>>>>
>>>>>> I was thinking, do I need send the request with high IRQL? Just a
>>>>>> guess may be bad one :(. But I am clueless here.
>>>>>>
>>>>>> On Thu, Aug 19, 2010 at 6:59 PM, wrote:
>>>>>>
>>>>>>> give us the code sample.
>>>>>>>
>>>>>>> —
>>>>>>> NTDEV is sponsored by OSR
>>>>>>>
>>>>>>> For our schedule of WDF, WDM, debugging and other seminars visit:
>>>>>>> http://www.osr.com/seminars
>>>>>>>
>>>>>>> To unsubscribe, visit the List Server section of OSR Online at
>>>>>>> http://www.osronline.com/page.cfm?name=ListServer
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>> — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
>> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
>> the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>>
>
> — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
> the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer