[Pkg-puppet-devel] Bug#962692: puppet: Crashes due to "missing" facts.d directories

Wilmer van der Gaast wilmer at gaast.net
Fri Jun 12 08:12:52 BST 2020


Package: puppet
Version: 5.5.19-1
Severity: grave
Justification: renders package unusable


Since the recent Ruby upgrade, Puppet invocations have been very noisy for a
while already.

But by now it's not even starting. Even after a dpkg -P including most
dependencies (including apt-get remove ruby.*) then reinstalling, all I
get is:

wilmer at veer:~/adsb$ sudo puppet agent --waitforcert 60 -t
/usr/lib/ruby/vendor_ruby/puppet/util.rb:461: warning: URI.escape is
obsolete
/usr/lib/ruby/vendor_ruby/puppet/file_system/file_impl.rb:80: warning: Using
the last argument as keyword parameters is deprecated
free(): invalid pointer
Aborted

Some gdb'ing and strace'ing suggests it gets stuck in facter, which indeed
fails individually with the ~same error.

Some stracing uncovered that it was trying to read the following
directories:

/opt/puppetlabs/facter/facts.d
/etc/facter/facts.d
/etc/puppetlabs/facter/facts.d

through trial and Aborted errors I've created those and now it works again.

Really wondering what's special about my system, or are more folks
seeing this?



-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.6.0-1-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8),
LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages puppet depends on:
ii  adduser              3.118
ii  facter               3.11.0-4.1
ii  hiera                3.2.0-2
ii  init-system-helpers  1.57
ii  lsb-base             11.1.0
ii  ruby                 1:2.7+1
ii  ruby-augeas          1:0.5.0-3+b8
ii  ruby-deep-merge      1.1.1-1
ii  ruby-shadow          2.5.0-1+b3

Versions of packages puppet recommends:
ii  debconf-utils  1.5.74
ii  lsb-release    11.1.0
ii  ruby-selinux   3.0-1+b3

Versions of packages puppet suggests:
pn  ruby-hocon  <none>
pn  ruby-rrd    <none>

-- no debconf information



More information about the Pkg-puppet-devel mailing list