Encountered on puppetmasterd (from app-admin/puppet) start: Despite of puppet's USE-flag 'shadow' status it's segfaulting if ruby-shadow is installed (ruby loads every possible module? Or there is automagick into puppet build-system?). # puppetmasterd /usr/lib64/ruby/site_ruby/1.8/x86_64-linux/shadow.so: [BUG] Segmentation fault ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux] zsh: abort puppetmasterd I dunno how to get any usable information - I hadn't found any crashlogs or coredumps. emerge --info: ------------------------------------------------------------------------------- Portage 2.2_rc61 (hardened/linux/amd64/10.0/no-multilib, gcc-4.4.2, glibc-2.11-r1, 2.6.32-gentoo-r2-hellgate-0.13 x86_64) ================================================================= System uname: Linux-2.6.32-gentoo-r2-hellgate-0.13-x86_64-Intel-R-_Xeon-R-_CPU_E5504_@_2.00GHz-with-gentoo-2.0.1 Timestamp of tree: Thu, 28 Jan 2010 23:45:01 +0000 app-shells/bash: 4.0_p37 dev-lang/python: 2.6.4-r1, 3.1.1-r1 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.0-r1 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.65 sys-devel/automake: 1.10.3, 1.11.1 sys-devel/binutils: 2.20 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -mtune=native -O2 -pipe -floop-interchange -floop-strip-mine -floop-block" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -mtune=native -O2 -pipe -floop-interchange -floop-strip-mine -floop-block" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--keep-going" FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="ru_RU.UTF-8" LC_ALL="" LDFLAGS="-Wl,--sort-common -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu" LINGUAS="ru" MAKEOPTS="-j16" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/g-cpan /var/lib/layman/hardened-development /var/lib/layman/niifaq /var/lib/layman/sunrise /var/lib/layman/rion /var/lib/layman/ltsp" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="acl acpi afs amd64 berkdb bzip2 cli cracklib crypt cxx dri gdbm hardened iconv ipv6 justify kerberos ldap mmx modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl pic pppd python readline reflection session snmp spl sse sse2 sse4 ssl ssse3 sysfs tcpd threads unicode urandom vim-syntax xorg zlib zsh-completion" ELIBC="glibc" INPUT_DEVICES="keyboard" KERNEL="linux" LINGUAS="ru" RUBY_TARGETS="ruby18" USERLAND="GNU" Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Okay this is going to be fun. The package comes from 2003, there is no gem, and indeed the shadow gem is a totally different package (the ruby- prefix is present in the tarball name but not on the source directory).
(In reply to comment #0) > I dunno how to get any usable information - I hadn't found any crashlogs or > coredumps. http://www.gentoo.org/proj/en/qa/backtraces.xml It would be useful to know where it segfaults (ie. the backtrace). puppet depends on ruby-shadow, but I'm not sure, given Diego's remarks, that that is this version.
According to the puppet website it is. Debian has a patch against the original code that may fix problems? http://patch-tracker.debian.org/patch/misc/view/libshadow-ruby/1.4.1-8/shadow.c
Yes. It seems to fix it. Now puppetmasterd starts without segfault with ruby-shadow installed.
Thanks for the feedback, it should now be fixed in ruby-shadow-1.4.1-r1