{"action":"created","issue":{"url":"https://api.github.com/repos/chef/chef-dk/issues/349","labels_url":"https://api.github.com/repos/chef/chef-dk/issues/349/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef-dk/issues/349/comments","events_url":"https://api.github.com/repos/chef/chef-dk/issues/349/events","html_url":"https://github.com/chef/chef-dk/issues/349","id":66774117,"number":349,"title":"Running talilor gem causes ruby to crash","user":{"login":"wjimenez5271","id":322834,"avatar_url":"https://avatars.githubusercontent.com/u/322834?v=3","gravatar_id":"","url":"https://api.github.com/users/wjimenez5271","html_url":"https://github.com/wjimenez5271","followers_url":"https://api.github.com/users/wjimenez5271/followers","following_url":"https://api.github.com/users/wjimenez5271/following{/other_user}","gists_url":"https://api.github.com/users/wjimenez5271/gists{/gist_id}","starred_url":"https://api.github.com/users/wjimenez5271/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wjimenez5271/subscriptions","organizations_url":"https://api.github.com/users/wjimenez5271/orgs","repos_url":"https://api.github.com/users/wjimenez5271/repos","events_url":"https://api.github.com/users/wjimenez5271/events{/privacy}","received_events_url":"https://api.github.com/users/wjimenez5271/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-07T04:45:27Z","updated_at":"2015-04-07T17:37:42Z","closed_at":null,"body":"Let me know if this seems spurious and should just be opened against ruby. I've configured my shell to default to the ChefDK ruby instance. \r\n\r\n```\r\n$ tailor --help\r\n/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.6.2/lib/nokogiri/nokogiri.bundle: [BUG] Segmentation fault\r\nruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]\r\n\r\n-- Crash Report log information --------------------------------------------\r\n   See Crash Report log file under the one of following:\r\n     * ~/Library/Logs/CrashReporter\r\n     * /Library/Logs/CrashReporter\r\n     * ~/Library/Logs/DiagnosticReports\r\n     * /Library/Logs/DiagnosticReports\r\n   the more detail of.\r\n\r\n-- Control frame information -----------------------------------------------\r\nc:0022 p:-17544095380382 s:0089 e:000088 TOP    [FINISH]\r\nc:0021 p:---- s:0087 e:000086 CFUNC  :require\r\nc:0020 p:0196 s:0083 e:000082 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73\r\nc:0019 p:0020 s:0073 e:000072 BLOCK  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.6.2/lib/nokogiri.rb:29\r\nc:0018 p:0124 s:0070 e:000069 TOP    /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.6.2/lib/nokogiri.rb:25 [FINISH]\r\nc:0017 p:---- s:0068 e:000067 CFUNC  :require\r\nc:0016 p:0429 s:0064 e:000063 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:126\r\nc:0015 p:0007 s:0054 e:000053 TOP    /Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/tailor/rulers/indentation_spaces_ruler.rb:1 [FINISH]\r\nc:0014 p:---- s:0052 e:000051 CFUNC  :require\r\nc:0013 p:0429 s:0048 e:000047 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:126 [FINISH]\r\nc:0012 p:---- s:0038 e:000037 IFUNC\r\nc:0011 p:---- s:0036 e:000035 CFUNC  :glob\r\nc:0010 p:0031 s:0032 e:000031 TOP    /Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/tailor/rulers.rb:1 [FINISH]\r\nc:0009 p:---- s:0030 e:000029 CFUNC  :require_relative\r\nc:0008 p:0031 s:0026 e:000025 TOP    /Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/tailor/critic.rb:4 [FINISH]\r\nc:0007 p:---- s:0024 e:000023 CFUNC  :require_relative\r\nc:0006 p:0015 s:0020 e:000019 TOP    /Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/tailor/cli.rb:2 [FINISH]\r\nc:0005 p:---- s:0018 e:000017 CFUNC  :require_relative\r\nc:0004 p:0007 s:0014 e:000013 TOP    /Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/bin/tailor:3 [FINISH]\r\nc:0003 p:---- s:0010 e:000009 CFUNC  :load\r\nc:0002 p:0118 s:0006 E:001b78 EVAL   /usr/bin/tailor:23 [FINISH]\r\nc:0001 p:0000 s:0002 E:001628 TOP    [FINISH]\r\n\r\n/usr/bin/tailor:23:in `<main>'\r\n/usr/bin/tailor:23:in `load'\r\n/Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/bin/tailor:3:in `<top (required)>'\r\n/Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/bin/tailor:3:in `require_relative'\r\n/Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/tailor/cli.rb:2:in `<top (required)>'\r\n/Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/tailor/cli.rb:2:in `require_relative'\r\n/Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/tailor/critic.rb:4:in `<top (required)>'\r\n/Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/tailor/critic.rb:4:in `require_relative'\r\n/Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/tailor/rulers.rb:1:in `<top (required)>'\r\n/Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/tailor/rulers.rb:1:in `glob'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:126:in `require'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:126:in `require'\r\n/Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/tailor/rulers/indentation_spaces_ruler.rb:1:in `<top (required)>'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:126:in `require'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:126:in `require'\r\n/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.6.2/lib/nokogiri.rb:25:in `<top (required)>'\r\n/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.6.2/lib/nokogiri.rb:29:in `rescue in <top (required)>'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'\r\n\r\n-- C level backtrace information -------------------------------------------\r\n\r\n-- Other runtime information -----------------------------------------------\r\n\r\n* Loaded script: /usr/bin/tailor\r\n\r\n* Loaded features:\r\n\r\n    0 enumerator.so\r\n    1 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/enc/encdb.bundle\r\n    2 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/enc/trans/transdb.bundle\r\n    3 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/rbconfig.rb\r\n    4 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/compatibility.rb\r\n    5 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/defaults.rb\r\n    6 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/deprecate.rb\r\n    7 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/errors.rb\r\n    8 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/version.rb\r\n    9 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/requirement.rb\r\n   10 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/platform.rb\r\n   11 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb\r\n   12 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/exceptions.rb\r\n   13 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb\r\n   14 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/thread.rb\r\n   15 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/monitor.rb\r\n   16 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb\r\n   17 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems.rb\r\n   18 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb\r\n   19 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/path_support.rb\r\n   20 /Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/tailor.rb\r\n   21 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/logger.rb\r\n   22 /Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/log_switch-0.3.0/lib/log_switch/version.rb\r\n   23 /Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/log_switch-0.3.0/lib/log_switch/mixin.rb\r\n   24 /Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/log_switch-0.3.0/lib/log_switch.rb\r\n   25 /Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/tailor/logger.rb\r\n   26 /Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/tailor/runtime_error.rb\r\n   27 /Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/tailor/configuration/style.rb\r\n   28 /Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/tailor/configuration/file_set.rb\r\n   29 /Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/tailor/configuration.rb\r\n   30 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/ripper.bundle\r\n   31 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/ripper/core.rb\r\n   32 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/ripper/lexer.rb\r\n   33 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/ripper/filter.rb\r\n   34 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/ripper/sexp.rb\r\n   35 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/ripper.rb\r\n   36 /Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/tailor/composite_observable.rb\r\n   37 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/set.rb\r\n   38 /Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/tailor/lexer/lexer_constants.rb\r\n   39 /Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/tailor/lexer/token.rb\r\n   40 /Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/tailor/lexed_line.rb\r\n   41 /Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/tailor/lexer.rb\r\n   42 /Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/tailor/problem.rb\r\n   43 /Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/ext/string_ext.rb\r\n   44 /Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/tailor/ruler.rb\r\n   45 /Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/tailor/rulers/allow_camel_case_methods_ruler.rb\r\n   46 /Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/tailor/rulers/allow_conditional_parentheses.rb\r\n   47 /Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/tailor/rulers/allow_hard_tabs_ruler.rb\r\n   48 /Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/tailor/rulers/allow_invalid_ruby_ruler.rb\r\n   49 /Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/tailor/rulers/allow_screaming_snake_case_classes_ruler.rb\r\n   50 /Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/tailor/rulers/allow_trailing_line_spaces_ruler.rb\r\n   51 /Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/tailor/rulers/allow_unnecessary_double_quotes_ruler.rb\r\n   52 /Users/wjimenez/.chefdk/gem/ruby/2.1.0/gems/tailor-1.4.1/lib/tailor/rulers/allow_unnecessary_interpolation_ruler.rb\r\n\r\n[NOTE]\r\nYou may have encountered a bug in the Ruby interpreter or extension libraries.\r\nBug reports are welcome.\r\nFor details: http://www.ruby-lang.org/bugreport.html\r\n\r\nAbort trap: 6\r\n```"},"comment":{"url":"https://api.github.com/repos/chef/chef-dk/issues/comments/90663164","html_url":"https://github.com/chef/chef-dk/issues/349#issuecomment-90663164","issue_url":"https://api.github.com/repos/chef/chef-dk/issues/349","id":90663164,"user":{"login":"danielsdeleo","id":37162,"avatar_url":"https://avatars.githubusercontent.com/u/37162?v=3","gravatar_id":"","url":"https://api.github.com/users/danielsdeleo","html_url":"https://github.com/danielsdeleo","followers_url":"https://api.github.com/users/danielsdeleo/followers","following_url":"https://api.github.com/users/danielsdeleo/following{/other_user}","gists_url":"https://api.github.com/users/danielsdeleo/gists{/gist_id}","starred_url":"https://api.github.com/users/danielsdeleo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielsdeleo/subscriptions","organizations_url":"https://api.github.com/users/danielsdeleo/orgs","repos_url":"https://api.github.com/users/danielsdeleo/repos","events_url":"https://api.github.com/users/danielsdeleo/events{/privacy}","received_events_url":"https://api.github.com/users/danielsdeleo/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T17:37:42Z","updated_at":"2015-04-07T17:37:42Z","body":"It appears you don't fully have your environment configured for the ChefDK ruby. There are lines in the stack trace like this:\r\n\r\n```\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/enc/encdb.bundle\r\n```\r\n\r\nWhich indicate you're running the system ruby but then loading extensions from ChefDK's ruby. I also see that you have:\r\n\r\n```\r\n* Loaded script: /usr/bin/tailor\r\n```\r\n\r\nDid you `sudo gem install tailor` (or do the equivalent with bundler or whatever) at some point and then later `chef gem install tailor`? It's probably a good idea to look at the shebang line for `/usr/bin/tailor` and see if it is `#!/usr/bin/ruby` which would force it to run with the system ruby.\r\n\r\nIn any case, uninstalling any gem executables you have installed to the system ruby is probably the easiest way to fix.\r\n\r\nIt would be ideal if we could come up with an automated way to detect or prevent this sort of thing, but I'm not sure how we could do it. I'll leave this open in the meantime in case anyone else has any ideas how we might achieve that."}}