Windows 10: How to find out why my kernel driver is hanging the system.

Discus and support How to find out why my kernel driver is hanging the system. in Windows 10 Drivers and Hardware to solve the problem; I wrote a kernel driver that uses IoConnectInterrupt to register a handler for an interrupt vector. If I don't actually enable interrupts on the... Discussion in 'Windows 10 Drivers and Hardware' started by mrolle, Dec 25, 2017.

  1. mrolle Win User

    How to find out why my kernel driver is hanging the system.


    I wrote a kernel driver that uses IoConnectInterrupt to register a handler for an interrupt vector. If I don't actually enable interrupts on the hardware, no problem, but with interrupts enabled, the system freezes after a short time. I can't use the mouse or keyboard, not even ctrl-alt-delete. So I have to pull the plug on my PC in order to reboot. There's no minidump.
    My question is, what tools can I use to find out what's wrong when the freeze occurs?
    Any help would be greatly appreciated.
    I've posted another thread about the strategy I use to select the parameters for the IoConnectInterrupt call, so if there's an answer there that solves the problem, then I won't need an answer to the present thread. However, an answer might be useful to someone else anyway.

    :)
     
    mrolle, Dec 25, 2017
    #1
  2. Resourceful, Dec 25, 2017
    #2
  3. pctinker Win User
    how do i find out what operating system is in the dell axim x50v/x51v?

    I used to be able to find out that info but have forgotten how to do it? Can anyone tell me?
     
    pctinker, Dec 25, 2017
    #3
  4. zbook New Member

    How to find out why my kernel driver is hanging the system.

    What happens when the computer is in safe mode?
    What happens when the computer is in clean boot?

    If you can use safe mode or clean boot then you may be able to have testing options on the next boot.

    Without keyboard and mouse the options are very limited.

    This tool can be used for boot problems but you will need to use keyboard/mouse to set it up.
    Windows performance recorder - Microsoft Community

    Microsoft Systernals are additional troubleshooting options.
    They also typically require the use of the keyboard/mouse.
    Windows Sysinternals - Windows Sysinternals | Microsoft Docs
     
    zbook, Dec 25, 2017
    #4
  5. mrolle Win User
    Thanks.

    In safe mode, I can't run my driver, so I can't reproduce the problem.

    I don't know what you mean by a "clean boot." If you mean just a normal bootup, then I am doing that already, except that I am running with DSE disabled so that I can run my (unsigned) driver.

    I was hoping for a way to tell the system to do a bug check when it gets hung up, perhaps to define a hot key to do it manually. Or even to take a minidump when I cut off the power or hit the reset button on the computer.

    Or a tool that can run in the background and periodically snapshot the kernel to a file that I can analyze later?

    Also, you have any comments re my other post today about what my driver is doing that leads to the hangup?
     
    mrolle, Dec 26, 2017
    #5
  6. zbook New Member
  7. mrolle Win User
    I've found another answer. That is to manually cause a bugcheck from the keyboard. Details are at Forcing a System Crash from the Keyboard | Microsoft Docs.
    The article mentions that if whatever is spinning in the system is at a higher priority than the keyboard driver, the keyboard driver won't get a chance to crash the system.
     
    mrolle, Apr 5, 2018
    #7
Thema:

How to find out why my kernel driver is hanging the system.

Loading...
  1. How to find out why my kernel driver is hanging the system. - Similar Threads - find why kernel

  2. How to find out my laptop?

    in Windows 10 Gaming
    How to find out my laptop?: Today is my laptop stolen https://answers.microsoft.com/en-us/windows/forum/all/how-to-find-out-my-laptop/5fb32754-7d3b-4ca5-99b3-09214a7c1714
  3. How to find out my laptop?

    in Windows 10 Software and Apps
    How to find out my laptop?: Today is my laptop stolen https://answers.microsoft.com/en-us/windows/forum/all/how-to-find-out-my-laptop/5fb32754-7d3b-4ca5-99b3-09214a7c1714
  4. my system crashed for no reason how do i find out why?where is the log for that

    in Windows 10 BSOD Crashes and Debugging
    my system crashed for no reason how do i find out why?where is the log for that: Log Name: System Source: Microsoft-Windows-Kernel-Power Date: 07/08/1402 09:34:12 ق.ظ Event ID: 41 Task Category: 63 Level: Critical Keywords: 70368744177664,2 User: SYSTEM Computer: ShadowSH Description: The system has rebooted without cleanly shutting down first. This error...
  5. my system crashed for no reason how do i find out why?where is the log for that

    in Windows 10 Gaming
    my system crashed for no reason how do i find out why?where is the log for that: Log Name: System Source: Microsoft-Windows-Kernel-Power Date: 07/08/1402 09:34:12 ق.ظ Event ID: 41 Task Category: 63 Level: Critical Keywords: 70368744177664,2 User: SYSTEM Computer: ShadowSH Description: The system has rebooted without cleanly shutting down first. This error...
  6. my system crashed for no reason how do i find out why?where is the log for that

    in Windows 10 Software and Apps
    my system crashed for no reason how do i find out why?where is the log for that: Log Name: System Source: Microsoft-Windows-Kernel-Power Date: 07/08/1402 09:34:12 ق.ظ Event ID: 41 Task Category: 63 Level: Critical Keywords: 70368744177664,2 User: SYSTEM Computer: ShadowSH Description: The system has rebooted without cleanly shutting down first. This error...
  7. How can I find out why my system freezes from time to time?

    in Windows 10 BSOD Crashes and Debugging
    How can I find out why my system freezes from time to time?: My Windows 10 freezes from time to time. This happens while I am working with Microsoft apps (Powerpoint, Excel, Outlook) but also in Firefox or other apps. When it happens the notice "not responding" is shown and I can neither continue to work in the open app, nor can I stop...
  8. Why my system getting full cache and hanging?

    in Windows 10 Software and Apps
    Why my system getting full cache and hanging?: superfetch option not showing in services but disabled in regedit. but still getting full cache at startup without opening programs !! it's hanging,lagging and crashes!! [img] 121414
  9. Kernel 41 hard hang

    in Windows 10 BSOD Crashes and Debugging
    Kernel 41 hard hang: Hello all, I just built a new desktop less than a month ago. Randomly, I'll keep getting the kernel 41 error. It'll hard hang making me hard reset with the power button. I looked at other posts, but nothing seems to help. If someone could give me a hand on where to start...
  10. How to Find out System Specs

    in Windows 10 Support
    How to Find out System Specs: Hi, I'd like to know how to find out my system specs so I can have them to put in the 'My System Specs' menu*Smile 32706