From: ruby-lang@... Date: 2017-03-20T20:28:41+00:00 Subject: [ruby-core:80257] [Ruby trunk Bug#13339] Assertion Failed: string.c:2061:rb_str_change_terminator_length:capa >= len Issue #13339 has been reported by buehmann (Andreas B��hmann). ---------------------------------------- Bug #13339: Assertion Failed: string.c:2061:rb_str_change_terminator_length:capa >= len https://bugs.ruby-lang.org/issues/13339 * Author: buehmann (Andreas B��hmann) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux] * Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN ---------------------------------------- This makes ruby 2.4.0 crash on my system (log attached): ~~~ ruby ('a' * 23).encode('utf-16').encode!('utf-8') ~~~ If you change the length of the string (from 23 to 22 or 24), everything's fine. ---Files-------------------------------- bug.rb (45 Bytes) crash.log (13.6 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: