hiera-gpg icon indicating copy to clipboard operation
hiera-gpg copied to clipboard

segmentation fault on lookup

Open ssinger opened this issue 11 years ago • 0 comments

Hiera segfaults when it tries to do a GPG lookup with 1.1.0 of the hiera-gpg module.

/opt/puppet/bin/hiera -c /etc/puppetlabs/puppet/hiera.yaml -y scope.yaml -d myvalue

DEBUG: Thu Nov 08 10:26:54 -0500 2012: [gpg_backend]: Loaded gpg_backend DEBUG: Thu Nov 08 10:26:54 -0500 2012: [gpg_backend]: Lookup called, key ds_servers_pgmisc_password resolution type is priority DEBUG: Thu Nov 08 10:26:54 -0500 2012: [gpg_backend]: GNUPGHOME is /etc/puppetlabs/puppet/keyrings/live DEBUG: Thu Nov 08 10:26:54 -0500 2012: [gpg_backend]: loaded cipher: /etc/puppetlabs/puppet/hieradata_gpg/environments/development/postgres.gpg /opt/puppet/lib/ruby/gems/1.8/gems/gpgme-2.0.0/lib/gpgme/ctx.rb:217: [BUG] Segmentation fault ruby 1.8.7 (2011-12-28 patchlevel 357) [x86_64-linux]

Aborted (core dumped)

0x00007fb4e2558885 in raise () from /lib64/libc.so.6 #1 0x00007fb4e255a065 in abort () from /lib64/libc.so.6 #2 0x00007fb4e31bb4a3 in rb_bug () from /opt/puppet/lib/libruby.so.1.8 #3 0x00007fb4e322293f in ?? () from /opt/puppet/lib/libruby.so.1.8 #4 #5 0x00007fb4dd3609c4 in gpgme_result_unref (result=0xb49) at gpgme.c:246 #6 0x00007fb4dd360a9d in _gpgme_release_result (ctx=0x7fb4df5f7a80) at gpgme.c:271 #7 0x00007fb4dd363112 in _gpgme_op_reset (ctx=0x7fb4df5f7a80, type=2) at op-support.c:88 #8 0x00007fb4dd353ab1 in gpgme_op_keylist_start (ctx=, pattern=0x0, secret_only=0)

at keylist.c:869

#9 0x00007fb4dd34a358 in rb_s_gpgme_op_keylist_start (dummy=, vctx=,

vpattern=4, vsecret_only=<value optimized out>) at gpgme_n.c:682

Many of the components are installed from locally built RPM's from upstream sources. rpm -q -a |grep gpgme

pe-rubygem-gpgme-2.0.0-16.1.x86_64 gpgme-1.1.8-3.el6.x86_64

rpm -q -a |grep hiera pe-rubygem-hiera-0.3.0-333.pe.el6.noarch pe-rubygem-hiera-puppet-0.3.0-1.pe.el6.noarch pe-rubygem-hiera-gpg-1.1.0-8.1.noarch

ssinger avatar Nov 08 '12 20:11 ssinger