ECP-VeloC / AXL

Asynchronous Transfer Library
MIT License
2 stars 8 forks source link

Test failing: pthread_cancel_test #138

Open gonsie opened 1 year ago

gonsie commented 1 year ago

The pthread_cancel_test is failing on both Mac (hangs) and Linux (incorrectly marked as passed) systems.

Errors when running test directly on a Mac:

> ./test_axl.sh "-n" "50" "-p" "10" "-c" "1" "pthread"
Testing pthread transfer cancel after 1 seconds...  AXL 0.7.1 ERROR: titania.llnl.gov: pthread_join failed, rc_ptr 0x7ffee7faf81c @ axl_pthread_cancel /Users/gonsiorowski1/Projects/scr-top/axl/src/axl_pthread.c:496
AXL 0.7.1 ERROR: titania.llnl.gov: pthread_join failed, rc_ptr 0x7000058738ec @ axl_pthread_cancel /Users/gonsiorowski1/Projects/scr-top/axl/src/axl_pthread.c:496
AXL 0.7.1 ERROR: titania.llnl.gov: pthread_join failed, rc_ptr 0x7000058738ec @ axl_pthread_cancel /Users/gonsiorowski1/Projects/scr-top/axl/src/axl_pthread.c:496
fish: Job 1, './test_axl.sh "-n" "50" "-p" "1…' terminated by signal SIGTERM (Polite quit request)

Output on linux:

test 4
    Start 4: pthreads_cancel_test

4: Test command: /g/g0/gonsie/Projects/SCR/scr-top/build-quartz/axl-prefix/src/axl-build/test/test_axl.sh "-n" "100" "-p" "1000" "-c" "1" "pthread"
4: Test timeout computed to be: 120
4: Testing pthread transfer cancel after 1 seconds...   AXL 0.7.1 ERROR: quartz1538: pthread_join failed, rc_ptr 0x2aaaaacd76f3 @ axl_pthread_cancel /g/g0/gonsie/Projects/SCR/scr-top/axl/src/axl_pthread.c:496
4: AXL 0.7.1 ERROR: quartz1538: Bad return code from canceling a thread @ axl_pthread_cancel /g/g0/gonsie/Projects/SCR/scr-top/axl/src/axl_pthread.c:502
4: axl_cp SIGTERM: AXL_Cancel failed (-1)success
4/7 Test #4: pthreads_cancel_test .............   Passed    1.21 sec

I am disabling this test for PR #136.

@tonyhutter can you help?