Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic!() in Filesystem::init() will hang the FS stack #271

Open
cfstras opened this issue Dec 28, 2023 · 0 comments
Open

panic!() in Filesystem::init() will hang the FS stack #271

cfstras opened this issue Dec 28, 2023 · 0 comments

Comments

@cfstras
Copy link

cfstras commented Dec 28, 2023

I've discovered this by mistake, by having an unwrap() fail in my implementation of init().

As soon as this happens, some bad things occur:

  • The process running the mount will hang indefinitely
  • Any process that touches the mountpoint will completely hang (not even terminal output for Ctrl+C etc is shown anymore)
    • examples: mount prints every mount up until the fuse line, then hangs
    • anything else, such as ls will hang as soon as it encounters the mount
  • kill -9 (nor any other kill) seems to help
  • pkill -9 macfuse kills the process, but it just gets restarted
  • At some point, the whole macOS system will start hanging and become unresponsive (I guess some queue somewhere gets full?)

Workaround: Don't do any work that can panic!() in main?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant