sc-machine icon indicating copy to clipboard operation
sc-machine copied to clipboard

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

Open ShunkevichDV opened this issue 4 years ago • 1 comments

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

ShunkevichDV avatar Jun 23 '21 17:06 ShunkevichDV

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
    

Vikort avatar Jul 12 '21 16:07 Vikort