Issue #11029 has been reported by navya Hegde.

----------------------------------------
Backport #11029: on running cucumber command from terminal I am getting crash. "encountered a bug in the Ruby interpreter or extension libraries."
https://bugs.ruby-lang.org/issues/11029

* Author: navya Hegde
* Status: Open
* Priority: High
* Assignee: navya Hegde
----------------------------------------
I have encountered the same crash with ruby version 2.0.0 then I updated to latest ruby versio but still I am facing same issue.


$ cucumber
Ignoring executable-hooks-1.3.2 because its extensions are not built.  Try: gem pristine executable-hooks --version 1.3.2
Ignoring gem-wrappers-1.2.7 because its extensions are not built.  Try: gem pristine gem-wrappers --version 1.2.7
Ignoring json-1.8.2 because its extensions are not built.  Try: gem pristine json --version 1.8.2
Ignoring nokogiri-1.6.6.2 because its extensions are not built.  Try: gem pristine nokogiri --version 1.6.6.2
/Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.2/lib/json/ext/parser.bundle: [BUG] Segmentation fault at 0x00000000000418
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-darwin14]

-- Crash Report log information --------------------------------------------
   See Crash Report log file under the one of following:
     * ~/Library/Logs/CrashReporter
     * /Library/Logs/CrashReporter
     * ~/Library/Logs/DiagnosticReports
     * /Library/Logs/DiagnosticReports
   for more details.

-- Control frame information -----------------------------------------------
c:0036 p:-17553420868764 s:0160 e:000159 TOP    [FINISH]
c:0035 p:---- s:0158 e:000157 CFUNC  :require
c:0034 p:0113 s:0154 e:000153 METHOD /Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54
c:0033 p:0009 s:0144 e:000143 CLASS  /Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.2/lib/json/ext.rb:13
c:0032 p:0011 s:0142 e:000141 CLASS  /Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.2/lib/json/ext.rb:12
c:0031 p:0056 s:0140 e:000139 TOP    /Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.2/lib/json/ext.rb:9 [FINISH]
c:0030 p:---- s:0138 e:000137 CFUNC  :require
c:0029 p:0113 s:0134 e:000133 METHOD /Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54
c:0028 p:0011 s:0124 e:000123 BLOCK  /Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/multi_json-1.11.0/lib/multi_json.rb:54 [FINISH]
c:0027 p:---- s:0120 e:000119 CFUNC  :each
c:0026 p:0129 s:0117 e:000116 METHOD /Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/multi_json-1.11.0/lib/multi_json.rb:52
c:0025 p:0117 s:0114 e:000112 METHOD /Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/multi_json-1.11.0/lib/multi_json.rb:100
c:0024 p:0009 s:0108 e:000107 METHOD /Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/multi_json-1.11.0/lib/multi_json.rb:90
c:0023 p:0033 s:0104 e:000103 METHOD /Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/multi_json-1.11.0/lib/multi_json.rb:72
c:0022 p:0033 s:0101 e:000100 METHOD /Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/multi_json-1.11.0/lib/multi_json.rb:130
c:0021 p:0013 s:0096 e:000095 METHOD /Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/multi_json-1.11.0/lib/multi_json.rb:117
c:0020 p:0139 s:0089 e:000088 CLASS  /Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/gherkin-2.12.2/lib/gherkin/i18n.rb:14
c:0019 p:0011 s:0087 e:000086 CLASS  /Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/gherkin-2.12.2/lib/gherkin/i18n.rb:6
c:0018 p:0033 s:0085 e:000084 TOP    /Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/gherkin-2.12.2/lib/gherkin/i18n.rb:5 [FINISH]
c:0017 p:---- s:0083 e:000082 CFUNC  :require
c:0016 p:0113 s:0079 e:000078 METHOD /Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54
c:0015 p:0007 s:0069 e:000068 TOP    /Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/gherkin-2.12.2/lib/gherkin/lexer/i18n_lexer.rb:2 [FINISH]
c:0014 p:---- s:0067 e:000066 CFUNC  :require
c:0013 p:0113 s:0063 e:000062 METHOD /Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54
c:0012 p:0007 s:0053 e:000052 TOP    /Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/gherkin-2.12.2/lib/gherkin.rb:1 [FINISH]
c:0011 p:---- s:0051 e:000050 CFUNC  :require
c:0010 p:0113 s:0047 e:000046 METHOD /Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54
c:0009 p:0009 s:0037 e:000036 TOP    /Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/cucumber-1.3.19/lib/cucumber/cli/main.rb:2 [FINISH]
c:0008 p:---- s:0035 e:000034 CFUNC  :require
c:0007 p:0113 s:0031 e:000030 METHOD /Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54
c:0006 p:0141 s:0021 e:000020 TOP    /Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/cucumber-1.3.19/bin/cucumber:11 [FINISH]
c:0005 p:---- s:0019 e:000018 CFUNC  :load
c:0004 p:0135 s:0015 E:000870 EVAL   /Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/bin/cucumber:23 [FINISH]
c:0003 p:---- s:0011 e:000010 CFUNC  :eval
c:0002 p:0118 s:0005 E:000088 EVAL   /Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15 [FINISH]
c:0001 p:0000 s:0002 E:000e80 TOP    [FINISH]

