tpm2-tss: test/unit/tctildr fails on s390x
Version 2.3.1 of tpm2-tss was recently uploaded into Debian unstable and this particular unit test is failing the test suite on the s390x architecture. It passes on other architectures.
[==========] Running 24 test(s).
[ RUN ] tcti_from_init_null_init
[ OK ] tcti_from_init_null_init
[ RUN ] tcti_from_init_init_fail
WARNING:tcti:src/tss2-tcti/tctildr.c:50:tcti_from_init() TCTI init for function 0x2aa2f6017c0 failed with 6134
[ OK ] tcti_from_init_init_fail
[ RUN ] tcti_from_init_calloc_fail
ERROR:tcti:src/tss2-tcti/tctildr.c:56:tcti_from_init() Memory allocation for tcti failed: Success
[ OK ] tcti_from_init_calloc_fail
[ RUN ] tcti_from_init_second_init_fail
WARNING:tcti:src/tss2-tcti/tctildr.c:62:tcti_from_init() TCTI init for function 0x2aa2f6017c0 failed with 6134
[ OK ] tcti_from_init_second_init_fail
[ RUN ] tcti_from_init_success
[ OK ] tcti_from_init_success
[ RUN ] tcti_from_info_info_null
ERROR:tcti:src/tss2-tcti/tctildr.c:83:tcti_from_info() TCTI info function failed
[ OK ] tcti_from_info_info_null
[ RUN ] tcti_from_info_info_fail
WARNING:tcti:src/tss2-tcti/tctildr.c:50:tcti_from_init() TCTI init for function 0x2aa2f6017c0 failed with 6134
WARNING:tcti:src/tss2-tcti/tctildr.c:92:tcti_from_info() Could not initialize TCTI named: (null)
[ OK ] tcti_from_info_info_fail
[ RUN ] tcti_from_info_success
[ OK ] tcti_from_info_success
[ RUN ] test_conf_parse_null
ERROR:tcti:src/tss2-tcti/tctildr.c:122:tctildr_conf_parse() 'name_conf' param may NOT be NULL
[ OK ] test_conf_parse_null
[ RUN ] test_conf_parse_bad_length
[ ERROR ] --- Test failed with exception: Segmentation fault(11)
[ FAILED ] test_conf_parse_bad_length
[ RUN ] test_conf_parse_empty_str
[ OK ] test_conf_parse_empty_str
[ RUN ] test_conf_parse_no_colon
[ OK ] test_conf_parse_no_colon
[ RUN ] test_conf_parse_name_colon
[ OK ] test_conf_parse_name_colon
[ RUN ] test_conf_parse_name_colon_conf
[ OK ] test_conf_parse_name_colon_conf
[ RUN ] tctildr_init_ex_null_test
[ OK ] tctildr_init_ex_null_test
[ RUN ] tctildr_init_null_test
[ OK ] tctildr_init_null_test
[ RUN ] tctildr_init_conf_fail_test
[ ERROR ] --- Test failed with exception: Segmentation fault(11)
[ FAILED ] tctildr_init_conf_fail_test
[ RUN ] tctildr_init_ex_default_fail
ERROR:tcti:src/tss2-tcti/tctildr.c:418:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI
[ OK ] tctildr_init_ex_default_fail
[ RUN ] tctildr_init_ex_from_file_fail
ERROR:tcti:src/tss2-tcti/tctildr.c:418:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI
[ OK ] tctildr_init_ex_from_file_fail
[ RUN ] tctildr_init_ex_calloc_fail_test
[ OK ] tctildr_init_ex_calloc_fail_test
[ RUN ] tctildr_init_ex_success_test
[ OK ] tctildr_init_ex_success_test
[ RUN ] tctildr_finalize_null_ref_test
[ OK ] tctildr_finalize_null_ref_test
[ RUN ] tctildr_finalize_null_ctx_test
[ OK ] tctildr_finalize_null_ctx_test
[ RUN ] tctildr_finalize_test
[ OK ] tctildr_finalize_test
[==========] 24 test(s) run.
[ PASSED ] 22 test(s).
[ FAILED ] 2 test(s), listed below:
[ FAILED ] test_conf_parse_bad_length
[ FAILED ] tctildr_init_conf_fail_test
2 FAILED TEST(S)
FAIL test/unit/tctildr (exit status: 2)
Full build log is available here: https://buildd.debian.org/status/fetch.php?pkg=tpm2-tss&arch=s390x&ver=2.3.1-1&stamp=1573411429&raw=0
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (13 by maintainers)
Commits related to this issue
- Disable optimizations for tctildr unit test (Fixes: #1547) Optimizations on this unit test cause segmentation faults on s390x. The problem is only caught on "releases" though because of policy select... — committed to superm1/tpm2-tss by deleted user 5 years ago
- Disable optimizations for tctildr unit test (Fixes: #1547) Optimizations on this unit test cause segmentation faults on s390x. The problem is only caught on "releases" though because of policy select... — committed to superm1/tpm2-tss by deleted user 5 years ago
- Disable optimizations for tctildr conf parse function (Fixes: #1547) Optimizations on this unit test cause segmentation faults on s390x. The problem is only caught on "releases" though because of pol... — committed to superm1/tpm2-tss by deleted user 5 years ago
- community/tmp2-tss: disable on s390x Test is faling: ``` FAIL: test/unit/tctildr ``` This is a known issue: https://github.com/tpm2-software/tpm2-tss/issues/1547 — committed to alpinelinux/aports by Ikke 5 years ago
- Revert "Disable optimizations for tctildr conf parse function (Fixes: #1547)" This reverts commit ac8712d0e4a9633236959eda2c3af0bc14f0c8b6. — committed to superm1/tpm2-tss by deleted user 5 years ago
- Adjust unit tests to not wrap string functions (Fixes: #1547) This has caused failures for unit tests on s390x with optimizations set to `-O` or higher. Suggested-by: Andreas Fuchs <andreas.fuchs@si... — committed to superm1/tpm2-tss by deleted user 5 years ago
- Adjust unit tests to not wrap string functions (Fixes: #1547) This has caused multiple segmentation fault failures for unit tests on s390x with optimizations set to `-O` or higher. The failures appe... — committed to superm1/tpm2-tss by deleted user 5 years ago
- Adjust unit tests to not wrap string functions (Fixes: #1547) This has caused multiple segmentation fault failures for unit tests on s390x with optimizations set to `-O` or higher. The failures appe... — committed to superm1/tpm2-tss by deleted user 5 years ago
- Adjust unit tests to not wrap string functions (Fixes: #1547) This has caused multiple segmentation fault failures for unit tests on s390x with optimizations set to `-O` or higher. The failures appe... — committed to AndreasFuchsTPM/tpm2-tss by deleted user 5 years ago
- Adjust unit tests to not wrap string functions (Fixes: #1547) This has caused multiple segmentation fault failures for unit tests on s390x with optimizations set to `-O` or higher. The failures appe... — committed to tpm2-software/tpm2-tss by deleted user 5 years ago
- Adjust unit tests to not wrap string functions (Fixes: #1547) This has caused multiple segmentation fault failures for unit tests on s390x with optimizations set to `-O` or higher. The failures appe... — committed to LukasJaegerSIT/tpm2-tss by deleted user 5 years ago
Confirmed that the test is succeeding with that commit applied.