From: nagachika00@... Date: 2018-08-18T02:56:38+00:00 Subject: [ruby-core:88526] [Ruby trunk Bug#14756] `Exception` may cause SEGV when `#backtrace` returns a string Issue #14756 has been updated by nagachika (Tomoyuki Chikanaga). Backport changed from 2.3: REQUIRED, 2.4: DONE, 2.5: REQUIRED to 2.3: REQUIRED, 2.4: DONE, 2.5: DONE ruby_2_5 r64430 merged revision(s) 63417. ---------------------------------------- Bug #14756: `Exception` may cause SEGV when `#backtrace` returns a string https://bugs.ruby-lang.org/issues/14756#change-73583 * Author: yui-knk (Kaneko Yuichiro) * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.6.0dev (2018-05-13 trunk 63413) [x86_64-linux] * Backport: 2.3: REQUIRED, 2.4: DONE, 2.5: DONE ---------------------------------------- This code causes SEGV, because `print_backtrace` expects second argument to be an array but a string is given. ```ruby class Exception def backtrace "backtrace" end end "".a ``` Also in ruby 2.3.7, 2.4.4, 2.5.1. -- https://bugs.ruby-lang.org/ Unsubscribe: