Skip to content

Non re-entrant lock blocking extension use with msal>0.4.0 #26

Closed

Description

Repro:

  1. Clone this repository on MacOS or Windows
  2. Create new virtual environment
  3. Run pip install, ensure pip list | grep msal (or similar command outside of bash) is greater or equal to 0.4.1.
  4. Run pytest

Expected:

  • Tests will pass

Actual:

  • Tests hang indefinitely.

What happened is that in 8a7495a006eafd75179c0975b7fc52fddf733ca5 the add function got refactored to call self.modify. In doing so, because of the inheritance involved, it is calling our FileTokenCache's implementation of these functions and causing us to try to take a second lock on a file we're already locked on. This is causing an indefinite hang.

Amusingly, this is the exact problem talked about here: https://www.youtube.com/watch?v=YXiaWtc0cgE

Activity

  1. added a commit that references this issue on Jul 16, 2019
    65a9823
  2. marstr commented on Jul 16, 2019

    @marstr
    ContributorAuthor

    I think this issue is an indicator that we should probably setup a nightly CI run for this repository. Would have helped detect this error earlier. A step further, would be running the extension's tests as part of CI in the upstream repository.

  3. added a commit that references this issue on Jul 16, 2019
    71b5301
  4. changed the title [-]Non re-entrant lock blocking extension use with msal~=0.4.1[/-] [+]Non re-entrant lock blocking extension use with msal>0.4.0[/+] on Jul 17, 2019
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions