Skip to content

[BUG] Test failures on big-endian #2697

@matoro

Description

@matoro

Hi - I am running into test failures on big-endian architectures. I have two identical PPC VM's, one LE one BE, with identical kernels and userspaces.

In the LE machine:

100% tests passed, 0 tests failed out of 217

Total Test time (real) = 126.86 sec

The following tests did not run:
        208 - CTimer.SleeptoAccuracy (Disabled)

In the BE machine:

96% tests passed, 9 tests failed out of 217

Total Test time (real) =  88.52 sec

The following tests did not run:
        208 - CTimer.SleeptoAccuracy (Disabled)

The following tests FAILED:
         24 - CIPAddress.IPv6_pton (Failed)
         89 - TestFEC.Connection (Failed)
         90 - TestFEC.ConnectionReorder (Failed)
         91 - TestFEC.ConnectionFull1 (Failed)
         92 - TestFEC.ConnectionFull2 (Failed)
         93 - TestFEC.ConnectionMess (Failed)
         94 - TestFEC.ConnectionForced (Failed)
        105 - TestIPv6.v6_calls_v4 (Failed)
        200 - SyncEvent.WaitForTwoNotifyOne (Failed)

Version tested: srt-1.5.1
Specific failures from LastTest.log:

24/218 Testing: CIPAddress.IPv6_pton
24/218 Test: CIPAddress.IPv6_pton
Command: "/var/tmp/portage/net-libs/srt-1.5.1/work/srt-1.5.1_build-.ppc64/test-srt" "--gtest_filter=CIPAddress.IPv6_pton"
Directory: /var/tmp/portage/net-libs/srt-1.5.1/work/srt-1.5.1_build-.ppc64
"CIPAddress.IPv6_pton" start time: Mar 22 21:03 UTC
Output:
----------------------------------------------------------
Running main() from /var/tmp/portage/dev-cpp/gtest-1.11.0/work/googletest-release-1.11.0/googletest/src/gtest_main.cc
Note: Google Test filter = CIPAddress.IPv6_pton
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from CIPAddress
[ RUN      ] CIPAddress.IPv6_pton
/var/tmp/portage/net-libs/srt-1.5.1/work/srt-1.5.1/test/test_common.cpp:40: Failure
Expected equality of these values:
  peer
    Which is: 32-byte object <00-0A 10-68 00-00 00-00 20-01 0D-B8 85-A3 08-D3 13-19 8A-2E 03-70 73-48 00-00 00-00 00-00 00-1C>
  host
    Which is: 32-byte object <00-0A 10-68 00-00 00-00 B8-0D 01-20 D3-08 A3-85 2E-8A 19-13 48-73 70-03 00-00 00-00 00-00 00-1C>
Peer 2001:db8:85a3:8d3:1319:8a2e:370:7348:4200 host b80d:120:d308:a385:2e8a:1913:4873:7003:4200
[  FAILED  ] CIPAddress.IPv6_pton (0 ms)
[----------] 1 test from CIPAddress (0 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (0 ms total)
[  PASSED  ] 0 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] CIPAddress.IPv6_pton

 1 FAILED TEST
<end of output>
Test time =   0.03 sec
----------------------------------------------------------
Test Failed.
"CIPAddress.IPv6_pton" end time: Mar 22 21:03 UTC
"CIPAddress.IPv6_pton" time elapsed: 00:00:00
----------------------------------------------------------


89/218 Testing: TestFEC.Connection
89/218 Test: TestFEC.Connection
Command: "/var/tmp/portage/net-libs/srt-1.5.1/work/srt-1.5.1_build-.ppc64/test-srt" "--gtest_filter=TestFEC.Connection"
Directory: /var/tmp/portage/net-libs/srt-1.5.1/work/srt-1.5.1_build-.ppc64
"TestFEC.Connection" start time: Mar 22 21:04 UTC
Output:
----------------------------------------------------------
Running main() from /var/tmp/portage/dev-cpp/gtest-1.11.0/work/googletest-release-1.11.0/googletest/src/gtest_main.cc
Note: Google Test filter = TestFEC.Connection
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from TestFEC
[ RUN      ] TestFEC.Connection
21:04:22.323764/SRT:RcvQ:w1*E:SRT.cn: PEER'S FILTER CONFIG [,cefsloc,01:swor] has been rejected
21:04:22.333896/SRT:RcvQ:w1!W:SRT.cn: @342992677:newConnection: connection rejected due to: INTERNAL REJECTION - ERROR:FILTER
21:04:22.333925/SRT:RcvQ:w1!W:SRT.cn: processConnectRequest: rsp(REJECT): 1014 - Packet Filter settings error
/var/tmp/portage/net-libs/srt-1.5.1/work/srt-1.5.1/test/test_fec_rebuilding.cpp:311: Failure
Expected: (a) != (SRT_ERROR), actual: -1 vs -1
[  FAILED  ] TestFEC.Connection (2009 ms)
[----------] 1 test from TestFEC (2009 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (2009 ms total)
[  PASSED  ] 0 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] TestFEC.Connection

 1 FAILED TEST
<end of output>
Test time =   2.22 sec
----------------------------------------------------------
Test Failed.
"TestFEC.Connection" end time: Mar 22 21:04 UTC
"TestFEC.Connection" time elapsed: 00:00:02
----------------------------------------------------------


90/218 Testing: TestFEC.ConnectionReorder
90/218 Test: TestFEC.ConnectionReorder
Command: "/var/tmp/portage/net-libs/srt-1.5.1/work/srt-1.5.1_build-.ppc64/test-srt" "--gtest_filter=TestFEC.ConnectionReorder"
Directory: /var/tmp/portage/net-libs/srt-1.5.1/work/srt-1.5.1_build-.ppc64
"TestFEC.ConnectionReorder" start time: Mar 22 21:04 UTC
Output:
----------------------------------------------------------
Running main() from /var/tmp/portage/dev-cpp/gtest-1.11.0/work/googletest-release-1.11.0/googletest/src/gtest_main.cc
Note: Google Test filter = TestFEC.ConnectionReorder
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from TestFEC
[ RUN      ] TestFEC.ConnectionReorder
21:04:24.681602/SRT:RcvQ:w1*E:SRT.cn: PEER'S FILTER CONFIG [,cefsloc,01:swor] has been rejected
21:04:24.692087/SRT:RcvQ:w1!W:SRT.cn: @680337288:newConnection: connection rejected due to: INTERNAL REJECTION - ERROR:FILTER
21:04:24.692113/SRT:RcvQ:w1!W:SRT.cn: processConnectRequest: rsp(REJECT): 1014 - Packet Filter settings error
/var/tmp/portage/net-libs/srt-1.5.1/work/srt-1.5.1/test/test_fec_rebuilding.cpp:364: Failure
Expected: (a) != (SRT_ERROR), actual: -1 vs -1
[  FAILED  ] TestFEC.ConnectionReorder (2007 ms)
[----------] 1 test from TestFEC (2007 ms total)
 
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (2007 ms total)
[  PASSED  ] 0 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] TestFEC.ConnectionReorder
 
 1 FAILED TEST
<end of output>
Test time =   2.29 sec
----------------------------------------------------------
Test Failed.
"TestFEC.ConnectionReorder" end time: Mar 22 21:04 UTC
"TestFEC.ConnectionReorder" time elapsed: 00:00:02
----------------------------------------------------------


91/218 Testing: TestFEC.ConnectionFull1
91/218 Test: TestFEC.ConnectionFull1
Command: "/var/tmp/portage/net-libs/srt-1.5.1/work/srt-1.5.1_build-.ppc64/test-srt" "--gtest_filter=TestFEC.ConnectionFull1"
Directory: /var/tmp/portage/net-libs/srt-1.5.1/work/srt-1.5.1_build-.ppc64
"TestFEC.ConnectionFull1" start time: Mar 22 21:04 UTC
Output:
----------------------------------------------------------
Running main() from /var/tmp/portage/dev-cpp/gtest-1.11.0/work/googletest-release-1.11.0/googletest/src/gtest_main.cc
Note: Google Test filter = TestFEC.ConnectionFull1
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from TestFEC
[ RUN      ] TestFEC.ConnectionFull1
21:04:27.041575/SRT:RcvQ:w1*E:SRT.cn: PEER'S FILTER CONFIG [,cefsloc,01:swor,02::qraevenal,rtuoyeve:] has been rejected
21:04:27.046499/SRT:RcvQ:w1!W:SRT.cn: @48051114:newConnection: connection rejected due to: INTERNAL REJECTION - ERROR:FILTER
21:04:27.046527/SRT:RcvQ:w1!W:SRT.cn: processConnectRequest: rsp(REJECT): 1014 - Packet Filter settings error
/var/tmp/portage/net-libs/srt-1.5.1/work/srt-1.5.1/test/test_fec_rebuilding.cpp:417: Failure
Expected: (a) != (SRT_ERROR), actual: -1 vs -1
[  FAILED  ] TestFEC.ConnectionFull1 (2009 ms)
[----------] 1 test from TestFEC (2009 ms total)
 
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (2009 ms total)
[  PASSED  ] 0 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] TestFEC.ConnectionFull1
 
 1 FAILED TEST
<end of output>
Test time =   2.34 sec
----------------------------------------------------------
Test Failed.
"TestFEC.ConnectionFull1" end time: Mar 22 21:04 UTC
"TestFEC.ConnectionFull1" time elapsed: 00:00:02
----------------------------------------------------------


92/218 Testing: TestFEC.ConnectionFull2
92/218 Test: TestFEC.ConnectionFull2
Command: "/var/tmp/portage/net-libs/srt-1.5.1/work/srt-1.5.1_build-.ppc64/test-srt" "--gtest_filter=TestFEC.ConnectionFull2"
Directory: /var/tmp/portage/net-libs/srt-1.5.1/work/srt-1.5.1_build-.ppc64
"TestFEC.ConnectionFull2" start time: Mar 22 21:04 UTC
Output:
----------------------------------------------------------
Running main() from /var/tmp/portage/dev-cpp/gtest-1.11.0/work/googletest-release-1.11.0/googletest/src/gtest_main.cc
Note: Google Test filter = TestFEC.ConnectionFull2
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from TestFEC
[ RUN      ] TestFEC.ConnectionFull2
21:04:29.276540/SRT:RcvQ:w1*E:SRT.cn: PEER'S FILTER CONFIG [,cefsloc,01:swor,02::qraawlal,syuoyave:t] has been rejected
21:04:29.281613/SRT:RcvQ:w1!W:SRT.cn: @341528805:newConnection: connection rejected due to: INTERNAL REJECTION - ERROR:FILTER
21:04:29.281643/SRT:RcvQ:w1!W:SRT.cn: processConnectRequest: rsp(REJECT): 1014 - Packet Filter settings error
/var/tmp/portage/net-libs/srt-1.5.1/work/srt-1.5.1/test/test_fec_rebuilding.cpp:469: Failure
Expected: (a) != (SRT_ERROR), actual: -1 vs -1
[  FAILED  ] TestFEC.ConnectionFull2 (2007 ms)
[----------] 1 test from TestFEC (2007 ms total)
 
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (2007 ms total)
[  PASSED  ] 0 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] TestFEC.ConnectionFull2
 
 1 FAILED TEST
<end of output>
Test time =   2.20 sec
----------------------------------------------------------
Test Failed.
"TestFEC.ConnectionFull2" end time: Mar 22 21:04 UTC
"TestFEC.ConnectionFull2" time elapsed: 00:00:02
----------------------------------------------------------


