Bug #4797

'make test-all' on Fedora15 cause a lot of http test error

Added by Motohiro KOSAKI almost 3 years ago. Updated almost 3 years ago.

[ruby-core:36543]
Status:Rejected
Priority:Normal
Assignee:Motohiro KOSAKI
Category:-
Target version:1.9.3
ruby -v:ruby 1.9.3dev (2011-05-29 trunk 31763) [x86_64-linux] Backport:

Description

Currently, 'make test-all' on Fedora15 cause 66 errors. because

1) recent linux kernel doesn't allow port reuse even if using SO_REUSEADDR.
2) test/net/http doesn't have proper nil check when http server was failed to spawn.

r31764 fixed (2). and we should fix (1) too.


Finished tests in 102.937264s, 93.2218 tests/s, 21422.3878 assertions/s.

1) Error:
testget(TestNetHTTPS):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn
server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

2) Error:
test_get(TestNetHTTPS):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

3) Error:
testidentityverifyfailure(TestNetHTTPS):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn
server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

4) Error:
testidentityverify_failure(TestNetHTTPS):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

5) Error:
testpost(TestNetHTTPS):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn
server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

6) Error:
test_post(TestNetHTTPS):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

7) Error:
testtimeoutduringSSLhandshake(TestNetHTTPS):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn_server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

8) Error:
testtimeoutduringSSLhandshake(TestNetHTTPS):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

9) Error:
testverifynone(TestNetHTTPS):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn_server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

10) Error:
testverifynone(TestNetHTTPS):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

11) Error:
testget2(TestNetHTTPv12):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn
server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

12) Error:
testget2(TestNetHTTPv1_2):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

13) Error:
testgetbreak(TestNetHTTPv12):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn
server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

14) Error:
testgetbreak(TestNetHTTPv1_2):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

15) Error:
testgetimplicitstart(TestNetHTTPv12):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn_server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

16) Error:
testgetimplicitstart(TestNetHTTPv12):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

17) Error:
testhead(TestNetHTTPv12):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn
server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

18) Error:
testhead(TestNetHTTPv1_2):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

19) Error:
testpatch(TestNetHTTPv12):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn
server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

20) Error:
testpatch(TestNetHTTPv1_2):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

21) Error:
testpost(TestNetHTTPv12):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn
server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

22) Error:
testpost(TestNetHTTPv1_2):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

23) Error:
testrequest(TestNetHTTPv12):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn
server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

24) Error:
testrequest(TestNetHTTPv1_2):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

25) Error:
testsget(TestNetHTTPv12):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn_server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

26) Error:
testsget(TestNetHTTPv12):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

27) Error:
testspostform(TestNetHTTPv12):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn
server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

28) Error:
testspostform(TestNetHTTPv1_2):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

29) Error:
testsendrequest(TestNetHTTPv12):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn_server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

30) Error:
testsendrequest(TestNetHTTPv12):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

31) Error:
testsetform(TestNetHTTPv12):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn_server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

32) Error:
testsetform(TestNetHTTPv12):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

33) Error:
testsetformwithfile(TestNetHTTPv12):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn_server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

34) Error:
testsetformwithfile(TestNetHTTPv12):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

35) Error:
testtimeoutduringHTTPsession(TestNetHTTPv12):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn_server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

36) Error:
testtimeoutduringHTTPsession(TestNetHTTPv12):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

37) Error:
testchunkedbreak(TestNetHTTPv12chunked):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn
server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

38) Error:
testchunkedbreak(TestNetHTTPv12_chunked):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

39) Error:
testget(TestNetHTTPv12chunked):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn_server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

40) Error:
testget(TestNetHTTPv12chunked):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

41) Error:
testget2(TestNetHTTPv12chunked):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn_server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

42) Error:
testget2(TestNetHTTPv12chunked):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

43) Error:
testgetbreak(TestNetHTTPv12chunked):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn_server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

44) Error:
testgetbreak(TestNetHTTPv12chunked):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

45) Error:
testgetimplicitstart(TestNetHTTPv12chunked):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn
server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

46) Error:
testgetimplicitstart(TestNetHTTPv12_chunked):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

47) Error:
testhead(TestNetHTTPv12chunked):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn_server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

48) Error:
testhead(TestNetHTTPv12chunked):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

49) Error:
testpatch(TestNetHTTPv12chunked):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn_server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

50) Error:
testpatch(TestNetHTTPv12chunked):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

51) Error:
testpost(TestNetHTTPv12chunked):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn_server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

52) Error:
testpost(TestNetHTTPv12chunked):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

53) Error:
testrequest(TestNetHTTPv12chunked):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn_server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

54) Error:
testrequest(TestNetHTTPv12chunked):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

55) Error:
testsget(TestNetHTTPv12chunked):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn
server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

56) Error:
testsget(TestNetHTTPv12_chunked):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

57) Error:
testspostform(TestNetHTTPv12chunked):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn_server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

58) Error:
testspostform(TestNetHTTPv12chunked):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

59) Error:
testsendrequest(TestNetHTTPv12chunked):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn
server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

60) Error:
testsendrequest(TestNetHTTPv12_chunked):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

61) Error:
testsetform(TestNetHTTPv12chunked):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn
server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

62) Error:
testsetform(TestNetHTTPv12_chunked):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

63) Error:
testsetformwithfile(TestNetHTTPv12chunked):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn
server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

64) Error:
testsetformwithfile(TestNetHTTPv12_chunked):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

65) Error:
testtimeoutduringHTTPsession(TestNetHTTPv12chunked):
Errno::EADDRINUSE: Address already in use - bind(2)
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in new'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:59:in
spawn
server'
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:30:in setup'
./test/runner.rb:13:in
'

66) Error:
testtimeoutduringHTTPsession(TestNetHTTPv12_chunked):
NoMethodError: undefined method shutdown' for nil:NilClass
/home/kosaki/linux/ruby-svn/ruby/test/net/http/utils.rb:34:in
teardown'

9596 tests, 2205162 assertions, 0 failures, 66 errors, 30 skips
make: *** [yes-test-all] Error 66

History

#1 Updated by Motohiro KOSAKI almost 3 years ago

  • Status changed from Assigned to Rejected

I'm sorry. This is Linux bug. The kernel community think this is regression and
Dave already reverted the commit. I'd expect the revert commit will backport to
fedora soon.

see https://bugzilla.kernel.org/show_bug.cgi?id=32832

Thus, I'll close this ticket.
Thanks.

Also available in: Atom PDF