Project

General

Profile

Actions

Bug #12061

closed

DNS resolv error RuntimeError: can't modify frozen String when using IPv6 Addresses

Added by steve.misky (Stephen Misk) about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
[ruby-core:73761]

Description

Just upgraded from Ruby 1.9.3-p194 to Ruby 2.3.0

eventmachine (1.0.9.1)
eventmachine_httpserver (0.2.1)

irb
2.3.0 :001 > require 'eventmachine'
=> true
2.3.0 :002 > Resolv::IPv6.create('2607:F8B0:4002:C0C::66')
RuntimeError: can't modify frozen String
from /usr/local/rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/resolv.rb:2462:in block in create'
from /usr/local/rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/resolv.rb:2462:in
scan'
from /usr/local/rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/resolv.rb:2462:in create'
from (irb):2
from /usr/local/rvm/rubies/ruby-2.3.0/bin/irb:11:in
'
2.3.0 :003 > Resolv::IPv4.create('74.125.226.19')
=> #<Resolv::IPv4 74.125.226.19>
2.3.0 :004 >


Related issues

Is duplicate of Ruby master - Bug #11910: resolv.rb - can't modify frozen String in #scanClosedActions
Actions

Also available in: Atom PDF