=begin
Easily reproducible on Windows 7 with latest 1.9.2 dev builds (with MINGW):
D:\work\jruby-dev>pik ruby -rsocket -e "p Socket.gethostbyname('localhost')"
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
["Oxford", [], 2, "\177\000\000\001"]
ruby 1.8.6 (2009-08-04 patchlevel 383) [i386-mingw32]
["Oxford", [], 2, "\177\000\000\001"]
ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]
["Oxford", [], 2, "\177\000\000\001"]
ruby 1.8.7 (2009-06-12 patchlevel 174) [i386-mswin32]
["Oxford", [], 2, "\177\000\000\001"]
ruby 1.9.0 (2008-06-20 revision 17482) [i386-mswin32]
["Oxford", [], 2, "\x7F\x00\x00\x01"]
ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mswin32]
["Oxford", [], 2, "\x7F\x00\x00\x01"]
ruby 1.9.1p0 (2009-01-30 revision 21907) [x64-mswin64_80]
-e:1:in gethostbyname': unknown socket family:23 (SocketError) from -e:1:in
'
ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-mswin32]
["Oxford", [], 2, "\x7F\x00\x00\x01"]
ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32]
["Oxford", [], 2, "\x7F\x00\x00\x01"]
ruby 1.9.2dev (2009-07-18) [i386-mswin32]
["Oxford", [], 2, "\x7F\x00\x00\x01"]
ruby 1.9.2dev (2009-11-12 trunk 25723) [i386-mingw32]
-e:1: [BUG] Segmentation fault
ruby 1.9.2dev (2009-11-12 trunk 25723) [i386-mingw32]
-- control frame ----------
c:0004 p:---- s:0011 b:0011 l:000010 d:000010 CFUNC :gethostbyname
c:0003 p:0018 s:0007 b:0006 l:0004ac d:00205c EVAL -e:1
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0004ac d:0004ac TOP
-e:1:in <main>' -e:1:in
gethostbyname'
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
ruby 1.9.2dev (2010-01-25 trunk 26402) [i386-mingw32]
-e:1: [BUG] Segmentation fault
ruby 1.9.2dev (2010-01-25 trunk 26402) [i386-mingw32]
-- control frame ----------
c:0004 p:---- s:0011 b:0011 l:000010 d:000010 CFUNC :gethostbyname
c:0003 p:0018 s:0007 b:0006 l:00042c d:001b6c EVAL -e:1
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:00042c d:00042c TOP
-e:1:in <main>' -e:1:in
gethostbyname'
=end