Project

General

Profile

Actions

Bug #3124

closed

SocketError on SnowLeopard (during make test-all)

Added by tenderlovemaking (Aaron Patterson) about 14 years ago. Updated about 13 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 1.9.2dev (2010-04-11 trunk 27293) [x86_64-darwin10.2.0]
Backport:
[ruby-core:29427]

Description

=begin
make test-all can't be run on Snow Leopard due to an error with TCPServer. The following code, when run on Snow Leopard will result in an error:

 require 'socket'
 TCPServer.new('localhost', 0)

It raises:

 $ ruby test.rb
 test.rb:2:in `initialize': getaddrinfo: nodename nor servname provided, or not known (SocketError)
 	from test.rb:2:in `new'
 	from test.rb:2:in `<main>'

I've attached a script to reproduce.
=end


Files

test.rb (47 Bytes) test.rb tenderlovemaking (Aaron Patterson), 04/11/2010 09:56 AM
patch-ruby_core_29427.diff (2.02 KB) patch-ruby_core_29427.diff fix this problem kimuraw (Wataru Kimura), 06/18/2010 01:00 AM
test_getaddrinfo.c (1.32 KB) test_getaddrinfo.c test code for getaddrinfo(3) kimuraw (Wataru Kimura), 06/18/2010 01:00 AM
patch-ruby_core_29427_2.diff (2.36 KB) patch-ruby_core_29427_2.diff rewrited patch kimuraw (Wataru Kimura), 06/18/2010 08:05 PM
patch-ruby_core_29427_3.diff (2.35 KB) patch-ruby_core_29427_3.diff kimuraw (Wataru Kimura), 06/22/2010 12:38 AM

Related issues 1 (0 open1 closed)

Related to Ruby 1.8 - Backport #3474: SocketError on SnowLeopard (during make test-all)Closedshyouhei (Shyouhei Urabe)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0