khizmax/libcds

Assert failure in smr::~smr()

wongsee opened this issue · 1 comments

Hi

I am new to libcds. I am using cds::container::FeldmanHashSet container. I am using version v2.3.3.

I am getting an assert failure when my program exits:

/libcds/src/hp.cpp:199: cds::gc::hp::smr::~smr(): Assertion `hprec->thread_id_.load( atomics::memory_order_relaxed ) == nullThreadId || hprec->thread_id_.load( atomics::memory_order_relaxed ) == mainThreadId' failed.

This doesn't happen all the time, only some of the time. Is there anything that I might be doing wrong?

Thanks in advance.