flavorjones / mcbean

McBean converts HTML into Markdown or Textile (and vice-versa).
14 stars 5 forks source link

mcbean looks like it's not playing nicely with nokogiri 1.5 #10

Open jleo3 opened 12 years ago

jleo3 commented 12 years ago

Tried to run the command line example from heroku docs (http://mcbean.heroku.com/doc/index.html):

japandroid:frontend jleo$ mcbean --html="http://en.wikipedia.org/wiki/The_Sneetches_and_Other_Stories" --to-markdown /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/loofah-1.2.0/lib/loofah/scrubbers.rb:120: [BUG] Segmentation fault ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin10.8.0]

-- Control frame information ----------------------------------------------- c:0025 p:---- s:0088 b:0088 l:000087 d:000087 CFUNC :document c:0024 p:0067 s:0085 b:0082 l:000081 d:000081 METHOD /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/loofah-1.2.0/lib/loofah/scrubbers.rb:120 c:0023 p:0060 s:0078 b:0078 l:000077 d:000077 METHOD /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/loofah-1.2.0/lib/loofah/scrubber.rb:108 c:0022 p:0012 s:0074 b:0074 l:002350 d:000073 BLOCK /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/loofah-1.2.0/lib/loofah/scrubber.rb:110 c:0021 p:0015 s:0071 b:0071 l:000061 d:000070 BLOCK /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/nokogiri-1.5.0/lib/nokogiri/xml/node_set.rb:239 c:0020 p:---- s:0068 b:0068 l:000067 d:000067 FINISH c:0019 p:---- s:0066 b:0066 l:000065 d:000065 CFUNC :upto c:0018 p:0023 s:0062 b:0062 l:000061 d:000061 METHOD /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/nokogiri-1.5.0/lib/nokogiri/xml/node_set.rb:238 c:0017 p:0093 s:0058 b:0058 l:002350 d:002350 METHOD /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/loofah-1.2.0/lib/loofah/scrubber.rb:110 c:0016 p:0012 s:0054 b:0054 l:001d30 d:000053 BLOCK /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/loofah-1.2.0/lib/loofah/scrubber.rb:110 c:0015 p:0015 s:0051 b:0051 l:000041 d:000050 BLOCK /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/nokogiri-1.5.0/lib/nokogiri/xml/node_set.rb:239 c:0014 p:---- s:0048 b:0048 l:000047 d:000047 FINISH c:0013 p:---- s:0046 b:0046 l:000045 d:000045 CFUNC :upto c:0012 p:0023 s:0042 b:0042 l:000041 d:000041 METHOD /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/nokogiri-1.5.0/lib/nokogiri/xml/node_set.rb:238 c:0011 p:0093 s:0038 b:0038 l:001d30 d:001d30 METHOD /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/loofah-1.2.0/lib/loofah/scrubber.rb:110 c:0010 p:0039 s:0034 b:0034 l:000033 d:000033 METHOD /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/loofah-1.2.0/lib/loofah/scrubber.rb:78 c:0009 p:0108 s:0030 b:0030 l:000029 d:000029 METHOD /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/loofah-1.2.0/lib/loofah/instance_methods.rb:42 c:0008 p:0088 s:0026 b:0024 l:000023 d:000023 METHOD /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/mcbean-0.4.0/lib/mcbean/markdown.rb:33 c:0007 p:0011 s:0020 b:0020 l:000019 d:000019 METHOD /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/mcbean-0.4.0/lib/mcbean/markdown.rb:25 c:0006 p:0322 s:0017 b:0016 l:000015 d:000015 TOP /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/mcbean-0.4.0/bin/mcbean:65 c:0005 p:---- s:0013 b:0013 l:000012 d:000012 FINISH c:0004 p:---- s:0011 b:0011 l:000010 d:000010 CFUNC :load c:0003 p:0127 s:0007 b:0007 l:002378 d:000f20 EVAL /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/bin/mcbean:19 c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH c:0001 p:0000 s:0002 b:0002 l:002378 d:002378 TOP

-- Ruby level backtrace information ---------------------------------------- /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/bin/mcbean:19:in <main>' /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/bin/mcbean:19:inload' /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/mcbean-0.4.0/bin/mcbean:65:in <top (required)>' /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/mcbean-0.4.0/lib/mcbean/markdown.rb:25:into_markdown' /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/mcbean-0.4.0/lib/mcbean/markdown.rb:33:in __markdown__' /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/loofah-1.2.0/lib/loofah/instance_methods.rb:42:inscrub!' /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/loofah-1.2.0/lib/loofah/scrubber.rb:78:in traverse' /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/loofah-1.2.0/lib/loofah/scrubber.rb:110:intraverse_conditionally_top_down' /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/nokogiri-1.5.0/lib/nokogiri/xml/node_set.rb:238:in each' /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/nokogiri-1.5.0/lib/nokogiri/xml/node_set.rb:238:inupto' /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/nokogiri-1.5.0/lib/nokogiri/xml/node_set.rb:239:in block in each' /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/loofah-1.2.0/lib/loofah/scrubber.rb:110:inblock in traverse_conditionally_top_down' /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/loofah-1.2.0/lib/loofah/scrubber.rb:110:in traverse_conditionally_top_down' /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/nokogiri-1.5.0/lib/nokogiri/xml/node_set.rb:238:ineach' /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/nokogiri-1.5.0/lib/nokogiri/xml/node_set.rb:238:in upto' /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/nokogiri-1.5.0/lib/nokogiri/xml/node_set.rb:239:inblock in each' /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/loofah-1.2.0/lib/loofah/scrubber.rb:110:in block in traverse_conditionally_top_down' /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/loofah-1.2.0/lib/loofah/scrubber.rb:108:intraverse_conditionally_top_down' /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/loofah-1.2.0/lib/loofah/scrubbers.rb:120:in scrub' /Users/jleo/.rvm/gems/ruby-1.9.3-p125@rails3/gems/loofah-1.2.0/lib/loofah/scrubbers.rb:120:indocument'

-- 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 -----------------------------------------------

[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

Abort trap

flavorjones commented 12 years ago

Thanks for reporting. I will take a look!