Visitar URL original
Potential deadlock in `simHasFS` · Issue #82 · IntersectMBO/fs-sim · GitHub
Skip to content

Potential deadlock in simHasFS #82

Open

Description

@jorisdral

https://github.com/input-output-hk/fs-sim/blob/2d85d65814f4573270bb0c30a0d0bde6e9209a9b/fs-sim/src/System/FS/Sim/STM.hs#L77-L86

If an exception happens between takeTMVar and putTMVar, then the TMVar will be left empty. This is a potential deadlock situation

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions