Actions
Bug #13886
closedSeg Fault - eval - 59781 - MinGW
Bug #13886: Seg Fault - eval - 59781 - MinGW
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.5.0dev (2017-09-08 trunk 59781) [x64-mingw32]
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
Updated by nobu (Nobuyoshi Nakada) about 8 years 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. [ruby-core:82726] [Bug #13886]
Actions