Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SegFault with Ruby 1.9.3 and --render-with-toc-data #350

Closed
sukima opened this issue Feb 18, 2014 · 5 comments
Closed

SegFault with Ruby 1.9.3 and --render-with-toc-data #350

sukima opened this issue Feb 18, 2014 · 5 comments

Comments

@sukima
Copy link

sukima commented Feb 18, 2014

$ redcarpet --render-with-toc-data README.md
/Users/suki/.rvm/gems/ruby-1.9.3-p392/gems/redcarpet-3.1.0/bin/redcarpet:43: [BUG] Segmentation fault
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin12.2.1]

-- Control frame information -----------------------------------------------
c:0010 p:---- s:0036 b:0036 l:000035 d:000035 CFUNC  :render
c:0009 p:0325 s:0032 b:0031 l:000030 d:000030 TOP    /Users/suki/.rvm/gems/ruby-1.9.3-p392/gems/redcarpet-3.1.0/bin/redcarpet:43
c:0008 p:---- s:0024 b:0024 l:000023 d:000023 FINISH
c:0007 p:---- s:0022 b:0022 l:000021 d:000021 CFUNC  :load
c:0006 p:0127 s:0018 b:0018 l:000f48 d:000230 EVAL   /Users/suki/.rvm/gems/ruby-1.9.3-p392/bin/redcarpet:19
c:0005 p:---- s:0015 b:0015 l:000014 d:000014 FINISH
c:0004 p:---- s:0013 b:0013 l:000012 d:000012 CFUNC  :eval
c:0003 p:0101 s:0007 b:0007 l:000f48 d:000ed0 EVAL   /Users/suki/.rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:000f48 d:000f48 TOP   

-- Ruby level backtrace information ----------------------------------------
/Users/suki/.rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in `<main>'
/Users/suki/.rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in `eval'
/Users/suki/.rvm/gems/ruby-1.9.3-p392/bin/redcarpet:19:in `<main>'
/Users/suki/.rvm/gems/ruby-1.9.3-p392/bin/redcarpet:19:in `load'
/Users/suki/.rvm/gems/ruby-1.9.3-p392/gems/redcarpet-3.1.0/bin/redcarpet:43:in `<top (required)>'
/Users/suki/.rvm/gems/ruby-1.9.3-p392/gems/redcarpet-3.1.0/bin/redcarpet:43:in `render'

-- C level backtrace information -------------------------------------------

   See Crash Report log file under ~/Library/Logs/CrashReporter or
   /Library/Logs/CrashReporter, for the more detail of.

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

* Loaded script: /Users/suki/.rvm/gems/ruby-1.9.3-p392/bin/redcarpet

* Loaded features:

    0 enumerator.so
    1 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/x86_64-darwin12.2.1/enc/encdb.bundle
    2 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/x86_64-darwin12.2.1/enc/trans/transdb.bundle
    3 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/defaults.rb
    4 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/x86_64-darwin12.2.1/rbconfig.rb
    5 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/deprecate.rb
    6 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/exceptions.rb
    7 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb
    8 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems.rb
    9 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/version.rb
   10 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/requirement.rb
   11 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/platform.rb
   12 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb
   13 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/path_support.rb
   14 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb
   15 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych/syntax_error.rb
   16 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/x86_64-darwin12.2.1/psych.bundle
   17 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/x86_64-darwin12.2.1/stringio.bundle
   18 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych/nodes/node.rb
   19 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych/nodes/stream.rb
   20 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych/nodes/document.rb
   21 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych/nodes/sequence.rb
   22 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych/nodes/scalar.rb
   23 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych/nodes/mapping.rb
   24 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych/nodes/alias.rb
   25 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych/nodes.rb
   26 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych/streaming.rb
   27 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych/visitors/visitor.rb
   28 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/x86_64-darwin12.2.1/strscan.bundle
   29 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych/scalar_scanner.rb
   30 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych/visitors/to_ruby.rb
   31 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych/visitors/emitter.rb
   32 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych/visitors/yaml_tree.rb
   33 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych/json/ruby_events.rb
   34 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych/visitors/json_tree.rb
   35 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych/visitors/depth_first.rb
   36 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych/visitors.rb
   37 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych/handler.rb
   38 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych/tree_builder.rb
   39 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych/parser.rb
   40 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych/omap.rb
   41 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych/set.rb
   42 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych/coder.rb
   43 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych/core_ext.rb
   44 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/x86_64-darwin12.2.1/date_core.bundle
   45 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/date/format.rb
   46 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/date.rb
   47 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych/deprecated.rb
   48 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych/stream.rb
   49 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych/json/yaml_events.rb
   50 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych/json/tree_builder.rb
   51 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych/json/stream.rb
   52 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych/handlers/document_stream.rb
   53 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych.rb
   54 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/yaml.rb
   55 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/x86_64-darwin12.2.1/etc.bundle
   56 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/fileutils.rb
   57 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/x86_64-darwin12.2.1/pathname.bundle
   58 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/pathname.rb
   59 /Users/suki/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/gem_path_manipulation.rb
   60 /Users/suki/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/gem_helpers.rb
   61 /Users/suki/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/match_platform.rb
   62 /Users/suki/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/rubygems_ext.rb
   63 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/user_interaction.rb
   64 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb
   65 /Users/suki/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/rubygems_integration.rb
   66 /Users/suki/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/version.rb
   67 /Users/suki/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler.rb
   68 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/x86_64-darwin12.2.1/digest.bundle
   69 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/digest.rb
   70 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/x86_64-darwin12.2.1/digest/sha1.bundle
   71 /Users/suki/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/environment.rb
   72 /Users/suki/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/shared_helpers.rb
   73 /Users/suki/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/runtime.rb
   74 /Users/suki/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/settings.rb
   75 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/set.rb
   76 /Users/suki/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/definition.rb
   77 /Users/suki/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/dependency.rb
   78 /Users/suki/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/ruby_dsl.rb
   79 /Users/suki/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/dsl.rb
   80 /Users/suki/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/source.rb
   81 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/uri/common.rb
   82 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/uri/generic.rb
   83 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/uri/ftp.rb
   84 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/uri/http.rb
   85 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/uri/https.rb
   86 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/uri/ldap.rb
   87 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/uri/ldaps.rb
   88 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/uri/mailto.rb
   89 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/uri.rb
   90 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb
   91 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/errors.rb
   92 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/text.rb
   93 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb
   94 /Users/suki/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/source/rubygems.rb
   95 /Users/suki/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/source/path.rb
   96 /Users/suki/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/source/git.rb
   97 /Users/suki/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/lockfile_parser.rb
   98 /Users/suki/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/lazy_specification.rb
   99 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/tsort.rb
  100 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/forwardable.rb
  101 /Users/suki/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/spec_set.rb
  102 /Users/suki/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/index.rb
  103 /Users/suki/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/remote_specification.rb
  104 /Users/suki/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/endpoint_specification.rb
  105 /Users/suki/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/dep_proxy.rb
  106 /Users/suki/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb
  107 /Users/suki/.rvm/gems/ruby-1.9.3-p392@global/gems/rubygems-bundler-1.1.1/lib/rubygems-bundler/noexec.rb
  108 /Users/suki/.rvm/gems/ruby-1.9.3-p392/gems/redcarpet-3.1.0/lib/redcarpet.bundle
  109 /Users/suki/.rvm/gems/ruby-1.9.3-p392/gems/redcarpet-3.1.0/lib/redcarpet.rb

[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
@sukima
Copy link
Author

sukima commented Feb 18, 2014

$ redcarpet --version
Redcarpet 3.1.0

@aprescott
Copy link

This is likely the same issue as #349. v3.1.1 fixes this but hasn't been pushed to Rubygems.

@mattr- / @robin850 any plans to push the new gem?

@mattr-
Copy link
Collaborator

mattr- commented Feb 18, 2014

I don't have any control over the pushing of the gem. I've already asked
@vmg to take care of it via twitter, but I think I'll send an email just
to be sure.

@mattr-
Copy link
Collaborator

mattr- commented Feb 18, 2014

Please upgrade to version 3.1.1. This crash should be fixed there.

@mattr- mattr- closed this as completed Feb 18, 2014
@sukima
Copy link
Author

sukima commented Feb 19, 2014

Confirmed, Fixed. Thank you 🎩

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants