pmem / issues

Old issues repo for PMDK.
http://pmem.io
13 stars 7 forks source link

TESTS: obj_basic_integration/TEST5,TEST6: SETUP (all/pmem/debug/memcheck) fail. #1025

Closed Greg091 closed 5 years ago

Greg091 commented 5 years ago

ISSUE:

Environment Information

Please provide a reproduction of the bug:

obj_basic_integration/TEST5: SETUP (all/pmem/debug/memcheck)
obj_basic_integration/TEST5 failed with Valgrind. See memcheck5.log. Last 20 lines below.
obj_basic_integration/TEST5 memcheck5.log ==19517==    by 0x5B80BEC: add_dax (libndctl.c:4882)
obj_basic_integration/TEST5 memcheck5.log ==19517==    by 0x5B72959: __sysfs_device_parse (sysfs.c:118)
obj_basic_integration/TEST5 memcheck5.log ==19517==    by 0x5B79683: device_parse (libndctl.c:725)
obj_basic_integration/TEST5 memcheck5.log ==19517==    by 0x5B79683: daxs_init (libndctl.c:3833)
obj_basic_integration/TEST5 memcheck5.log ==19517==    by 0x5B80B6F: ndctl_dax_get_first (libndctl.c:5248)
obj_basic_integration/TEST5 memcheck5.log ==19517==    by 0x5B81000: ndctl_namespace_get_dax (libndctl.c:3543)
obj_basic_integration/TEST5 memcheck5.log ==19517==    by 0x4E4DB48: os_dimm_region_namespace (os_dimm_ndctl.c:131)
obj_basic_integration/TEST5 memcheck5.log ==19517==    by 0x4E4DDD7: os_dimm_interleave_set (os_dimm_ndctl.c:194)
obj_basic_integration/TEST5 memcheck5.log ==19517==    by 0x4E4DF5C: os_dimm_uid (os_dimm_ndctl.c:230)
obj_basic_integration/TEST5 memcheck5.log ==19517==    by 0x4E60707: shutdown_state_add_part (shutdown_state.c:112)
obj_basic_integration/TEST5 memcheck5.log ==19517== 
obj_basic_integration/TEST5 memcheck5.log ==19517== LEAK SUMMARY:
obj_basic_integration/TEST5 memcheck5.log ==19517==    definitely lost: 648 bytes in 54 blocks
obj_basic_integration/TEST5 memcheck5.log ==19517==    indirectly lost: 0 bytes in 0 blocks
obj_basic_integration/TEST5 memcheck5.log ==19517==      possibly lost: 0 bytes in 0 blocks
obj_basic_integration/TEST5 memcheck5.log ==19517==    still reachable: 0 bytes in 0 blocks
obj_basic_integration/TEST5 memcheck5.log ==19517==         suppressed: 0 bytes in 0 blocks
obj_basic_integration/TEST5 memcheck5.log ==19517== 
obj_basic_integration/TEST5 memcheck5.log ==19517== For counts of detected and suppressed errors, rerun with: -v
obj_basic_integration/TEST5 memcheck5.log ==19517== ERROR SUMMARY: 6 errors from 6 contexts (suppressed: 0 from 0)
RUNTESTS: stopping: obj_basic_integration/TEST5 failed, TEST=all FS=pmem BUILD=debug
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
1 tests failed:
obj_basic_integration/TEST5
../Makefile.inc:473: recipe for target 'TEST5' failed
make[3]: *** [TEST5] Error 1
obj_basic_integration/TEST6: SETUP (all/pmem/debug/memcheck)
obj_basic_integration/TEST6 failed with Valgrind. See memcheck6.log. Last 20 lines below.
obj_basic_integration/TEST6 memcheck6.log ==19718==    by 0x5B80BEC: add_dax (libndctl.c:4882)
obj_basic_integration/TEST6 memcheck6.log ==19718==    by 0x5B72959: __sysfs_device_parse (sysfs.c:118)
obj_basic_integration/TEST6 memcheck6.log ==19718==    by 0x5B79683: device_parse (libndctl.c:725)
obj_basic_integration/TEST6 memcheck6.log ==19718==    by 0x5B79683: daxs_init (libndctl.c:3833)
obj_basic_integration/TEST6 memcheck6.log ==19718==    by 0x5B80B6F: ndctl_dax_get_first (libndctl.c:5248)
obj_basic_integration/TEST6 memcheck6.log ==19718==    by 0x5B81000: ndctl_namespace_get_dax (libndctl.c:3543)
obj_basic_integration/TEST6 memcheck6.log ==19718==    by 0x4E4DB48: os_dimm_region_namespace (os_dimm_ndctl.c:131)
obj_basic_integration/TEST6 memcheck6.log ==19718==    by 0x4E4DDD7: os_dimm_interleave_set (os_dimm_ndctl.c:194)
obj_basic_integration/TEST6 memcheck6.log ==19718==    by 0x4E4DF5C: os_dimm_uid (os_dimm_ndctl.c:230)
obj_basic_integration/TEST6 memcheck6.log ==19718==    by 0x4E60707: shutdown_state_add_part (shutdown_state.c:112)
obj_basic_integration/TEST6 memcheck6.log ==19718== 
obj_basic_integration/TEST6 memcheck6.log ==19718== LEAK SUMMARY:
obj_basic_integration/TEST6 memcheck6.log ==19718==    definitely lost: 1,944 bytes in 162 blocks
obj_basic_integration/TEST6 memcheck6.log ==19718==    indirectly lost: 0 bytes in 0 blocks
obj_basic_integration/TEST6 memcheck6.log ==19718==      possibly lost: 0 bytes in 0 blocks
obj_basic_integration/TEST6 memcheck6.log ==19718==    still reachable: 0 bytes in 0 blocks
obj_basic_integration/TEST6 memcheck6.log ==19718==         suppressed: 0 bytes in 0 blocks
obj_basic_integration/TEST6 memcheck6.log ==19718== 
obj_basic_integration/TEST6 memcheck6.log ==19718== For counts of detected and suppressed errors, rerun with: -v
obj_basic_integration/TEST6 memcheck6.log ==19718== ERROR SUMMARY: 6 errors from 6 contexts (suppressed: 0 from 0)
RUNTESTS: stopping: obj_basic_integration/TEST6 failed, TEST=all FS=pmem BUILD=debug
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
1 tests failed:
obj_basic_integration/TEST6
../Makefile.inc:473: recipe for target 'TEST6' failed
make[3]: *** [TEST6] Error 1

How often bug is revealed: (always, often, rare):

always

Actual behavior:

Expected behavior:

test passes

Details

Additional information about Priority and Help Requested:

I suspect this is a bug in ndctl.

lplewa commented 5 years ago

Please add full memcheck log

Greg091 commented 5 years ago

The same issue as Ref: pmem/issues#996