Bug #714: Socket bug in Ruby-mswin32
http://redmine.ruby-lang.org/issues/show/714

Author: Heesob Park
Status: Open, Priority: Normal

All 1.8.6/1.8.7 releases in http://www.garbagecollect.jp/ruby/mswin32/en/download/release.html and also One-Click Installer since 1.8.6 fail to work

s = Socket.new(Socket::AF_INET, Socket::SOCK_RAW,1)

like this:

irb(main):001:0> require 'socket'
=> true
irb(main):002:0> s = Socket.new(Socket::AF_INET, Socket::SOCK_RAW,1)
(irb):3: [BUG] rb_sys_fail(socket(2)) - errno == 0
ruby 1.8.6 (2008-08-11) [i386-mswin32]


This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.


irb(main):001:0> require 'socket'
=> true
irb(main):002:0> s = Socket.new(Socket::AF_INET, Socket::SOCK_RAW,1)
(irb):2: [BUG] rb_sys_fail(socket(2)) - errno == 0
ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-mswin32]


This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.


I suspect it is related with USE_WINSOCK2 macro or --with-winsock2 build option.


----------------------------------------
http://redmine.ruby-lang.org