From: Federico Builes Date: 2008-12-22T01:50:40+09:00 Subject: [ruby-core:20765] Re: [Bug #911] ArgumentError in Resolv#getaddress On Dec 21, 2008, at 11:16 AM, Tanaka Akira wrote: > In article , > Federico Builes writes: > >> Please try to run the command several times in a row, it won't fail >> every time so I think it might be a thread-related problem >> (although I >> fail to see why it's triggered with only one address). > > I couldn't reproduce the problem even if it repeats 100 times. The results after repeating it 10 times here: irb(main):009:0> 10.times { begin Resolv.getaddress("rewrq.rqweqwrw.rqww") rescue Resolv::ResolvError p $! end } # # # # # # # ArgumentError: wrong number of arguments (0 for 1) from /usr/local/lib/ruby/1.8/resolv.rb:600:in `initialize' from /usr/local/lib/ruby/1.8/resolv.rb:600:in `exception' from /usr/local/lib/ruby/1.8/resolv.rb:600:in `raise' from /usr/local/lib/ruby/1.8/resolv.rb:600:in `request' from /usr/local/lib/ruby/1.8/resolv.rb:474:in `each_resource' from /usr/local/lib/ruby/1.8/resolv.rb:919:in `resolv' from /usr/local/lib/ruby/1.8/resolv.rb:917:in `each' from /usr/local/lib/ruby/1.8/resolv.rb:917:in `resolv' from /usr/local/lib/ruby/1.8/resolv.rb:916:in `each' ... Any ideas of what might be triggering it? This happens in 1.8.6p287 and 1.9 HEAD under OS X 10.5.5 -- Federico