Bug #2072
closedSegmentation faults with libxml-ruby and ruby 1.9.1
Description
=begin
I encountered segmentation fault when I used LibXML-ruby with Ruby 1.9.1.
My environment is as follows:
OS: Windows XP Professional SP2
Ruby: ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mswin32]
LibXml-ruby: 1.1.3
I can reproduce error just running ruby script which only require 'xml'.
I can run libxml-ruby successfully with ruby 1.8.6 and 1.8.7.
Following is the error message:¶
C:/ruby19/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.3-x86-mswin32-60/lib/libxml_r
uby.so: [BUG] Segmentation fault
ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mswin32]
-- control frame ----------
c:0011 p:-2605816 s:0028 b:0028 l:000027 d:000027 TOP
c:0010 p:---- s:0026 b:0026 l:000025 d:000025 CFUNC :require
c:0009 p:0072 s:0022 b:0022 l:000021 d:000021 TOP C:/ruby19/lib/ruby/gems/1.9
.1/gems/libxml-ruby-1.1.3-x86-mswin32-60/lib/libxml.rb:9
c:0008 p:---- s:0020 b:0020 l:000019 d:000019 FINISH
c:0007 p:---- s:0018 b:0018 l:000017 d:000017 CFUNC :require
c:0006 p:0011 s:0014 b:0014 l:000013 d:000013 TOP C:/ruby19/lib/ruby/gems/1.9
.1/gems/libxml-ruby-1.1.3-x86-mswin32-60/lib/xml.rb:11
c:0005 p:---- s:0012 b:0012 l:000011 d:000011 FINISH
c:0004 p:---- s:0010 b:0010 l:000009 d:000009 CFUNC :require
c:0003 p:0011 s:0006 b:0006 l:001fb4 d:002484 EVAL test.rb:1
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:001fb4 d:001fb4 TOP :33¶
-- Ruby level backtrace information-----------------------------------------
C:/ruby19/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.3-x86-mswin32-60/lib/libxml.rb:9:in require' C:/ruby19/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.3-x86-mswin32-60/lib/libxml.rb:9:in <top (required)>'
C:/ruby19/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.3-x86-mswin32-60/lib/xml.rb:11:in require' C:/ruby19/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.3-x86-mswin32-60/lib/xml.rb:11:in <top (required)>'
test.rb:1:in require' test.rb:1:in '
[NOTE]
You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
============================================================
I encountered segmentation fault when I used LibXML-ruby with Ruby 1.9.1.
My environment is as follows:
OS: Windows XP Professional SP2
Ruby: ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mswin32]
LibXml-ruby: 1.1.3
I can reproduce error just running ruby script which only require 'xml'.
I can run libxml-ruby successfully with ruby 1.8.6 and 1.8.7.
Following is the error message:¶
C:/ruby19/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.3-x86-mswin32-60/lib/libxml_r
uby.so: [BUG] Segmentation fault
ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mswin32]
-- control frame ----------
c:0011 p:-2605816 s:0028 b:0028 l:000027 d:000027 TOP
c:0010 p:---- s:0026 b:0026 l:000025 d:000025 CFUNC :require
c:0009 p:0072 s:0022 b:0022 l:000021 d:000021 TOP C:/ruby19/lib/ruby/gems/1.9
.1/gems/libxml-ruby-1.1.3-x86-mswin32-60/lib/libxml.rb:9
c:0008 p:---- s:0020 b:0020 l:000019 d:000019 FINISH
c:0007 p:---- s:0018 b:0018 l:000017 d:000017 CFUNC :require
c:0006 p:0011 s:0014 b:0014 l:000013 d:000013 TOP C:/ruby19/lib/ruby/gems/1.9
.1/gems/libxml-ruby-1.1.3-x86-mswin32-60/lib/xml.rb:11
c:0005 p:---- s:0012 b:0012 l:000011 d:000011 FINISH
c:0004 p:---- s:0010 b:0010 l:000009 d:000009 CFUNC :require
c:0003 p:0011 s:0006 b:0006 l:001fb4 d:002484 EVAL test.rb:1
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:001fb4 d:001fb4 TOP :33¶
-- Ruby level backtrace information-----------------------------------------
C:/ruby19/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.3-x86-mswin32-60/lib/libxml.rb:9:in require' C:/ruby19/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.3-x86-mswin32-60/lib/libxml.rb:9:in <top (required)>'
C:/ruby19/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.3-x86-mswin32-60/lib/xml.rb:11:in require' C:/ruby19/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.3-x86-mswin32-60/lib/xml.rb:11:in <top (required)>'
test.rb:1:in require' test.rb:1:in '
[NOTE]
You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
============================================================
Could someone fix this issue?
=end
Files
Updated by usa (Usaku NAKAMURA) about 16 years ago
- Status changed from Open to Third Party's Issue
=begin
The binary gem of libxml-ruby is for 1.8, not 1.9.
Ask the distributor of the gem.
=end
Updated by nobu (Nobuyoshi Nakada) about 16 years ago
=begin
Hi,
At Fri, 11 Sep 2009 00:45:12 +0900,
Aaron Patterson wrote in [ruby-core:25516]:
This is not a bug. The libxml-ruby gem that ships for windows is
compiled against 1.8.6, and will not work with 1.9. You need to
contact the libxml-ruby maintainers and get them to release a 1.9
compatible version.
It's a bug of rubygems, which installed incompatible binary.
--
Nobu Nakada
=end
Updated by luislavena (Luis Lavena) about 16 years ago
=begin
On Thu, Sep 10, 2009 at 5:57 PM, Nobuyoshi Nakada nobu@ruby-lang.org wrote:
Hi,
At Fri, 11 Sep 2009 00:45:12 +0900,
Aaron Patterson wrote in [ruby-core:25516]:This is not a bug. The libxml-ruby gem that ships for windows is
compiled against 1.8.6, and will not work with 1.9. You need to
contact the libxml-ruby maintainers and get them to release a 1.9
compatible version.It's a bug of rubygems, which installed incompatible binary.
Hello Nobu,
Actually there is a problem with RubyGems approach to gem versioning:
http://rubyforge.org/pipermail/rubygems-developers/2009-April/004522.html
This turned into what Aaron called "fat-binaries" approach, which I've
worked in rake-compiler project.
--
Luis Lavena
AREA 17¶
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry
=end