Public bug reported:

I was having trouble running Puppet on my Raring system. I'd get an
error like this:

# puppet apply --debug --noop manifests/site.pp 
info: Loading facts in /etc/puppet/modules/concat/lib/facter/concat_basedir.rb
/usr/lib/ruby/1.8/timeout.rb:60: [BUG] Segmentation fault
ruby 1.8.7 (2012-02-08 patchlevel 358) [x86_64-linux]

Line 60 of timeout.rb calls sleep. If I remove that call, I eventually get 
another segfault:
#  puppet apply --debug --noop manifests/site.pp 
info: Loading facts in /etc/puppet/modules/concat/lib/facter/concat_basedir.rb
/usr/lib/ruby/1.8/monitor.rb:231: [BUG] Segmentation fault
ruby 1.8.7 (2012-02-08 patchlevel 358) [x86_64-linux]

It turns out to be amazingly simpe to reproduce:

  require 'timeout'
  status = Timeout::timeout(5) {
    puts "foo"
  }

Running that little snippet with ruby1.8 gives a segfault.

I found these:

   
http://serverfault.com/questions/456640/segfault-in-timeout-rb-using-gem-with-ruby-enterprise-edition-ree-1-8-7
  http://deadc.org/blog/2012/10/19/rvm-install-ruby-1-dot-8-7-with-gcc-4-dot-7/

which  might be of some help.

** Affects: ruby1.8 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1142977

Title:
  Timeout module segfaults

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ruby1.8/+bug/1142977/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to