Open barracuda156 opened 1 year ago
With stacktrace:
97/239 Testing: s2n_hkdf_test
97/239 Test: s2n_hkdf_test
Command: "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/build/bin/s2n_hkdf_test"
Directory: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit
"s2n_hkdf_test" start time: Jul 17 05:19 CST
Output:
----------------------------------------------------------
Stacktrace is:
FAILED test 15
(memcmp(output_pad, actual_output_blob.data, actual_output_blob.size)) == (0) is not true (/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit/s2n_hkdf_test.c:441)
Error Message: 'no error'
Debug String: '(null)'
System Error: Invalid argument (22)
Running /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit/s2n_hkdf_test.c ...
<end of output>
Test time = 0.17 sec
----------------------------------------------------------
Test Failed.
113/239 Testing: s2n_mem_test
113/239 Test: s2n_mem_test
Command: "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/build/bin/s2n_mem_test"
Directory: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit
"s2n_mem_test" start time: Jul 17 05:20 CST
Output:
----------------------------------------------------------
Stacktrace is:
0 libs2n.1.dylib 0x00123e60 s2n_calculate_stacktrace + 80
1 s2n_mem_test 0x00003410 s2n_free_without_wipe + 132
2 s2n_mem_test 0x00003500 s2n_free + 36
3 s2n_mem_test 0x00005bc4 main + 528
4 s2n_mem_test 0x00002c1c start + 68
FAILED test 1
!(((s2n_free(&blob))) == (-1)) is not true (/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit/s2n_mem_test.c:38)
Error Message: 's2n not initialized'
Debug String: 'Error encountered in /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/./utils/s2n_mem.c:289'
System Error: Invalid argument (22)
Running /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit/s2n_mem_test.c ...
<end of output>
Test time = 0.17 sec
----------------------------------------------------------
Test Failed.
125/239 Testing: s2n_post_handshake_recv_test
125/239 Test: s2n_post_handshake_recv_test
Command: "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/build/bin/s2n_post_handshake_recv_test"
Directory: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit
"s2n_post_handshake_recv_test" start time: Jul 17 05:21 CST
Output:
----------------------------------------------------------
Stacktrace is:
0 libs2n.1.dylib 0x00123e60 s2n_calculate_stacktrace + 80
1 s2n_post_handshake_recv_test 0x00004050 s2n_alloc + 92
2 s2n_post_handshake_recv_test 0x00009ddc main + 3792
3 s2n_post_handshake_recv_test 0x00002c54 start + 68
4 s2n_post_handshake_recv_test 0x00001000 __dso_handle + 0
FAILED test 9
!(((s2n_alloc(&message_blob, 5))) == (-1)) is not true (/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit/s2n_post_handshake_recv_test.c:233)
Error Message: 's2n not initialized'
Debug String: 'Error encountered in /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/./utils/s2n_mem.c:154'
System Error: Unknown error: 0 (0)
Running /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit/s2n_post_handshake_recv_test.c ...
<end of output>
Test time = 0.24 sec
----------------------------------------------------------
Test Failed.
134/239 Testing: s2n_psk_test
134/239 Test: s2n_psk_test
Command: "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/build/bin/s2n_psk_test"
Directory: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit
"s2n_psk_test" start time: Jul 17 05:21 CST
Output:
----------------------------------------------------------
Stacktrace is:
0 libs2n.1.dylib 0x00123e60 s2n_calculate_stacktrace + 80
1 s2n_psk_test 0x00004548 s2n_psk_parameters_wipe_secrets + 88
2 s2n_psk_test 0x00019154 main + 34612
3 s2n_psk_test 0x00003968 start + 68
FAILED test 198
(memcmp( (binder_value.data), (finished_binder.data), (binder_value.size) )) == (0) is not true (/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit/s2n_psk_test.c:507)
Error Message: 'no error'
Debug String: '(null)'
System Error: Unknown error: 0 (0)
Running /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit/s2n_psk_test.c ...
<end of output>
Test time = 0.16 sec
----------------------------------------------------------
Test Failed.
187/239 Testing: s2n_server_new_session_ticket_test
187/239 Test: s2n_server_new_session_ticket_test
Command: "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/build/bin/s2n_server_new_session_ticket_test"
Directory: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit
"s2n_server_new_session_ticket_test" start time: Jul 17 05:27 CST
Output:
----------------------------------------------------------
Stacktrace is:
0 libs2n.1.dylib 0x00123e60 s2n_calculate_stacktrace + 80
1 libs2n.1.dylib 0x001294a0 s2n_stuffer_write_reservation + 188
2 libs2n.1.dylib 0x001295b4 s2n_stuffer_write_vector_size + 148
3 s2n_server_new_session_ticket_test 0x000047e8 s2n_tls13_server_nst_write + 620
4 s2n_server_new_session_ticket_test 0x000147e0 main + 28572
5 s2n_server_new_session_ticket_test 0x00002f1c start + 68
6 s2n_server_new_session_ticket_test 0x00001000 __dso_handle + 0
FAILED test 171
(memcmp( (output->data), (expected_session_secret.data), (expected_session_secret.size) )) == (0) is not true (/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit/s2n_server_new_session_ticket_test.c:450)
Error Message: 'no error'
Debug String: '(null)'
System Error: Unknown error: 0 (0)
Running /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit/s2n_server_new_session_ticket_test.c ...
<end of output>
Test time = 0.53 sec
----------------------------------------------------------
Test Failed.
215/239 Testing: s2n_tls13_handshake_early_data_test
215/239 Test: s2n_tls13_handshake_early_data_test
Command: "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/build/bin/s2n_tls13_handshake_early_data_test"
Directory: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit
"s2n_tls13_handshake_early_data_test" start time: Jul 17 05:27 CST
Output:
----------------------------------------------------------
Stacktrace is:
FAILED test 10
(memcmp( (client_conn->secure->client_implicit_iv), (iv.data), (iv.size) )) == (0) is not true (/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit/s2n_tls13_handshake_early_data_test.c:294)
Error Message: 'no error'
Debug String: '(null)'
System Error: Invalid argument (22)
Running /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit/s2n_tls13_handshake_early_data_test.c ...
<end of output>
Test time = 0.17 sec
----------------------------------------------------------
Test Failed.
218/239 Testing: s2n_tls13_hybrid_shared_secret_test
218/239 Test: s2n_tls13_hybrid_shared_secret_test
Command: "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/build/bin/s2n_tls13_hybrid_shared_secret_test"
Directory: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit
"s2n_tls13_hybrid_shared_secret_test" start time: Jul 17 05:27 CST
Output:
----------------------------------------------------------
Stacktrace is:
FAILED test 23
(memcmp( (test_vector->expected_client_traffic_secret->data), (client_traffic_secret.data), (client_traffic_secret.size) )) == (0) is not true (/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit/s2n_tls13_hybrid_shared_secret_test.c:253)
Error Message: 'no error'
Debug String: '(null)'
System Error: Unknown error: 0 (0)
Running /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit/s2n_tls13_hybrid_shared_secret_test.c ...
<end of output>
Test time = 0.20 sec
----------------------------------------------------------
Test Failed.
219/239 Testing: s2n_tls13_key_schedule_rfc8448_test
219/239 Test: s2n_tls13_key_schedule_rfc8448_test
Command: "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/build/bin/s2n_tls13_key_schedule_rfc8448_test"
Directory: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit
"s2n_tls13_key_schedule_rfc8448_test" start time: Jul 17 05:27 CST
Output:
----------------------------------------------------------
Stacktrace is:
FAILED test 4
(memcmp( ((conn)->secure->server_implicit_iv), ((iv).data), ((iv).size) )) == (0) is not true (/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit/s2n_tls13_key_schedule_rfc8448_test.c:148)
Error Message: 'no error'
Debug String: '(null)'
System Error: Invalid argument (22)
Running /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit/s2n_tls13_key_schedule_rfc8448_test.c ...
<end of output>
Test time = 0.17 sec
----------------------------------------------------------
Test Failed.
221/239 Testing: s2n_tls13_keys_test
221/239 Test: s2n_tls13_keys_test
Command: "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/build/bin/s2n_tls13_keys_test"
Directory: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit
"s2n_tls13_keys_test" start time: Jul 17 05:27 CST
Output:
----------------------------------------------------------
Stacktrace is:
FAILED test 4
(memcmp( (app_secret_update.data), (updated_application_secret.data), (app_secret_update.size) )) == (0) is not true (/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit/s2n_tls13_keys_test.c:64)
Error Message: 'no error'
Debug String: '(null)'
System Error: Invalid argument (22)
Running /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit/s2n_tls13_keys_test.c ...
<end of output>
Test time = 0.17 sec
----------------------------------------------------------
Test Failed.
225/239 Testing: s2n_tls13_prf_test
225/239 Test: s2n_tls13_prf_test
Command: "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/build/bin/s2n_tls13_prf_test"
Directory: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit
"s2n_tls13_prf_test" start time: Jul 17 05:27 CST
Output:
----------------------------------------------------------
Stacktrace is:
FAILED test 371
(memcmp(output_buf, expected_expanded, sizeof(output_buf))) == (0) is not true (/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit/s2n_tls13_prf_test.c:137)
Error Message: 'no error'
Debug String: '(null)'
System Error: Invalid argument (22)
Running /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit/s2n_tls13_prf_test.c ...
<end of output>
Test time = 0.17 sec
----------------------------------------------------------
Test Failed.
227/239 Testing: s2n_tls13_secrets_rfc8448_test
227/239 Test: s2n_tls13_secrets_rfc8448_test
Command: "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/build/bin/s2n_tls13_secrets_rfc8448_test"
Directory: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit
"s2n_tls13_secrets_rfc8448_test" start time: Jul 17 05:27 CST
Output:
----------------------------------------------------------
Stacktrace is:
FAILED test 12
(memcmp( (conn->secrets.version.tls13.extract_secret), (handshake_secret.data), (handshake_secret.size) )) == (0) is not true (/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit/s2n_tls13_secrets_rfc8448_test.c:164)
Error Message: 'no error'
Debug String: '(null)'
System Error: Invalid argument (22)
Running /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_s2n-tls/s2n-tls/work/s2n-tls-1.3.47/tests/unit/s2n_tls13_secrets_rfc8448_test.c ...
<end of output>
Test time = 0.17 sec
----------------------------------------------------------
Test Failed.
Thanks for opening an issue; I don't think we can run tests on PowerPC in our CI. It would be hard for us to actually fix these bugs and support a PowerPC build unless we can get it in our CI.
Thanks for opening an issue; I don't think we can run tests on PowerPC in our CI. It would be hard for us to actually fix these bugs and support a PowerPC build unless we can get it in our CI.
@maddeleine Thank you for responding. Do tests pass on Linux PowerPC? That should be pretty feasible to test, as it supports currently produced systems, as well as emulation via Qemu etc.
@barracuda156 I actually don't know if tests pass on Linux PowerPC; I don't think anyone has tested that yet. If we wanted to support a PowerPC build probably the only approach we could take here is emulation with Qemu. Also I'm also not sure why those particular tests are failing...
@maddeleine If support PowerPC on any current platform is doable (preferably Big endian – Linux, *BSD and AIX all support it), that will be great (and PowerPC is very much alive, produced and developed – just not by Apple). Then whatever happens to fail specifically on Darwin PPC, we can work through on our end in Macports.
For kTLS we're looking at how best to utilize a virtualized test setup, but even if we had the infrastructure ready for this, we'd need an upstream image, and iirc, Apple's VM EULA stance was pretty restrictive. Where did you get your image, install media or starting point for such a setup, if you don't mind us asking ? Or do you have some reference guide that you can share ?
@dougch I am not a lawyer and cannot speak on legal matter here, but I would assume that using server versions in a VM was not prohibited, otherwise Parallels etc. could not have advertised that they supported those.
However, what I rather meant above is using Linux or BSD for PowerPC, natively (provided hardware is available, physical or remote, like Thalos or IBM) or in Qemu emulation. They are presently supported and should exist under acceptable legal terms. There are some ABI differences between ELF, AIX and Darwin, mostly in assembler, but it is quite unrealistic to expect someone in upstream would bother with old Darwin, and also as long as, say, Linux Big-endian works fine on 32-bit, Darwin should be good too.
However, what I rather meant above is using Linux or BSD for PowerPC, natively (provided hardware is available, physical or remote, like Thalos or IBM) or in Qemu emulation. They are presently supported and should exist under acceptable legal terms.
Got it, that is much more approachable, and it looks like Ubuntu16 has PowerPC support https://cloud-images.ubuntu.com/releases/xenial/release/
Output of failed tests:
I will rerun with verbose and update.