[#79440] [Ruby trunk Bug#13188] Reinitialize Ruby VM. — shyouhei@...
SXNzdWUgIzEzMTg4IGhhcyBiZWVuIHVwZGF0ZWQgYnkgU2h5b3VoZWkgVXJhYmUuCgoKTWFydGlu
6 messages
2017/02/06
[#79441] Re: [Ruby trunk Bug#13188] Reinitialize Ruby VM.
— SASADA Koichi <ko1@...>
2017/02/06
On 2017/02/06 10:10, shyouhei@ruby-lang.org wrote:
[#79532] Immutable Strings vs Symbols — Daniel Ferreira <subtileos@...>
Hi,
15 messages
2017/02/15
[#79541] Re: Immutable Strings vs Symbols
— Rodrigo Rosenfeld Rosas <rr.rosas@...>
2017/02/15
Em 15-02-2017 05:05, Daniel Ferreira escreveu:
[#79543] Re: Immutable Strings vs Symbols
— Daniel Ferreira <subtileos@...>
2017/02/16
Hi Rodrigo,
[#79560] Re: Immutable Strings vs Symbols
— Rodrigo Rosenfeld Rosas <rr.rosas@...>
2017/02/16
Em 15-02-2017 22:39, Daniel Ferreira escreveu:
[ruby-core:79648] [Ruby trunk Bug#13238][Closed] string.c assertion fails after attempting to modify singleton class of a frozen string
From:
nobu@...
Date:
2017-02-21 15:35:38 UTC
List:
ruby-core #79648
Issue #13238 has been updated by Nobuyoshi Nakada. Status changed from Open to Closed Backport changed from 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN to 2.2: DONTNEED, 2.3: REQUIRED, 2.4: DONTNEED ---------------------------------------- Bug #13238: string.c assertion fails after attempting to modify singleton class of a frozen string https://bugs.ruby-lang.org/issues/13238#change-63064 * Author: Owen Stephens * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-darwin14] * Backport: 2.2: DONTNEED, 2.3: REQUIRED, 2.4: DONTNEED ---------------------------------------- Hi, The following code causes an assertion failure in 2.3.3. Create two files, `bug.rb` and `not_frozen.rb`: bug.`rb`: ~~~ ruby s = 'abc'.freeze def s.something; end rescue nil require_relative 'not_frozen' ~~~ `not_frozen.rb`: ~~~ ruby 'abc' ~~~ And then run `ruby bug.rb` The output is: ~~~ Assertion failed: (RBASIC_CLASS(ret) == rb_cString), function register_fstring, file string.c, line 327. ~~~ Searching for the error message I see that this exact issue (#12923) has been fixed for Ruby 2.4.0 - please can this fix be back-ported to Ruby 2.3? Thanks, Owen. -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>