Skip to content

process does not exit when accessing dokan drive #1329

@hbzhang3

Description

@hbzhang3

Check List

  • [Y] I checked my issue doesn't exist yet
  • [Y] My issue is valid with mirror default sample and not specific to my user-mode driver implementation
  • [Y] I can always reproduce the issue with the provided description below.
  • [Y] I have updated Dokany to the latest version and have reboot my computer after.
  • [] I tested one of the last snapshot from appveyor CI

Describe the bug
it looks like something is wrong with cancelling IRP when process exits

To Reproduce
Steps to reproduce the behavior:

  1. make sure dokan device name is \Device\Volume{d6cc17c5-1734-4085-bce7-964f1e9f5de9}, otherwise modify windowsproject1 source codes accordingly
  2. run attached windowsproject1.exe, which creates 10 child processes, each child process tries to open a non-existing file on dokan drive repeatedly for 2 seconds, then exits and restarts.
  3. after 2 or 3 minutes, terminate parent windowsproject1.exe process.

Expected: all child processes are terminated successfully
Actual: some child processes stay in process list and do not exit, procexp shows these processes have one thread running and cannot be terminated

Logs
N/A

Environment:

  • Windows version: Windows 11 25H2
  • Processor architecture: AMD x64
  • Dokany version: 2.3.1.1000
  • Library type (Dokany/FUSE):

Additional context
windowsproject1 source codes and executable:
https://1drv.ms/u/c/01cff2ee4af3350f/IQCRZVqJNMK_Q6LCi3UNX7vRAW7ODznisgQQuYbIZBCOHYk?e=djUY9T
claude code fix:
https://1drv.ms/u/c/01cff2ee4af3350f/IQDfyvyw_EK4TLY88ABs3omwAdGNXa5A5hORRFeLbqkEPCI?e=CzMXgm

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions