Re: ZwCreateFile causes an UNEXPECTED_KERNEL_MODE_TRAP

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Mark Roddy (markr_at_hollistech.com)
Date: 05/17/04


Date: Mon, 17 May 2004 18:05:43 -0400

If your open of a disk device was successful then the disk driver is up and
running. If you use windbg and !analyze it will give the stack trace from
the thread that threw the exception in addition to the stack trace of the
exception handler.

You don't use dependencies in drivers, for the most part. In addition to
being poorly documented for kernel mode, they are obsolete for pnp enabled
devices. Any device with a device interface can be a candidate for the well
documented pnp notification mechanisms. At worst you can simply poll for the
device of interest. See IoRegisterPlugPlayNotification.

-- 
=====================
Mark Roddy
Windows 2003/XP/2000 Consulting
Hollis Technology Solutions 603-321-1032
www.hollistech.com
markr@hollistech.com
"Olivier Antoine" <o.antoine@deltatec.be> wrote in message
news:51444C61-E186-4D75-BD61-559DC2611589@microsoft.com...
> I don't think so... I think the breakpoint instruction one can see in the
bug check analysis is the one from the exception handling code of the
kernel, since it is a "double fault" bugcheck code.
>
> My question is simple : how can I set up a dependencies for my driver to
wait for the disk manager to be up before being loaded? The Dependencies
entry in the INF files is not that much documented in the DDK help...
>
>      ----- prokash wrote: -----
>
>      When the bugcheck occured, did you have a kernel debugger hooked up
?. If not, then it seems like you an embedded breakpoint, sort of
KdBreakPoint(), DbgBreak*() or some sort. Are you running the Debug build of
your driver ?
>
>      -pro


Relevant Pages

  • Re: 2.6.23-rc4-mm1 OOPS in forcedeth?
    ... # Generic Driver Options ... # PCI IDE chipsets support ... # SCSI support type (disk, tape, CD-ROM) ...
    (Linux-Kernel)
  • Re: SUSE 9.2: SoftRAID infinte sync!
    ... Use a different kernel or softraid driver. ... Setup sw raid on an already ... the order of write requests hitting the disk matches the order of write ...
    (comp.os.linux.setup)
  • sata_nv + SMP = broken?
    ... the sata driver would randomly hang after a bit of disk ... Hereby come extra info about the machine and kernel configuration (the ... # ACPI Support ...
    (Linux-Kernel)
  • Re: Optimum page file size for 1 GB?
    ... your filesystem driver may be screwed all over ... you are talking about kernel crashes! ... and save an application dump for postmortem debugging. ... The right way to do this is to not touch the disk at all after akernel ...
    (comp.sys.ibm.pc.hardware.storage)
  • Re: Is RPMfusion on strike? [SOLVED -- at least for me]
    ... installed the new update for kernel 2.6.29.6-217.2.8.fc11.x86_64. ... Can you boot under one of the kernels? ... down the NVIDIA Driver Version: so you have it handy if things go south. ... dependencies that need to be removed will be included. ...
    (Fedora)