pmem / pmdk

Persistent Memory Development Kit
https://pmem.io
Other
1.34k stars 510 forks source link

Error: pmemobj_create: /mnt//test_obj_basic_integration0/testfile1: No such device or address #6039

Closed mcasquer closed 7 months ago

mcasquer commented 7 months ago

Details

I am executing all the integration tests on a RHEL VM and I am getting a test fail in obj_basic_integration/TEST0, with the message from the title:

obj_basic_integration/TEST0: SETUP (check/pmem/debug)
obj_basic_integration/TEST0 crashed (signal 6). err0.log below.
{obj_basic_integration.c:638 main} obj_basic_integration/TEST0: Error: pmemobj_create: /mnt//test_obj_basic_integration0/testfile1: No such device or address
err0.log below.
obj_basic_integration/TEST0 err0.log {obj_basic_integration.c:638 main} obj_basic_integration/TEST0: Error: pmemobj_create: /mnt//test_obj_basic_integration0/testfile1: No such device or address

I've checked the file path, it exists and it's created/overwriten during the test execution.

# ll /mnt//test_obj_basic_integration0/testfile1
-rw-r--r-- 1 root root 16777216 Mar  7 16:20 /mnt//test_obj_basic_integration0/testfile1

Perhaps there's something wrong during the pmemobj_create() with the '//' in the file path?, anyways I saw this is set through a $DIR variable and I don't how it's constructed...

Thanks in advance!

janekmi commented 7 months ago

By any chance the test produced also a libpmemobj log file? It would be helpful. Thanks.

mcasquer commented 7 months ago

By any chance the test produced also a libpmemobj log file? It would be helpful. Thanks.

Yes, I have the following one: https://gist.github.com/mcasquer/7692869f3c0f955ab246478046713a95

janekmi commented 7 months ago

I think what you need is PMEMOBJ_CONF="sds.at_create=0" in your environment.

Here you can find a docker command line we use in our CI to run tests: https://github.com/pmem/pmdk/blob/master/utils/docker/build-CI.sh#L103

mcasquer commented 7 months ago

I think what you need is PMEMOBJ_CONF="sds.at_create=0" in your environment.

Indeed, no failures, thank you so much !! :grinning: