Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

ThreadError: Attempt to unlock a mutex which is locked by another thread/fiber #501

Closed
@ioquatix

Description

@ioquatix

Subject of the issue

image

Your environment

  • Ruby version: 3.0
  • rspec-support version: 3.10.2

Steps to reproduce

This is a tricky issue to reproduce.

Essentially it looks like some of the assumptions made by reentrant_mutex.rb are no longer true in Ruby 3.0. I will review the code and try to give an update, but essentially it looks like trying to lock a ReentrantMutex from a different fiber on the same thread might be a problem.

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