[MacRuby] #1396: macirb: Nokogiri operation results in SIGBUS
#1396: macirb: Nokogiri operation results in SIGBUS --------------------------------+------------------------------------------- Reporter: sohocoke@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: --------------------------------+------------------------------------------- The following sequence of commands in irb results in a SIGBUS. {{{ [~/.rvm/gems/macruby-nightly/gems]$ irb -v DietRB (0.6.1) [~/.rvm/gems/macruby-nightly/gems]$ irb irb(main):001:0> require 'rubygems' => false irb(main):002:0> require 'nokogiri' WARNING: Nokogiri was built against LibXML version 2.7.4, but has dynamically loaded 2.7.3 => true irb(main):003:0> => nil irb(main):004:0> file_path = '/Library/Developer/Documentation/DocSets/com.apple.adc.documentation.AppleiOS5_0.iOSLibrary.docset/Contents/Resources/Documents/index.html' => "/Library/Developer/Documentation/DocSets/com.apple.adc.documentation.AppleiOS5_0.iOSLibrary.docset/Contents/Resources/Documents/index.html" irb(main):005:0> => nil irb(main):006:0> doc = Nokogiri::HTML(open file_path) => <<snip>> irb(main):007:0> doc.search('//script').each do |e| irb(main):008:1> e.remove irb(main):009:0> end Bus error: 10 }}} macruby itself runs the same code fine: {{{ [~/.rvm/gems/macruby-nightly/gems]$ ruby -v MacRuby 0.11 (ruby 1.9.2) [universal-darwin10.0, x86_64] [~/.rvm/gems/macruby-nightly/gems]$ ruby << EOF
require 'rubygems' require 'nokogiri'
file_path = '/Library/Developer/Documentation/DocSets/com.apple.adc.documentation.AppleiOS5_0.iOSLibrary.docset/Contents/Resources/Documents/index.html'
doc = Nokogiri::HTML(open file_path) doc.search('//script').each do |e| e.remove end EOF WARNING: Nokogiri was built against LibXML version 2.7.4, but has dynamically loaded 2.7.3 [~/.rvm/gems/macruby-nightly/gems]$ }}}
-- Ticket URL: <http://www.macruby.org/trac/ticket/1396> MacRuby <http://macruby.org/>
#1396: macirb: Nokogiri operation results in SIGBUS --------------------------------+------------------------------------------- Reporter: sohocoke@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: --------------------------------+------------------------------------------- Comment(by watson1978@…): Maybe, this issue duplicate a #1360. and, please see http://www.macruby.org/trac/ticket/1308#comment:7 -- Ticket URL: <http://www.macruby.org/trac/ticket/1396#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby