2025-07-21 01:27 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0004736Spring engineGeneralpublic2015-04-09 16:53
ReporterUnitedMarsupials 
Assigned TojK 
PrioritynormalSeverityminorReproducibilityalways
StatusfeedbackResolutionreopened 
Product Version98.0 
Target VersionFixed in Version 
Summary0004736: "make check" fails in test/engine/System/Net/TestUDPListener.cpp:
Descriptiontest 1
      Start 1: testUDPListener

1: Test command: /home/ports/games/spring/work/spring_98.0/test/test_UDPListener
1: Test timeout computed to be: 9.99988e+06
1: Warning: Opening socket on loopback address. Other users will not be able to connect!
1: Running 1 test case...
1: Binding UDP socket to IP (v4) 127.0.0.1 port 11111
1: Binding UDP socket to IP (v4) 0.0.0.0 port 11111
1: /home/ports/games/spring/work/spring_98.0/test/engine/System/Net/TestUDPListener.cpp(22): error in "TryBindSocket": check TryBindAddr(socket, "::") failed
1: /home/ports/games/spring/work/spring_98.0/test/engine/System/Net/TestUDPListener.cpp(23): error in "TryBindSocket": check TryBindAddr(socket, "::1") failed
1: Warning: Opening socket on loopback address. Other users will not be able to connect!
1: Binding UDP socket to IP (v4) 127.0.0.1 port 11111
1: Binding UDP socket to IP (v4) 74.125.226.166 port 11111
1: /home/ports/games/spring/work/spring_98.0/test/engine/System/Net/TestUDPListener.cpp(49): error in "TryBindSocket": check TryBindPort(socket, 1024) failed
1: /home/ports/games/spring/work/spring_98.0/test/engine/System/Net/TestUDPListener.cpp(50): error in "TryBindSocket": check TryBindPort(socket, 11111) failed
1: /home/ports/games/spring/work/spring_98.0/test/engine/System/Net/TestUDPListener.cpp(51): error in "TryBindSocket": check TryBindPort(socket, 32000) failed
1: /home/ports/games/spring/work/spring_98.0/test/engine/System/Net/TestUDPListener.cpp(52): error in "TryBindSocket": check TryBindPort(socket, 65535) failed
1:
1: *** 6 failures detected in test suite "UDPListener"
 1/18 Test #1: testUDPListener ..................***Failed 0.21 sec
Warning: Opening socket on loopback address. Other users will not be able to connect!
Running 1 test case...
Binding UDP socket to IP (v4) 127.0.0.1 port 11111
Binding UDP socket to IP (v4) 0.0.0.0 port 11111
/home/ports/games/spring/work/spring_98.0/test/engine/System/Net/TestUDPListener.cpp(22): error in "TryBindSocket": check TryBindAddr(socket, "::") failed
/home/ports/games/spring/work/spring_98.0/test/engine/System/Net/TestUDPListener.cpp(23): error in "TryBindSocket": check TryBindAddr(socket, "::1") failed
Warning: Opening socket on loopback address. Other users will not be able to connect!
Binding UDP socket to IP (v4) 127.0.0.1 port 11111
Binding UDP socket to IP (v4) 74.125.226.166 port 11111
/home/ports/games/spring/work/spring_98.0/test/engine/System/Net/TestUDPListener.cpp(49): error in "TryBindSocket": check TryBindPort(socket, 1024) failed
/home/ports/games/spring/work/spring_98.0/test/engine/System/Net/TestUDPListener.cpp(50): error in "TryBindSocket": check TryBindPort(socket, 11111) failed
/home/ports/games/spring/work/spring_98.0/test/engine/System/Net/TestUDPListener.cpp(51): error in "TryBindSocket": check TryBindPort(socket, 32000) failed
/home/ports/games/spring/work/spring_98.0/test/engine/System/Net/TestUDPListener.cpp(52): error in "TryBindSocket": check TryBindPort(socket, 65535) failed

*** 6 failures detected in test suite "UDPListener"

....

94% tests passed, 1 tests failed out of 18

Total Test time (real) = 30.09 sec

The following tests FAILED:
          1 - testUDPListener (Failed)
Errors while running CTest
*** Error code 8

Steps To ReproduceBuild spring on FreeBSD. Attempt "make check".
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0014303

UnitedMarsupials (reporter)

Some of the failures may be explained by IPv6 being disabled on my system. But not others...

~0014321

jK (developer)

All are explained by disabled IPv6.

-> TryBindPort(socket, n) always tries to open a IPv6 connection

Also Spring prefers to open a IPv6 connection for online gaming, so it makes sense that the checks fail.

~0014327

UnitedMarsupials (reporter)

> Also Spring prefers to open a IPv6 connection for online
> gaming, so it makes sense that the checks fail.

Checks should only fail, if the application is miscompiled or otherwise unusable. Availability of IPv6 is outside of the application's scope completely and thus should not influence the success of the "make check".

Because IPv6 is not a requirement, this check should not be failing. If the availability of IPv6 on the host OS can not be determined at run-time, at least, it should be determined at configure/compile-time... I'll try to come up with a patch. Something like:

http://curl.haxx.se/mail/lib-2014-10/0141.html
+Notes

-Issue History
Date Modified Username Field Change
2015-04-09 01:29 UnitedMarsupials New Issue
2015-04-09 01:46 UnitedMarsupials Note Added: 0014303
2015-04-09 11:37 abma Summary make check fails in test/engine/System/Net/TestUDPListener.cpp: => "make check" fails in test/engine/System/Net/TestUDPListener.cpp:
2015-04-09 11:40 jK Note Added: 0014321
2015-04-09 11:40 jK Status new => closed
2015-04-09 11:40 jK Assigned To => jK
2015-04-09 11:40 jK Resolution open => no change required
2015-04-09 16:53 UnitedMarsupials Note Added: 0014327
2015-04-09 16:53 UnitedMarsupials Status closed => feedback
2015-04-09 16:53 UnitedMarsupials Resolution no change required => reopened
+Issue History