93/218 Testing: TestFEC.ConnectionMess
93/218 Test: TestFEC.ConnectionMess
Command: "/var/tmp/portage/net-libs/srt-1.5.1/work/srt-1.5.1_build-.ppc64/test-srt" "--gtest_filter=TestFEC.ConnectionMess"
Directory: /var/tmp/portage/net-libs/srt-1.5.1/work/srt-1.5.1_build-.ppc64
"TestFEC.ConnectionMess" start time: Mar 22 21:04 UTC
Output:
----------------------------------------------------------
Running main() from /var/tmp/portage/dev-cpp/gtest-1.11.0/work/googletest-release-1.11.0/googletest/src/gtest_main.cc
Note: Google Test filter = TestFEC.ConnectionMess
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from TestFEC
[ RUN      ] TestFEC.ConnectionMess
21:04:31.512007/SRT:RcvQ:w1*E:SRT.cn: PEER'S FILTER CONFIG [,cefslococ,:1:sl] has been rejected
21:04:31.512840/SRT:RcvQ:w1!W:SRT.cn: @885581131:newConnection: connection rejected due to: INTERNAL REJECTION - ERROR:FILTER
21:04:31.512867/SRT:RcvQ:w1!W:SRT.cn: processConnectRequest: rsp(REJECT): 1014 - Packet Filter settings error
/var/tmp/portage/net-libs/srt-1.5.1/work/srt-1.5.1/test/test_fec_rebuilding.cpp:522: Failure
Expected: (a) != (SRT_ERROR), actual: -1 vs -1
[  FAILED  ] TestFEC.ConnectionMess (2007 ms)
[----------] 1 test from TestFEC (2007 ms total)
 
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (2007 ms total)
[  PASSED  ] 0 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] TestFEC.ConnectionMess
 
 1 FAILED TEST
<end of output>
Test time =   2.18 sec
----------------------------------------------------------
Test Failed.
"TestFEC.ConnectionMess" end time: Mar 22 21:04 UTC
"TestFEC.ConnectionMess" time elapsed: 00:00:02
----------------------------------------------------------


94/218 Testing: TestFEC.ConnectionForced
94/218 Test: TestFEC.ConnectionForced
Command: "/var/tmp/portage/net-libs/srt-1.5.1/work/srt-1.5.1_build-.ppc64/test-srt" "--gtest_filter=TestFEC.ConnectionForced"
Directory: /var/tmp/portage/net-libs/srt-1.5.1/work/srt-1.5.1_build-.ppc64
"TestFEC.ConnectionForced" start time: Mar 22 21:04 UTC
Output:
----------------------------------------------------------
Running main() from /var/tmp/portage/dev-cpp/gtest-1.11.0/work/googletest-release-1.11.0/googletest/src/gtest_main.cc
Note: Google Test filter = TestFEC.ConnectionForced
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from TestFEC
[ RUN      ] TestFEC.ConnectionForced
21:04:33.612095/SRT:RcvQ:w1*E:SRT.cn: PEER'S FILTER CONFIG [,cefswor,02:sloc] has been rejected
21:04:33.617116/SRT:RcvQ:w1!W:SRT.cn: @735156762:newConnection: connection rejected due to: INTERNAL REJECTION - ERROR:FILTER
21:04:33.617145/SRT:RcvQ:w1!W:SRT.cn: processConnectRequest: rsp(REJECT): 1014 - Packet Filter settings error
/var/tmp/portage/net-libs/srt-1.5.1/work/srt-1.5.1/test/test_fec_rebuilding.cpp:573: Failure
Expected: (a) != (SRT_ERROR), actual: -1 vs -1
[  FAILED  ] TestFEC.ConnectionForced (2001 ms)
[----------] 1 test from TestFEC (2001 ms total)
 
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (2001 ms total)
[  PASSED  ] 0 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] TestFEC.ConnectionForced
 
 1 FAILED TEST
<end of output>
Test time =   2.07 sec
----------------------------------------------------------
Test Failed.
"TestFEC.ConnectionForced" end time: Mar 22 21:04 UTC
"TestFEC.ConnectionForced" time elapsed: 00:00:02
----------------------------------------------------------


