pmem / issues

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

test: obj_tx_lock/TEST0: SETUP (all/pmem/debug/helgrind) fails #1105

Closed Greg091 closed 5 years ago

Greg091 commented 5 years ago

ISSUE:

Environment Information

./RUNTESTS obj_tx_lock -s TEST0 -t all -e force-enable

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

Actual behavior:

[2019-08-20T23:48:39.024Z] obj_tx_lock/TEST0: SETUP (all/pmem/debug/helgrind)
[2019-08-20T23:48:39.960Z] obj_tx_lock/TEST0 failed with Valgrind. See helgrind0.log. First 20 lines below.
[2019-08-20T23:48:39.960Z] yes: standard output: Broken pipe
[2019-08-20T23:48:39.960Z] obj_tx_lock/TEST0 helgrind0.log ==52446== Thread #1 is the program's root thread
[2019-08-20T23:48:39.960Z] obj_tx_lock/TEST0 helgrind0.log ==52446== 
[2019-08-20T23:48:39.960Z] obj_tx_lock/TEST0 helgrind0.log ==52446== ----------------------------------------------------------------
[2019-08-20T23:48:39.960Z] obj_tx_lock/TEST0 helgrind0.log ==52446== 
[2019-08-20T23:48:39.960Z] obj_tx_lock/TEST0 helgrind0.log ==52446== Thread #1's call to pthread_rwlock_wrlock failed
[2019-08-20T23:48:39.960Z] obj_tx_lock/TEST0 helgrind0.log ==52446==    with error code 35 (EDEADLK: Resource deadlock would occur)
[2019-08-20T23:48:39.960Z] obj_tx_lock/TEST0 helgrind0.log ==52446==    at 0x4C2FBF7: pthread_rwlock_wrlock_WRK (hg_intercepts.c:2164)
[2019-08-20T23:48:39.960Z] obj_tx_lock/TEST0 helgrind0.log ==52446==    by 0x4C32693: pthread_rwlock_wrlock (hg_intercepts.c:2175)
[2019-08-20T23:48:39.960Z] obj_tx_lock/TEST0 helgrind0.log ==52446==    by 0x4E46D5B: os_rwlock_wrlock (os_thread_posix.c:188)
[2019-08-20T23:48:39.960Z] obj_tx_lock/TEST0 helgrind0.log ==52446==    by 0x4E7A83D: pmemobj_rwlock_wrlock (sync.c:402)
[2019-08-20T23:48:39.960Z] obj_tx_lock/TEST0 helgrind0.log ==52446==    by 0x4E7DD53: add_to_tx_and_lock (tx.c:976)
[2019-08-20T23:48:39.960Z] obj_tx_lock/TEST0 helgrind0.log ==52446==    by 0x4E7EE58: pmemobj_tx_lock (tx.c:1291)
[2019-08-20T23:48:39.960Z] obj_tx_lock/TEST0 helgrind0.log ==52446==    by 0x4036BD: do_tx_add_taken_lock (obj_tx_lock.c:158)
[2019-08-20T23:48:39.960Z] obj_tx_lock/TEST0 helgrind0.log ==52446==    by 0x403973: main (obj_tx_lock.c:188)
[2019-08-20T23:48:39.960Z] obj_tx_lock/TEST0 helgrind0.log ==52446== 
[2019-08-20T23:48:39.960Z] obj_tx_lock/TEST0 helgrind0.log ==52446== 
[2019-08-20T23:48:39.960Z] obj_tx_lock/TEST0 helgrind0.log ==52446== For counts of detected and suppressed errors, rerun with: -v
[2019-08-20T23:48:39.960Z] obj_tx_lock/TEST0 helgrind0.log ==52446== Use --history-level=approx or =none to gain increased speed, at
[2019-08-20T23:48:39.960Z] obj_tx_lock/TEST0 helgrind0.log ==52446== the cost of reduced accuracy of conflicting-access information
[2019-08-20T23:48:39.960Z] obj_tx_lock/TEST0 helgrind0.log ==52446== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
[2019-08-20T23:48:39.960Z] RUNTESTS: stopping: obj_tx_lock/TEST0 failed, TEST=all FS=pmem BUILD=debug
[2019-08-20T23:48:39.960Z] tput: No value for $TERM and no -T specified
[2019-08-20T23:48:39.960Z] tput: No value for $TERM and no -T specified
[2019-08-20T23:48:39.960Z] 1 tests failed:  obj_tx_lock/TEST0
[2019-08-20T23:48:39.960Z] ../Makefile.inc:467: recipe for target 'TEST0' failed
[2019-08-20T23:48:39.960Z] make[3]: *** [TEST0] Error 1
[2019-08-20T23:48:39.960Z] make[3]: Target 'pcheck' not remade because of errors.
[2019-08-20T23:48:39.960Z] make[3]: Leaving directory '/home/jenkins/workspace/1.6.1/1.4.3/helgrind_143/src/test/obj_tx_lock'
[2019-08-20T23:48:39.960Z] Makefile:462: recipe for target 'obj_tx_lock' failed
[2019-08-20T23:48:39.960Z] make[2]: *** [obj_tx_lock] Error 2
[2019-08-20T23:48:39.960Z] make -C obj_tx_locks pcheck
[2019-08-20T23:48:39.960Z] make[3]: Entering directory '/home/jenkins/workspace/1.6.1/1.4.3/helgrind_143/src/test/obj_tx_locks'

Expected behavior:

Test should pass.

Details

Additional information about Priority and Help Requested:

Are you willing to submit a pull request with a proposed change? (Yes, No)

Requested priority: (Showstopper, High, Medium, Low)

janekmi commented 5 years ago

Please attach the complete helgrind log.

Greg091 commented 5 years ago

Verified on: 1.4.3-rc1-7-gb941070b2