Issue #12078 has been updated by Nobuyoshi Nakada.


r53524 is the revision in the trunk, not 2.3.
And #11928's backport status to 2.3 is still REQUIRED.

----------------------------------------
Bug #12078: Segmentation fault in did_you_mean with ruby revision 53608 
https://bugs.ruby-lang.org/issues/12078#change-57197

* Author: Rob Nichols
* Status: Closed
* Priority: Normal
* Assignee: 
* ruby -v: 
* Backport: 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONTNEED, 2.3: REQUIRED
----------------------------------------
A segmentation bug occurred when running rspec tests on an app. This first appeared using ruby 2.3.0p0 revision 53290, and appeared similar to bugs reported in issues https://bugs.ruby-lang.org/issues/12000 and https://bugs.ruby-lang.org/issues/11928. 11928 implies that the bug should have been fixed at revision 53524, so I have updated ruby to 2.3.0p7 revision 53608 and am still getting segmentation faults.

The error output starts with:

~~~
/Users/foo/.rvm/gems/ruby-2.3-head@global/gems/did_you_mean-1.0.0/lib/did_you_mean/spell_checkers/name_error_checkers/variable_name_checker.rb:10: [BUG] Segmentation fault at 0x00000000000011
ruby 2.3.0p7 (2016-01-21 revision 53608) [x86_64-darwin14]
~~~
and ends:

~~~
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

/Users/foo/.rvm/rubies/ruby-2.3-head/bin/ruby -I/Users/foo/.rvm/gems/ruby-2.3-head/gems/rspec-core-3.4.2/lib:/Users/foo/.rvm/gems/ruby-2.3-head/gems/rspec-support-3.4.1/lib /Users/foo/.rvm/gems/ruby-2.3-head/gems/rspec-core-3.4.2/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb failed
rake aborted!
TypeError: no implicit conversion from nil to integer
/Users/foo/.rvm/gems/ruby-2.3-head/gems/rspec-core-3.4.2/lib/rspec/core/rake_task.rb:84:in `exit'
/Users/foo/.rvm/gems/ruby-2.3-head/gems/rspec-core-3.4.2/lib/rspec/core/rake_task.rb:84:in `run_task'
/Users/foo/.rvm/gems/ruby-2.3-head/gems/rspec-core-3.4.2/lib/rspec/core/rake_task.rb:96:in `block (2 levels) in define'
/Users/foo/.rvm/gems/ruby-2.3-head/gems/rspec-core-3.4.2/lib/rspec/core/rake_task.rb:94:in `block in define'
/Users/foo/.rvm/gems/ruby-2.3-head/bin/ruby_executable_hooks:15:in `eval'
/Users/foo/.rvm/gems/ruby-2.3-head/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => spec
~~~

---Files--------------------------------
ruby_2016-02-16-093730_LEEML0195905.crash (23.9 KB)
ruby_2016-02-16-100949_LEEML0195905.crash (24.1 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>