From: Detlef R. <det...@gm...> - 2014-06-05 16:25:24
|
Hi, Am 04.06.2014 20:49, schrieb Vlad Katz: > > I haven't been able to use your rsvg2 gem with Ruby 2. i have tried > 2.0, 2.1, and 2.1.2 and yet i always get a segmentation fault. > > Here is the error dump: http://pastebin.com/aUR5L04b > > and here is the very simple test file i am > using: http://pastebin.com/vQb19QYT > > I tested this on CentOS 6.5 with installing pretty much nothing other > than rbenv, ruby and this gem. > > Starting with a brand new fresh install of CentOS 6.5, i only ran the > following commands: > > ------------------------------------------ > > fresh install of CentOS 6.5 > yum update > yum install git > > --install rbenv and update PATH etc > git clone https://github.com/sstephenson/rbenv.git ~/.rbenv > git > clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build > echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc > echo 'eval "$(rbenv init -)"' >> ~/.bashrc > exec bash > > yum install openssl-devel > rbenv install 2.1.2 > rbenv global 2.1.2 > gem install rsvg2 > > -- grab test file (same as in pastebin above) and execute > scp tools-qa.jiwiredev.com:/home/vkatz/test/test.rb > ruby test.rb > > ------------------------------------ > > This gives me a segmentation fault. doing the exact same as above but > using ruby 1.9.3 works fine with no errors. > > first, I have tested it on debian testing and it works with ruby 1.9, 2.0 and 2.1 fine for me. From your back trace it doesn't look like a ruby rsvg bug. I think it is in GLib or rsvg (both the C libs). Can you install the debugging symbols for this two? It may give a more useful back trace. Cheers, detlef |