Project

General

Profile

Actions

Bug #13886

closed

Seg Fault - eval - 59781 - MinGW

Added by MSP-Greg (Greg L) about 7 years ago. Updated about 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.5.0dev (2017-09-08 trunk 59781) [x64-mingw32]
[ruby-core:82726]

Description

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:

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) seg_fault_eval_59781.log MSP-Greg (Greg L), 09/09/2017 05:37 PM
Actions

Also available in: Atom PDF

Like0
Like0