Bugs item #1200, was opened at 2004-12-13 10:18 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=1200&group_id=426 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Tim Smith (tsmith) Assigned to: Nobody (None) Summary: Segmentation Fault with Sockets and Threads Initial Comment: With ruby 1.8.2 (2004-11-06) [i386-mswin32], the following code segfaults after about 12 seconds. Removing socket.close stops the fault. require "socket" socket = TCPSocket.new "www.google.com", 80 start = Time.now while Time.now - start < 5 Thread.new {socket.getc} end socket.close ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=1200&group_id=426