From: Robert Klemme Date: 2011-09-27T16:14:26+09:00 Subject: Re: problems with Benchmark on ruby 1.8.4 (rhe 5.3) On Mon, Sep 26, 2011 at 9:49 PM, Russell F. wrote: > Thanks for your response Robert! > > Robert Klemme wrote in post #1023772: > >> >> Dunno.  You could try to find out where it hangs with >> >> set_trace_func lambda {|*a| $stderr.puts a.inspect} >> > > I've just realised that my description was a bit misleading -- the code > does not hang -- process_host executes normally  but the puts never gets > executed -- weird. > > I think this is an old bug -- I have had some other odd problems with > this version.  I think I'll quietly install a local version of 1.8.7 and > use that. > > I just wanted to be sure that I was not missing something obvious (it > would not be the first time;) Since we don't know what happens in process_host we can only speculate. A typical error is to use IO.popen with "w" and to forget to close the input. The usually Unix processes like cat do not terminate because there is no EOF on stdin but since you're not sending more input you're in a deadlock situation. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/