-- Ruby level backtrace information ----------------------------------------
/Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in `<main>'
/Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in `eval'
/Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/bin/cucumber:23:in `<main>'
/Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/bin/cucumber:23:in `load'
/Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/cucumber-1.3.19/bin/cucumber:11:in `<top (required)>'
/Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/cucumber-1.3.19/lib/cucumber/cli/main.rb:2:in `<top (required)>'
/Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/gherkin-2.12.2/lib/gherkin.rb:1:in `<top (required)>'
/Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/gherkin-2.12.2/lib/gherkin/lexer/i18n_lexer.rb:2:in `<top (required)>'
/Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/gherkin-2.12.2/lib/gherkin/i18n.rb:5:in `<top (required)>'
/Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/gherkin-2.12.2/lib/gherkin/i18n.rb:6:in `<module:Gherkin>'
/Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/gherkin-2.12.2/lib/gherkin/i18n.rb:14:in `<class:I18n>'
/Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/multi_json-1.11.0/lib/multi_json.rb:117:in `load'
/Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/multi_json-1.11.0/lib/multi_json.rb:130:in `current_adapter'
/Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/multi_json-1.11.0/lib/multi_json.rb:72:in `adapter'
/Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/multi_json-1.11.0/lib/multi_json.rb:90:in `use'
/Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/multi_json-1.11.0/lib/multi_json.rb:100:in `load_adapter'
/Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/multi_json-1.11.0/lib/multi_json.rb:52:in `default_adapter'
/Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/multi_json-1.11.0/lib/multi_json.rb:52:in `each'
/Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/multi_json-1.11.0/lib/multi_json.rb:54:in `block in default_adapter'
/Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.2/lib/json/ext.rb:9:in `<top (required)>'
/Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.2/lib/json/ext.rb:12:in `<module:JSON>'
/Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.2/lib/json/ext.rb:13:in `<module:Ext>'
/Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'

-- Machine register context ------------------------------------------------
 rax: 0x0000000000000000 rbx: 0x00007fb7cb5c4300 rcx: 0x0000000000000000
 rdx: 0x000000000000000b rdi: 0x0000000000000000 rsi: 0x0000000000000005
 rbp: 0x00007fff56619b40 rsp: 0x00007fff56619a70  r8: 0x00007fff56619b90
  r9: 0x00007fff7dfc0300 r10: 0x00000000000057b8 r11: 0x00007fff9a4a7160
 r12: 0x0000000000000000 r13: 0x00007fb7cb409080 r14: 0x0000000000000005
 r15: 0x0000000000000000 rip: 0x0000000109a01d3e rfl: 0x0000000000010202

-- C level backtrace information -------------------------------------------
0   ruby                                0x000000010977cdfb rb_vm_bugreport + 155
1   ruby                                0x00000001096213e0 rb_bug_context + 480
2   ruby                                0x00000001096f9743 sigsegv + 83
3   libsystem_platform.dylib            0x00007fff948edf1a _sigtramp + 26
4   libruby.2.0.0.dylib                 0x0000000109a01d3e newobj + 30
5   ???                                 0x2e312d6e6f736a2f 0x0 + 3328491551942994479

-- Other runtime information -----------------------------------------------

* Loaded script: /Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/bin/cucumber

* Loaded features:

    0 enumerator.so
    1 rational.so
    2 complex.so
    3 /Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/x86_64-darwin14/enc/encdb.bundle
    4 /Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/x86_64-darwin14/enc/trans/transdb.bundle
    5 /Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/unicode_normalize.rb
    6 /Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/x86_64-darwin14/rbconfig.rb
    7 thread.rb
    8 /Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/x86_64-darwin14/thread.bundle
    9 /Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/compatibility.rb
   10 /Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/defaults.rb
   11 /Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/deprecate.rb
   12 /Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/errors.rb
   13 /Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/version.rb
   14 /Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/requirement.rb
   15 /Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/platform.rb
   16 /Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/basic_specification.rb
   17 /Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/stub_specification.rb
   18 /Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/util/stringio.rb
   19 /Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/specification.rb
   20 /Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/exceptions.rb
   21 /Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/core_ext/kernel_gem.rb
   22 /Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/monitor.rb
   23 /Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb
   24 /Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems.rb
   25 /Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/path_support.rb
   26 /Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rubygems/dependency.rb
   27 /Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/optparse.rb
   28 /Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/cucumber-1.3.19/lib/cucumber/rspec/disable_option_parser.rb
   29 /Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/gherkin-2.12.2/lib/gherkin/rubify.rb
   30 /Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/gherkin-2.12.2/lib/gherkin/native/null.rb
   31 /Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/gherkin-2.12.2/lib/gherkin/native.rb
   32 /Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/multi_json-1.11.0/lib/multi_json/options.rb
   33 /Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/multi_json-1.11.0/lib/multi_json/version.rb
   34 /Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/multi_json-1.11.0/lib/multi_json/adapter_error.rb
   35 /Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/multi_json-1.11.0/lib/multi_json/parse_error.rb
   36 /Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/multi_json-1.11.0/lib/multi_json.rb
   37 /Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.2/lib/json/version.rb
   38 /Users/navya.hegde/.rbenv/versions/2.2.1/lib/ruby/2.2.0/ostruct.rb
   39 /Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.2/lib/json/generic_object.rb
   40 /Users/navya.hegde/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.2/lib/json/common.rb

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
Don't forget to include the above Crash Report log file.
For details: http://www.ruby-lang.org/bugreport.html

Abort trap: 6



---Files--------------------------------
ruby_2015-04-02-174924_EMACBOOK-08.crash (18.1 KB)


-- 
https://bugs.ruby-lang.org/