Skip to content

Solve problem with deadlocks in iterators #400

Description

@ShunkevichDV

When several agents work with the same sc-element, a deadlock is likely to occur

Possibly the problem (or one of them) is somewhere in sc_iterator...._next functions

https://github.com/ostis-dev/sc-machine/blob/master/sc-memory/sc-core/sc-store/sc_iterator3.c

Activity

  1. ShunkevichDV commented on Jun 23, 2021

    @ShunkevichDV
    CollaboratorAuthor

    Possibly same issue with #267

  2. Vikort commented on Jul 27, 2021

    @Vikort

    sc-machine deadlock test

    https://github.com/Vikort/sc-machine/tree/bug/sc-machine-deadlock-test

    To run tests

    • Clone repository

      git clone https://github.com/Vikort/sc-machine.git
      cd sc-machine
      git checkout bug/sc-machine-deadlock-test
      git submodule update --init --recursive
    • Build sc-machine

      In sc-machine folder

      mkdir build
      cd build
      cmake ..
      make
    • Run

      In sc-machine folder

      cd bin
      ./sc-machine-deadlock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions