Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rspec-puppet-augeas segfaults on Mac OSX Mavericks with augeas 1.2.0 #11

Open
mcallaway opened this issue Apr 23, 2014 · 1 comment
Open

Comments

@mcallaway
Copy link
Contributor

The relevant part of my test is simple:

      describe_augeas 'auto.master: auto.gapp', :lens => 'Automaster', :target => 'etc/auto.master' do
        it 'should add /gapp' do
          should execute.with_change
          aug_get('1').should == '/gapp'
          should execute.idempotently
        end
      end

It segfaults:

> bundle exec rake spec
/Users/mcallawa/.rbenv/versions/1.8.7-p370/bin/ruby -S rspec spec/classes/network_mount_autofs_spec.rb spec/classes/network_mount_gapp_spec.rb spec/classes/network_mount_spec.rb --color
....../Users/mcallawa/git/puppet-modules/site/network_mount/bundles/ruby/1.8/bundler/gems/rspec-puppet-augeas-36e075ac5f9c/lib/rspec-puppet-augeas/test_utils.rb:16: [BUG] Segmentation fault
ruby 1.8.7 (2012-06-29 patchlevel 370) [i686-darwin11.4.2]

/Users/mcallawa/.rbenv/versions/1.8.7-p370/bin/ruby -S rspec spec/classes/network_mount_autofs_spec.rb spec/classes/network_mount_gapp_spec.rb spec/classes/network_mount_spec.rb --color failed

This is on Mac OSX wit augeas 1.2.0:

> brew list augeas
/usr/local/Cellar/augeas/1.2.0/bin/augtool
/usr/local/Cellar/augeas/1.2.0/bin/augparse
/usr/local/Cellar/augeas/1.2.0/include/ (2 files)
/usr/local/Cellar/augeas/1.2.0/lib/libaugeas.0.dylib
/usr/local/Cellar/augeas/1.2.0/lib/libfa.1.dylib
/usr/local/Cellar/augeas/1.2.0/lib/pkgconfig/augeas.pc
/usr/local/Cellar/augeas/1.2.0/lib/ (4 other files)
/usr/local/Cellar/augeas/1.2.0/share/augeas/ (362 files)
/usr/local/Cellar/augeas/1.2.0/share/man/ (2 files)
/usr/local/Cellar/augeas/1.2.0/share/vim/ (2 files)
@domcleal
Copy link
Owner

domcleal commented Dec 4, 2014

This is likely a bug in ruby-augeas or augeas itself, it'd be great if you could get a core file and backtrace if it's still an issue. rspec-puppet-augeas is just using the Ruby API here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants