Project

General

Profile

Bug #13886

Seg Fault - eval - 59781 - MinGW

Added by MSP-Greg (Greg L) 16 days ago. Updated 15 days ago.

Status:
Closed
Priority:
Normal
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.

seg_fault_eval_59781.log (6.16 KB) seg_fault_eval_59781.log MSP-Greg (Greg L), 09/09/2017 05:37 PM

Associated revisions

Revision 59828
Added by nobu (Nobuyoshi Nakada) 15 days ago

compile.c: pop coverage trace

  • compile.c (iseq_compile_each0): pop trace for coverage only and clear its corresponding line. [Bug #13886]

History

#1 Updated by nobu (Nobuyoshi Nakada) 15 days ago

  • Status changed from Open to Closed

Applied in changeset trunk|r59828.


compile.c: pop coverage trace

  • compile.c (iseq_compile_each0): pop trace for coverage only and clear its corresponding line. [Bug #13886]

Also available in: Atom PDF