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

Solve problem with sc-memory crash due to access to deleted element from another thread #399

Open
ShunkevichDV opened this issue Jun 23, 2021 · 1 comment
Assignees

Comments

@ShunkevichDV
Copy link
Collaborator

Approximate description of the problem:
There is an element that belongs to several sets
The first agent iterates over the sets and does some additional checking (does not delete anything)
The second agent iterates over the sets and, having found the required set, removes the membership arc between the element and this set
The first agent crashes because of this

@Vikort
Copy link

Vikort commented Jul 12, 2021

sc-memory crash test

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

To run tests

  • Clone repository

    git clone https://github.com/Vikort/sc-machine.git
    cd sc-machine
    git checkout bug/sc-memory-crash-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-memory-crash

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

No branches or pull requests

3 participants