Issue #2783 has been updated by ogechi nnadi.


Hi all, I'm getting the same segfault as DD above. My gem environment is as follows

$ gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.6
  - RUBY VERSION: 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10]
  - INSTALLATION DIRECTORY: /opt/local/lib/ruby/gems/1.8
  - RUBY EXECUTABLE: /opt/local/bin/ruby
  - EXECUTABLE DIRECTORY: /opt/local/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-darwin-10
  - GEM PATHS:
     - /opt/local/lib/ruby/gems/1.8
     - /Users/ogechinnadi/.gem/ruby/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
     - :sources => ["http://gemcutter.org", "http://gems.rubyforge.org", "http://gems.github.com"]
     - "gem" => "--no-ri --no-rdoc"
  - REMOTE SOURCES:
     - http://gemcutter.org
     - http://gems.rubyforge.org
     - http://gems.github.com


$ gem list libxml-ruby -d

*** LOCAL GEMS ***

libxml-ruby (1.1.4)
    Author: Charlie Savage
    Rubyforge: http://rubyforge.org/projects/libxml
    Homepage: http://libxml.rubyforge.org/
    Installed at: /opt/local/lib/ruby/gems/1.8

    Ruby libxml bindings


The code that causes the crash is as follows (in IRB):

>> require 'xml'
=> true
>> document = LibXML::XML::Document.file('s.txt')
/opt/local/lib/ruby/gems/1.8/gems/libxml-ruby-1.1.4/lib/libxml/parser.rb:33: [BUG] Segmentation fault
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10]

Abort trap


I hope this helps you find the problem.


----------------------------------------
http://redmine.ruby-lang.org/issues/show/2783

----------------------------------------
http://redmine.ruby-lang.org