Re: Driver verifier cause SYSTEM_SERVICE_EXCEPTION



you need to set the tmf file as well

http://www.microsoft.com/whdc/driver/tips/KMDF_IfrLog.mspx

d

--

This posting is provided "AS IS" with no warranties, and confers no rights.


"dLopesp" <dLopesp@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:4C3CAEF2-2F94-4336-912C-1CF14242C448@xxxxxxxxxxxxxxxx
Hi Mr. Holan,

thanks for your quick response.

I used the command you sugested and bellow is the output:

Trace searchpath is:

Trace format prefix is: %7!u!: %!FUNC! -
Log at fffffa80039ae000
Gather log: Please wait, this may take a moment (reading 4024 bytes).
% read so far ... 10, 20, 30, 40, 50, 60, 70, 80, 90, 100
There are 82 log entries
--- start of log ---
Unknown( 16): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
Unknown( 16): GUID=1caf31a2-86ce-4f10-cf8f-6f2c7a30df90 (No Format
Information found).
Unknown( 16): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
Unknown( 16): GUID=1caf31a2-86ce-4f10-cf8f-6f2c7a30df90 (No Format
Information found).
Unknown( 16): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
Unknown( 16): GUID=1caf31a2-86ce-4f10-cf8f-6f2c7a30df90 (No Format
Information found).
Unknown( 16): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
Unknown( 16): GUID=1caf31a2-86ce-4f10-cf8f-6f2c7a30df90 (No Format
Information found).
Unknown( 16): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
Unknown( 16): GUID=1caf31a2-86ce-4f10-cf8f-6f2c7a30df90 (No Format
Information found).
Unknown( 16): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
Unknown( 16): GUID=1caf31a2-86ce-4f10-cf8f-6f2c7a30df90 (No Format
Information found).
Unknown( 16): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
Unknown( 16): GUID=1caf31a2-86ce-4f10-cf8f-6f2c7a30df90 (No Format
Information found).
Unknown( 16): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
Unknown( 16): GUID=1caf31a2-86ce-4f10-cf8f-6f2c7a30df90 (No Format
Information found).
Unknown( 16): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
Unknown( 16): GUID=1caf31a2-86ce-4f10-cf8f-6f2c7a30df90 (No Format
Information found).
Unknown( 16): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
Unknown( 16): GUID=1caf31a2-86ce-4f10-cf8f-6f2c7a30df90 (No Format
Information found).
Unknown( 16): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
Unknown( 16): GUID=1caf31a2-86ce-4f10-cf8f-6f2c7a30df90 (No Format
Information found).
Unknown( 16): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
Unknown( 16): GUID=1caf31a2-86ce-4f10-cf8f-6f2c7a30df90 (No Format
Information found).
Unknown( 16): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
Unknown( 16): GUID=1caf31a2-86ce-4f10-cf8f-6f2c7a30df90 (No Format
Information found).
Unknown( 16): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
Unknown( 16): GUID=1caf31a2-86ce-4f10-cf8f-6f2c7a30df90 (No Format
Information found).
Unknown( 16): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
Unknown( 16): GUID=1caf31a2-86ce-4f10-cf8f-6f2c7a30df90 (No Format
Information found).
Unknown( 16): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
Unknown( 16): GUID=1caf31a2-86ce-4f10-cf8f-6f2c7a30df90 (No Format
Information found).
Unknown( 10): GUID=7e9e3c8b-7fe5-c525-ca75-47219e4993c5 (No Format
Information found).
Unknown( 10): GUID=7e9e3c8b-7fe5-c525-ca75-47219e4993c5 (No Format
Information found).
Unknown( 10): GUID=7e9e3c8b-7fe5-c525-ca75-47219e4993c5 (No Format
Information found).
Unknown( 16): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
Unknown( 16): GUID=1caf31a2-86ce-4f10-cf8f-6f2c7a30df90 (No Format
Information found).
Unknown( 16): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
Unknown( 16): GUID=1caf31a2-86ce-4f10-cf8f-6f2c7a30df90 (No Format
Information found).
Unknown( 54): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
Unknown( 43): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
Unknown( 22): GUID=d853ac48-4412-6b4c-be08-9d799cc648d5 (No Format
Information found).
Unknown( 17): GUID=d853ac48-4412-6b4c-be08-9d799cc648d5 (No Format
Information found).
Unknown( 15): GUID=d853ac48-4412-6b4c-be08-9d799cc648d5 (No Format
Information found).
Unknown( 14): GUID=c4e355a7-b1c6-ea51-4643-ac0d68aab41f (No Format
Information found).
Unknown( 10): GUID=7e9e3c8b-7fe5-c525-ca75-47219e4993c5 (No Format
Information found).
Unknown( 10): GUID=7e9e3c8b-7fe5-c525-ca75-47219e4993c5 (No Format
Information found).
Unknown( 10): GUID=7e9e3c8b-7fe5-c525-ca75-47219e4993c5 (No Format
Information found).
Unknown( 30): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
Unknown( 38): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
Unknown( 43): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
Unknown( 10): GUID=7e9e3c8b-7fe5-c525-ca75-47219e4993c5 (No Format
Information found).
Unknown( 10): GUID=7e9e3c8b-7fe5-c525-ca75-47219e4993c5 (No Format
Information found).
Unknown( 16): GUID=a68a9821-4dfa-0a64-3d8b-36aeeb2c7643 (No Format
Information found).
Unknown( 12): GUID=f6d0e5aa-328d-ff58-85ef-ec2ab5d86cdb (No Format
Information found).
Unknown( 15): GUID=a68a9821-4dfa-0a64-3d8b-36aeeb2c7643 (No Format
Information found).
Unknown( 33): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
Unknown( 38): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
Unknown( 48): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
Unknown( 22): GUID=d853ac48-4412-6b4c-be08-9d799cc648d5 (No Format
Information found).
Unknown( 17): GUID=d853ac48-4412-6b4c-be08-9d799cc648d5 (No Format
Information found).
Unknown( 15): GUID=d853ac48-4412-6b4c-be08-9d799cc648d5 (No Format
Information found).
Unknown( 14): GUID=c4e355a7-b1c6-ea51-4643-ac0d68aab41f (No Format
Information found).
Unknown( 10): GUID=7e9e3c8b-7fe5-c525-ca75-47219e4993c5 (No Format
Information found).
Unknown( 10): GUID=7e9e3c8b-7fe5-c525-ca75-47219e4993c5 (No Format
Information found).
Unknown( 10): GUID=7e9e3c8b-7fe5-c525-ca75-47219e4993c5 (No Format
Information found).
Unknown( 30): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
Unknown( 10): GUID=7e9e3c8b-7fe5-c525-ca75-47219e4993c5 (No Format
Information found).
Unknown( 54): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
Unknown( 10): GUID=7e9e3c8b-7fe5-c525-ca75-47219e4993c5 (No Format
Information found).
Unknown( 16): GUID=a68a9821-4dfa-0a64-3d8b-36aeeb2c7643 (No Format
Information found).
Unknown( 43): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
Unknown( 12): GUID=f6d0e5aa-328d-ff58-85ef-ec2ab5d86cdb (No Format
Information found).
Unknown( 15): GUID=a68a9821-4dfa-0a64-3d8b-36aeeb2c7643 (No Format
Information found).
Unknown( 33): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
Unknown( 38): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
Unknown( 48): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
Unknown( 25): GUID=d853ac48-4412-6b4c-be08-9d799cc648d5 (No Format
Information found).
Unknown( 60): GUID=d853ac48-4412-6b4c-be08-9d799cc648d5 (No Format
Information found).
Unknown( 25): GUID=d853ac48-4412-6b4c-be08-9d799cc648d5 (No Format
Information found).
Unknown( 69): GUID=d853ac48-4412-6b4c-be08-9d799cc648d5 (No Format
Information found).
Unknown( 27): GUID=2a2c199c-91c5-789b-5be5-54ee54f37d48 (No Format
Information found).
---- end of log ----

It looks like there is nothing usefull there.

We do not use WdfRequestMarkCancelable in our code, but there are queues
which are created using queueConfig.EvtIoCanceledOnQueue parameter set. Does
that matter?


"Doron Holan [MSFT]" wrote:

!wdfkd.wdflogdump mydriver

will tell you why you are hitting a hard coded bp in KMDF. are you forwaring
a request that has a cancel routine assigned to it (e.g. you called
WdfRequestMarkCancelable?)

d

--

This posting is provided "AS IS" with no warranties, and confers no rights.


"dLopesp" <dLopesp@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:115BAD9C-9C2D-41DE-BFB0-D2BFF2FE12A8@xxxxxxxxxxxxxxxx
> Bellow it the !analyze -v output, thanks in advance.
>
> BugCheck 3B, {80000003, fffff80001851b10, fffffa60048f8b60, 0}
>
> Unable to load image \SystemRoot\system32\DRIVERS\mydriver.sys, Win32
> error
> 0n2
> *** WARNING: Unable to verify timestamp for mydriver.sys
> Probably caused by : mydriver.sys (
> mydriver!MyDriverRequestForwardToQueue+df )
>
> Followup: MachineOwner
> ---------
>
> 1: kd> !analyze -v
> *******************************************************************************
> *
> *
> * Bugcheck Analysis
> *
> *
> *
> *******************************************************************************
>
> SYSTEM_SERVICE_EXCEPTION (3b)
> An exception happened while executing a system service routine.
> Arguments:
> Arg1: 0000000080000003, Exception code that caused the bugcheck
> Arg2: fffff80001851b10, Address of the exception record for the > exception
> that caused the bugcheck
> Arg3: fffffa60048f8b60, Address of the context record for the exception
> that
> caused the bugcheck
> Arg4: 0000000000000000, zero.
>
> Debugging Details:
> ------------------
>
>
> EXCEPTION_CODE: (HRESULT) 0x80000003 (2147483651) - Um ou mais > argumentos
> s
> o inv lidos
>
> FAULTING_IP:
> nt!DbgBreakPoint+0
> fffff800`01851b10 cc int 3
>
> CONTEXT: fffffa60048f8b60 -- (.cxr 0xfffffa60048f8b60)
> rax=0000000000000000 rbx=fffffa80022355c0 rcx=fffffa8001f409f8
> rdx=0000000000000000 rsi=0000000000000008 rdi=fffffa80018e2540
> rip=fffff80001851b10 rsp=fffffa60048f93c8 rbp=0000057ffe71c428
> r8=0000000000000000 r9=0000000000000000 r10=fffffa8001f40000
> r11=fffffa8001f409f8 r12=0000000000000002 r13=fffffa80023eab70
> r14=0000000000000000 r15=0000000000000000
> iopl=0 nv up ei pl nz na pe nc
> cs=0010 ss=0018 ds=002b es=002b fs=0053 gs=002b
> efl=00000202
> nt!DbgBreakPoint:
> fffff800`01851b10 cc int 3
> Resetting default scope
>
> CUSTOMER_CRASH_COUNT: 4
>
> DEFAULT_BUCKET_ID: COMMON_SYSTEM_FAULT
>
> BUGCHECK_STR: 0x3B
>
> PROCESS_NAME: DetectorsServer
>
> CURRENT_IRQL: 2
>
> LAST_CONTROL_TRANSFER: from fffffa600087953c to fffff80001851b10
>
> STACK_TEXT:
> fffffa60`048f93c8 fffffa60`0087953c : fffffa80`023eab02 > fffffa80`02235502
> fffffa80`02235500 fffffa80`023e001b : nt!DbgBreakPoint
> fffffa60`048f93d0 fffffa60`0083c55f : 0000057f`fe01f7e8 > fffffa80`023eab70
> fffffa80`018e2540 0000057f`fe71c428 :
> Wdf01000!FxIoQueue::ForwardRequest+0x328
> fffffa60`048f9460 fffffa60`02d9c927 : 0000057f`fe71dab8 > 00000000`00000000
> 0000057f`fe71dab8 fffffa80`018e2540 :
> Wdf01000!imp_WdfRequestForwardToIoQueue+0x10f
> fffffa60`048f94d0 fffffa60`02d9b3f6 : 0000057f`fe71da01 > fffffa80`0264d500
> 00000000`0000004e 00000000`0000004e :
> mydriver!MyDriverRequestForwardToQueue+0xdf [d:\code.c @ 923]
> fffffa60`048f9530 fffffa60`02db059e : 0000057f`fe71dab8 > 00000000`0000004e
> 0000057f`fddcaa38 fffffa80`024f7890 :
> mydriver!MyDriverProcessSpecificIoctl+0x2da [d:\code.c @ 930]
> fffffa60`048f95c0 fffffa60`0087c0b9 : fffffa80`018e2540 > 00000000`00000008
> 0000057f`fddcaa38 fffffa80`023e0030 :
> mydriver!MyDriverDeviceEvtIoDeviceControl+0x47a [d:\code.c @ 103]
> fffffa60`048f9640 fffffa60`0087b59e : 0000057f`fe71dab8 > 0000057f`fe71dab8
> fffffa80`023eab70 fffffa80`018e2540 :
> Wdf01000!FxIoQueue::DispatchRequestToDriver+0x6d9
> fffffa60`048f96e0 fffffa60`0087a8b6 : fffffa80`022355c0 > 00000000`00000000
> fffffa80`02235500 fffffa80`02000021 :
> Wdf01000!FxIoQueue::DispatchEvents+0x83e
> fffffa60`048f9840 fffffa60`00881998 : fffffa80`0238a000 > fffffa80`0238a010
> 0000057f`fddcaa38 0000057f`fe71dab8 :
> Wdf01000!FxIoQueue::QueueRequest+0x4a6
> fffffa60`048f98f0 fffffa60`00865865 : 00000000`c269200e > fffffa80`018e2540
> fffffa80`0238a010 fffffa80`02162730 : Wdf01000!FxPkgIo::Dispatch+0x718
> fffffa60`048f99c0 fffff800`01adc78a : fffffa80`020ed470 > fffffa80`02162730
> fffffa80`020ed470 00000000`00000001 : Wdf01000!FxDevice::Dispatch+0xa9
> fffffa60`048f99f0 fffff800`01af5706 : 00000000`024ee818 > 00000000`00000280
> 00000000`00000001 00000000`025ee654 : nt!IopXxxControlFile+0x5da
> fffffa60`048f9b40 fffff800`018570f3 : fffffa80`0228fa70 > 00000000`024ee7f8
> fffffa60`048f9bc8 00000000`75b36e00 : nt!NtDeviceIoControlFile+0x56
> fffffa60`048f9bb0 00000000`75a2385e : 00000000`00000000 > 00000000`00000000
> 00000000`00000000 00000000`00000000 : nt!KiSystemServiceCopyEnd+0x13
> 00000000`024ef0a8 00000000`00000000 : 00000000`00000000 > 00000000`00000000
> 00000000`00000000 00000000`00000000 : 0x75a2385e
>
>
> FOLLOWUP_IP:
> mydriver!MyDriverRequestForwardToQueue+df [d:\code.c @ 923]
> fffffa60`02d9c927 ?? ???
>
> FAULTING_SOURCE_CODE:
> 919:
> 920: pRequestContext->timeToLive = 30;
> 921:
> 922: status = WdfRequestForwardToIoQueue(request,
> pDeviceContext->ioctlQ);
>> 923: if(!NT_SUCCESS(status))
> 924: {
> 925: LOG_CRITICAL("MyDriverRequestForwardToQueue: Failed to > send
> request to ioctlQ\n");
> 926: WdfRequestCompleteWithInformation(request,
> 927: status,
> 928: (ULONG_PTR) 0);
>
>
> SYMBOL_STACK_INDEX: 3
>
> SYMBOL_NAME: mydriver!MyDriverRequestForwardToQueue+df
>
> FOLLOWUP_NAME: MachineOwner
>
> MODULE_NAME: mydriver
>
> IMAGE_NAME: mydriver.sys
>
> DEBUG_FLR_IMAGE_TIMESTAMP: 4a0b0326
>
> STACK_COMMAND: .cxr 0xfffffa60048f8b60 ; kb
>
> FAILURE_BUCKET_ID: X64_0x3B_mydriver!MyDriverRequestForwardToQueue+df
>
> BUCKET_ID: X64_0x3B_mydriver!MyDriverRequestForwardToQueue+df
>
> Followup: MachineOwner
> ---------
>
>
> "Doron Holan [MSFT]" wrote:
>
>> output of !analyze -v would be helpful, as would the offending source
>>
>> d
>>
>> -- >>
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>>
>> "dLopesp" <dLopesp@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:115FD7C4-FC43-4526-B1AE-A34CB5B88FF7@xxxxxxxxxxxxxxxx
>> > Hi guys,
>> >
>> > I'm running the framework's verifier on my KMDF driver by enabling >> > it
>> > on
>> > regedit (VerifierOn key with value 1).
>> > The verifier seems to be running ok.
>> > The problem is that when the driver receives its first IOCTL and it >> > is
>> > about
>> > to complete or even forward this request a BSOD is reported.
>> > If the IOCTL is to be completed the BSOD is reported with
>> > SYSTEM_SERVICE_EXCEPTION bug check code.
>> > Otherwise, if the IOCTL is to be forwarded the BSOD is completed >> > with
>> > the
>> > KERNEL_MODE_EXCEPTION_NOT_HANDLED_M bug check code.
>> > My driver has one main device which is registered for receiving all
>> > requests
>> > and it is responsible for forwarding those requests to the specific
>> > device
>> > acording to the board ID.
>> >
>> > Any thoughts on that?
>> > Thanks in advance,
>> > Douglas
>>
>>

.



Relevant Pages

  • No rights to report server bin folder
    ... rights to the folder but I still get the same problem. ... Exception Details: System.UnauthorizedAccessException: Access to the path ... granting access rights to the resource to the ASP.NET request identity. ... System.IO.Directory.GetDirectories(String path, String searchPattern) ...
    (microsoft.public.inetserver.iis.security)
  • Re: Web Enrollment pages on another computer
    ... This posting is provided "AS IS" with no warranties, and confers no rights ... >>> Your request failed. ...
    (microsoft.public.win2000.security)
  • Re: how to use CRITICAL_SECTION???
    ... exception under some condirtions, ... (This posting is provided "AS IS" with no warranties, and confers no ... void sample::test ...
    (microsoft.public.win32.programmer.kernel)
  • Re: raising IRQL to an invalid level
    ... If you want to get another request started as soon as possible, ... different cancel routine that knows how to synchronize with the ISR). ... This posting is provided "AS IS" with no warranties, and confers no rights. ...
    (microsoft.public.development.device.drivers)
  • Re: Redirect to default page using Windows Authentication
    ... Can you not redirect to a custom error page for 401 errors? ... > This post is provided as-is with no warranties and confers no rights. ... but I'm not even sure if the Http Request will ...
    (microsoft.public.dotnet.framework.aspnet.security)