105/218 Testing: TestIPv6.v6_calls_v4
105/218 Test: TestIPv6.v6_calls_v4
Command: "/var/tmp/portage/net-libs/srt-1.5.1/work/srt-1.5.1_build-.ppc64/test-srt" "--gtest_filter=TestIPv6.v6_calls_v4"
Directory: /var/tmp/portage/net-libs/srt-1.5.1/work/srt-1.5.1_build-.ppc64
"TestIPv6.v6_calls_v4" start time: Mar 22 21:04 UTC
Output:
----------------------------------------------------------
Running main() from /var/tmp/portage/dev-cpp/gtest-1.11.0/work/googletest-release-1.11.0/googletest/src/gtest_main.cc
Note: Google Test filter = TestIPv6.v6_calls_v4
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from TestIPv6
[ RUN      ] TestIPv6.v6_calls_v4
Calling: 0::FFFF:127.0.0.1(IPv6)
21:04:50.957713/SRT:RcvQ:w1*E:SRT.in: pton: IPE or net error: can't determine IPv4 carryover format: 0:0:0:0:ffff:0:100:7f
21:04:50.958523/SRT:RcvQ:w1*E:SRT.in: pton: IPE or net error: can't determine IPv4 carryover format: 0:0:0:0:ffff:0:100:7f
ACCEPTED Sock name: : 0.0.0.0:4200 (IPv4)
ACCEPTED Peer name: : 127.0.0.1:57028 (IPv4)
CALLER Sock name: : ::ffff:127.0.0.1:57028 (IPv6)
/var/tmp/portage/net-libs/srt-1.5.1/work/srt-1.5.1/test/test_ipv6.cpp:94: Failure
Expected: (memcmp(ipv6_zero, sn.get_addr(), sizeof ipv6_zero)) != (0), actual: 0 vs 0
EMPTY address in srt_getsockname
CALLER Peer name: : ::ffff:127.0.0.1:57028 (IPv6)
/var/tmp/portage/net-libs/srt-1.5.1/work/srt-1.5.1/test/test_ipv6.cpp:192: Failure
Expected equality of these values:
  sa_accepted.str()
    Which is: "0.0.0.0:4200"
  "127.0.0.1:4200"
[  FAILED  ] TestIPv6.v6_calls_v4 (39 ms)
[----------] 1 test from TestIPv6 (39 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (39 ms total)
[  PASSED  ] 0 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] TestIPv6.v6_calls_v4

 1 FAILED TEST
<end of output>
Test time =   0.08 sec
----------------------------------------------------------
Test Failed.
"TestIPv6.v6_calls_v4" end time: Mar 22 21:04 UTC
"TestIPv6.v6_calls_v4" time elapsed: 00:00:00
----------------------------------------------------------


200/218 Testing: SyncEvent.WaitForTwoNotifyOne
200/218 Test: SyncEvent.WaitForTwoNotifyOne
Command: "/var/tmp/portage/net-libs/srt-1.5.1/work/srt-1.5.1_build-.ppc64/test-srt" "--gtest_filter=SyncEvent.WaitForTwoNotifyOne"
Directory: /var/tmp/portage/net-libs/srt-1.5.1/work/srt-1.5.1_build-.ppc64
"SyncEvent.WaitForTwoNotifyOne" start time: Mar 22 21:05 UTC
Output:
----------------------------------------------------------
Running main() from /var/tmp/portage/dev-cpp/gtest-1.11.0/work/googletest-release-1.11.0/googletest/src/gtest_main.cc
Note: Google Test filter = SyncEvent.WaitForTwoNotifyOne
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from SyncEvent
[ RUN      ] SyncEvent.WaitForTwoNotifyOne
SyncEvent::WaitForTwoNotifyOne: NOTIFICATION came from 0 clients:
/var/tmp/portage/net-libs/srt-1.5.1/work/srt-1.5.1/test/test_sync.cpp:478: Failure
Expected equality of these values:
  notified_clients.size()
    Which is: 0
  1U
    Which is: 1
[  FAILED  ] SyncEvent.WaitForTwoNotifyOne (3001 ms)
[----------] 1 test from SyncEvent (3001 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (3001 ms total)
[  PASSED  ] 0 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] SyncEvent.WaitForTwoNotifyOne

 1 FAILED TEST
<end of output>
Test time =   3.03 sec
----------------------------------------------------------
Test Failed.
"SyncEvent.WaitForTwoNotifyOne" end time: Mar 22 21:05 UTC
"SyncEvent.WaitForTwoNotifyOne" time elapsed: 00:00:03
----------------------------------------------------------

The last of these failures, SyncEvent.WaitForTwoNotifyOne is intermittent and does not appear on every run, however it has never appeared on LE.

Thank you for taking a look, and please let me know if there is any other information I can provide!

Metadata

Metadata

Assignees

Labels

Type: BugIndicates an unexpected problem or unintended behavior[core]Area: Changes in SRT library core[tests]Area: Unit tests

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions