Skip to content

sometimes app cannot exit when accessing cppcryptfs device files #222

@hbzhang3

Description

@hbzhang3
  1. cppcryptfsctl.exe --init "f:\enc" --password 123
  2. cppcryptfs.exe --mount "f:\enc" --drive "f:\plain" --password 123
  3. run windowsproject1.exe
  4. windowsproject1.exe creates 10 child processes, child processes keep accessing a xxx dummy file which does not exist and restart after 2 seconds.
  5. wait for 2 or 3 minutes, kill parent windowsproject1.exe process in task manager or procexp
  6. expected: all child processes should exit successfully
  7. actual: some child processes stay in process list and cannnot be terminated manually (access denied error)
  8. if i change dummy file path to \Device\HarddiskVolume4\xxx\xxxxxx", this problem does not happen. (HarddiskVolume4 is device name of C drive in my pc)

windowsproject1 source codes and executable: https://1drv.ms/u/c/01cff2ee4af3350f/IQCRZVqJNMK_Q6LCi3UNX7vRAW7ODznisgQQuYbIZBCOHYk?e=djUY9T

OS: Windows 11 25H2, I am not sure if it is a problem of cppcryptfs or Dokany.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions