Project

General

Profile

Bug #1541

mingw ssl: Errno::ENOTSOCK: An operation was attempted on something that is not a socket.

Added by rogerdpack (Roger Pack) about 11 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
ruby 1.9.2dev (2009-05-25 trunk 23567) [i386-mingw32]
Backport:
[ruby-core:23639]

Description

=begin
If you delete test_io.rb and test_exception.rb and re-run make test-all for mingw, it completes!
Yea!

Here are a few bug reports from said run.
mingw32, gcc 3.4.5, TRUNK.

overall result: 6050 tests, 2510241 assertions, 40 failures, 89 errors, 7 skips

the first 9 look related:

1) Error:
test_client_auth(OpenSSL::TestSSL):
Errno::ENOTSOCK: An operation was attempted on something that is not a socket.
c:/dev/downloads/ruby_trunk/.ext/common/openssl/ssl-internal.rb:160:in accept'
c:/dev/downloads/ruby_trunk/.ext/common/openssl/ssl-internal.rb:160:in
accept'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:79:in block in server_loop'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:76:in
loop'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:76:in server_loop'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:124:in
block in start_server'

2) Error:
test_client_session(OpenSSL::TestSSL):
Errno::ENOTSOCK: An operation was attempted on something that is not a socket.
c:/dev/downloads/ruby_trunk/.ext/common/openssl/ssl-internal.rb:160:in accept'
c:/dev/downloads/ruby_trunk/.ext/common/openssl/ssl-internal.rb:160:in
accept'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:79:in block in server_loop'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:76:in
loop'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:76:in server_loop'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:124:in
block in start_server'

3) Error:
test_connect_and_close(OpenSSL::TestSSL):
Errno::ENOTSOCK: An operation was attempted on something that is not a socket.
c:/dev/downloads/ruby_trunk/.ext/common/openssl/ssl-internal.rb:160:in accept'
c:/dev/downloads/ruby_trunk/.ext/common/openssl/ssl-internal.rb:160:in
accept'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:79:in block in server_loop'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:76:in
loop'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:76:in server_loop'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:124:in
block in start_server'

4) Error:
test_parallel(OpenSSL::TestSSL):
Errno::ENOTSOCK: An operation was attempted on something that is not a socket.
c:/dev/downloads/ruby_trunk/.ext/common/openssl/ssl-internal.rb:160:in accept'
c:/dev/downloads/ruby_trunk/.ext/common/openssl/ssl-internal.rb:160:in
accept'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:79:in block in server_loop'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:76:in
loop'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:76:in server_loop'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:124:in
block in start_server'

5) Error:
test_post_connection_check(OpenSSL::TestSSL):
Errno::ENOTSOCK: An operation was attempted on something that is not a socket.
c:/dev/downloads/ruby_trunk/.ext/common/openssl/ssl-internal.rb:160:in accept'
c:/dev/downloads/ruby_trunk/.ext/common/openssl/ssl-internal.rb:160:in
accept'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:79:in block in server_loop'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:76:in
loop'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:76:in server_loop'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:124:in
block in start_server'

6) Error:
test_read_and_write(OpenSSL::TestSSL):
Errno::ENOTSOCK: An operation was attempted on something that is not a socket.
c:/dev/downloads/ruby_trunk/.ext/common/openssl/ssl-internal.rb:160:in accept'
c:/dev/downloads/ruby_trunk/.ext/common/openssl/ssl-internal.rb:160:in
accept'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:79:in block in server_loop'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:76:in
loop'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:76:in server_loop'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:124:in
block in start_server'

7) Error:
test_server_session(OpenSSL::TestSSL):
Errno::ENOTSOCK: An operation was attempted on something that is not a socket.
c:/dev/downloads/ruby_trunk/.ext/common/openssl/ssl-internal.rb:160:in accept'
c:/dev/downloads/ruby_trunk/.ext/common/openssl/ssl-internal.rb:160:in
accept'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:79:in block in server_loop'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:76:in
loop'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:76:in server_loop'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:124:in
block in start_server'

8) Error:
test_ssl_read_nonblock(OpenSSL::TestSSL):
Errno::ENOTSOCK: An operation was attempted on something that is not a socket.
c:/dev/downloads/ruby_trunk/.ext/common/openssl/ssl-internal.rb:160:in accept'
c:/dev/downloads/ruby_trunk/.ext/common/openssl/ssl-internal.rb:160:in
accept'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:79:in block in server_loop'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:76:in
loop'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:76:in server_loop'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:124:in
block in start_server'

9) Error:
test_starttls(OpenSSL::TestSSL):
Errno::ENOTSOCK: An operation was attempted on something that is not a socket.
c:/dev/downloads/ruby_trunk/.ext/common/openssl/ssl-internal.rb:160:in accept'
c:/dev/downloads/ruby_trunk/.ext/common/openssl/ssl-internal.rb:160:in
accept'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:79:in block in server_loop'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:76:in
loop'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:76:in server_loop'
c:/dev/downloads/ruby_trunk/test/openssl/test_ssl.rb:124:in
block in start_server'

Thanks much for your help with any of these. Just wanted to bring them to public knowledge, as well as the next ones.
-=r
=end

#1

Updated by yugui (Yuki Sonoda) almost 11 years ago

  • Assignee set to nobu (Nobuyoshi Nakada)
  • Target version set to 1.9.2

=begin

=end

#2

Updated by usa (Usaku NAKAMURA) about 10 years ago

  • Category set to ext
  • Status changed from Open to Feedback

=begin
Roger, do these failures still exists?
I cannot reproduce them on mswin...
I want to identify the problem part; mingw? openssl itself? or others?
=end

#3

Updated by rogerdpack (Roger Pack) about 10 years ago

  • Status changed from Feedback to Closed
  • % Done changed from 0 to 100

=begin
It appears fixed now with

ruby 1.9.3dev (2010-06-03 trunk 28150) i386-mingw32

The only failures I see with make test-all are:
http://gist.github.com/424180
(12 failures)

Thanks for the improvement.

-roger
=end

#4

Updated by usa (Usaku NAKAMURA) about 10 years ago

=begin
Hello,

In message "[ruby-core:30577] [Bug #1541][Closed] mingw ssl: Errno::ENOTSOCK: An operation was attempted on something that is not a socket."
on Jun.04,2010 02:23:43, redmine@ruby-lang.org wrote:

It appears fixed now with

ruby 1.9.3dev (2010-06-03 trunk 28150) i386-mingw32

The only failures I see with make test-all are:
http://gist.github.com/424180
(12 failures)

Thanks for the improvement.

Thank you for reporting!

short comments to your failures:

1) #3387, and fixed at r28156
6) bug of test. it's skipped on ruby_1_9_2
7) unknown and cannot reproduce. I'm using
"OpenSSL 1.0.0 29 Mar 2010", build by myself
8) #3370, and seki-san is trying now.
10) unknown and cannot reproduce. environment (codepage) dependent?
11) ditto.
18) ditto.
19) ditto.
20) unknown and cannot reproduce. environment (timezone) dependent?
27) I decide that this is a problem of GDBM.
28) ditto.
29) cannot reproduce. hmm?
59)-61) http://rubyforge.org/tracker/index.php?func=detail&aid=28249&group_id=627&atid=2472
68) unknown and cannot reproduce. hmm?
69) similar to #3345, and it's fixed at r28037 and related commits.
did you install before running test-all?
70) cannot reproduce. environment (codepage) dependent?

Regards,
--
U.Nakamura usa@garbagecollect.jp

=end

#5

Updated by usa (Usaku NAKAMURA) about 10 years ago

=begin
Hello,

In message "[ruby-core:30581] Re: [Bug #1541][Closed] mingw ssl: Errno::ENOTSOCK: An operation was attempted on something that is not a socket."
on Jun.04,2010 11:58:13, usa@garbagecollect.jp wrote:

69) similar to #3345, and it's fixed at r28037 and related commits.
did you install before running test-all?

Oops, sorry, this is not fixed yet.
My WEBrick is patched. So, #3345 is still oepn.

Regards,
--
U.Nakamura usa@garbagecollect.jp

=end

Also available in: Atom PDF