pmem / pmemstream

Other
9 stars 13 forks source link

Assertion fault in region_runtime_clear_from_tail() #121

Closed Karolina002 closed 2 years ago

Karolina002 commented 2 years ago

ISSUE:

assertion fault in region_runtime_clear_from_tail()

The bug reproduction:

struct pmemstream_region invalid_region = {.offset = ALIGN_DOWN(UINT64_MAX, sizeof(span_bytes))};
struct pmemstream_region_runtime *rtm = NULL;
ret = pmemstream_region_runtime_initialize(stream, invalid_region, &rtm);

How often bug is revealed:

always

Actual behavior:

 __GI___assert_fail ("region_runtime_get_state_acquire(region_runtime) == REGION_RUNTIME_STATE_DIRTY")
region_runtime_clear_from_tail () at pmemstream/src/region.c:238
region_runtime_initialize_clear_locked () at pmemstream/src/region.c:273
pmemstream_region_runtime_initialize () at pmemstream/src/libpmemstream.c:212
invalid_region_test () at pmemstream/tests/api_c/region_create.c:65
main () at pmemstream/tests/api_c/region_create.c:88