Issue #13886 has been reported by MSP-Greg (Greg L). ---------------------------------------- Bug #13886: Seg Fault - eval - 59781 - MinGW https://bugs.ruby-lang.org/issues/13886 * Author: MSP-Greg (Greg L) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.5.0dev (2017-09-08 trunk 59781) [x64-mingw32] * Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN ---------------------------------------- While updating my doc site (https://msp-greg.github.io/) using 59781, I had a seg fault from an RDoc call to `eval`. I also tried with 59792, same seg fault. Isolated to the offending string... Log is attached. Code I used is: ```ruby t = <<HEREDOC BEGIN {return true} class Person include ActiveModel::Validations validates_with MyValidator end class MyValidator < ActiveModel::Validator def validate(record) record # => The person instance being validated options # => Any non-standard options passed to validates_with end end HEREDOC puts eval t ``` Running code with 89767 yields: ``` E:\>ruby -v E:/GitHub/gen-docs/seg_fault.rb ruby 2.5.0dev (2017-09-07 trunk 59767) [x64-mingw32] (eval):9: warning: possibly useless use of a variable in void context Traceback (most recent call last): 2: from E:/GitHub/gen-docs/seg_fault.rb:18:in `<main>' 1: from E:/GitHub/gen-docs/seg_fault.rb:18:in `eval' E:/GitHub/gen-docs/seg_fault.rb:18:in `eval': unexpected return (LocalJumpError) ``` Thanks. ---Files-------------------------------- seg_fault_eval_59781.log (6.16 KB) -- 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>