Jump to content
Forums in Read-Only Mode - Please use Reddit ×
  • 0

Segmentation fault with dev-lang/ruby-2.2.1


hwmrocker

Question

Hello,
 
I installed yesterday funtoo for the first time. The documentation was very good!!! It worked on the first run.
 
I installed a x server and i3 as my window manager. Last night i started to emerge geary. This morning i saw that there was a segfault in a dependency.
 
thanks for your help!
 
 

./miniruby -I./lib -I. -I.ext/common  ./tool/mkconfig.rb -timestamp=.rbconfig.time \
        -install_name=ruby22 \
        -so_name=ruby22 rbconfig.rb
./miniruby -I./lib -I. -I.ext/common  ./tool/generic_erb.rb -c -o encdb.h ./template/encdb.h.tmpl ./enc enc
make: *** [.rbconfig.time] Segmentation fault
make: *** Waiting for unfinished jobs....
make: *** [encdb.h] Segmentation fault
 * ERROR: dev-lang/ruby-2.2.1 failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-lang/ruby-2.2.1'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/ruby-2.2.1'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/ruby-2.2.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/ruby-2.2.1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/ruby-2.2.1/work/ruby-2.2.1'
 * S: '/var/tmp/portage/dev-lang/ruby-2.2.1/work/ruby-2.2.1'
/var/tmp/portage/dev-lang/ruby-2.2.1/temp/environment: line 102: warning: setlocale: LC_NUMERIC: cannot change locale (de_DE.UTF-8)
/var/tmp/portage/dev-lang/ruby-2.2.1/temp/environment: line 105: warning: setlocale: LC_TIME: cannot change locale (de_DE.UTF-8)

>>> Failed to emerge dev-lang/ruby-2.2.1, Log file:

>>>  '/var/tmp/portage/dev-lang/ruby-2.2.1/temp/build.log'

 * Messages for package dev-lang/ruby-2.0.0_p643:

 *
 * To switch between available Ruby profiles, execute as root:
 *      eselect ruby set ruby(19|20|...)
 *

 * Messages for package dev-lang/ruby-2.1.5:

 *
 * To switch between available Ruby profiles, execute as root:
 *      eselect ruby set ruby(19|20|...)
 *

 * Messages for package dev-lang/ruby-2.2.1:

 * ERROR: dev-lang/ruby-2.2.1 failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-lang/ruby-2.2.1'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/ruby-2.2.1'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/ruby-2.2.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/ruby-2.2.1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/ruby-2.2.1/work/ruby-2.2.1'
 * S: '/var/tmp/portage/dev-lang/ruby-2.2.1/work/ruby-2.2.1'

 * GNU info directory index is up-to-date.

hwmbox ~ # emerge --info '=dev-lang/ruby-2.2.1'
Portage 2.3.6-r9 (funtoo/1.0/linux-gnu/arch/pure64, gcc-4.8.4, glibc-2.19, 3.16.2-3 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.16.2-3-x86_64-Intel-R-_Core-TM-_i5-3320M_CPU_@_2.60GHz-with-gentoo-2.2.0
KiB Mem:    16284088 total,  13054580 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of tree: Unknown
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p30-r1
dev-lang/perl:            5.20.2
dev-lang/python:          2.7.9-r1000, 3.3.6-r1000
dev-util/cmake:           3.1.0
sys-apps/baselayout:      2.2.0-r6
sys-apps/openrc:          0.12.3-r6
sys-apps/sandbox:         2.6-r2
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.13.4, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.4
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.3-r2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.17-r1 (virtual/os-headers)
sys-libs/glibc:           2.19
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core-avx-i -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core-avx-i -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="/usr/lib/systemd/ /lib/systemd/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="git://github.com/funtoo/ports-2012.git"
SYNC_USER="root"
USE="X a52 aac acl alsa amd64 apng berkdb bluray bzip2 cdda cdio cdr cracklib crypt cups cxx dbus dri dts dvd dvdr dvdread encode exif faac faad ffmpeg flac gdbm gif gpm hardened ico iconv icu ieee1394 ios ipod ipv6 jpeg jpeg2k lame libass libguess libmpeg2 mad matroska mjpeg mmx modules mp3 mpeg mtp mudflap ncurses nls nptl ogg openmp pam pax_kernel pcre pic png postproc pppd python quicktime readline resolvconf sndfile sse sse2 ssl svg taglib tcpd theora tiff truetype twolame udev unicode urandom v4l vorbis vpx wav wavpack webp win32codecs wmf x264 x265 xattr xmf xml xtpax xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel ice1724 intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias authn_core authz_core socache_shmcb unixd" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="evdev synaptics keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_ABIS="2.7 3.3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19 ruby20 ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC_UMASK

hwmbox ~ # emerge -pqv '=dev-lang/ruby-2.2.1'
[ebuild  NS   ] dev-lang/ruby-2.2.1 [2.0.0_p643, 2.1.5] USE="berkdb gdbm ipv6 ncurses rdoc readline ssl -debug -doc -examples -jemalloc -rubytests -socks5 -xemacs"
[ebuild  NS   ] dev-lang/ruby-1.9.3_p551 [2.0.0_p643, 2.1.5] USE="berkdb gdbm ipv6 ncurses rdoc readline ssl yaml -debug -doc -examples -rubytests -socks5 -xemacs"
[ebuild  N    ] dev-ruby/rubygems-2.4.6  USE="-server {-test}" RUBY_TARGETS="ruby19 ruby20 ruby21 ruby22"
[ebuild  N    ] virtual/rubygems-10  RUBY_TARGETS="ruby19 ruby20 ruby21 ruby22 -rbx"
[ebuild  N    ] dev-ruby/power_assert-0.2.3  USE="-doc {-test}" RUBY_TARGETS="ruby20 ruby21 ruby22"
[ebuild  N    ] dev-ruby/rake-10.4.2  USE="-doc {-test}" RUBY_TARGETS="ruby19 ruby20 ruby21 ruby22"
[ebuild  N    ] dev-ruby/json-1.8.2-r1  USE="-doc {-test}" RUBY_TARGETS="ruby19 ruby20 ruby21 ruby22"
[ebuild  N    ] dev-ruby/test-unit-3.0.9-r1  USE="-doc {-test}" RUBY_TARGETS="ruby19 ruby20 ruby21 ruby22"
[ebuild  N    ] dev-ruby/minitest-5.5.1  USE="-doc {-test}" RUBY_TARGETS="ruby19 ruby20 ruby21 ruby22"
[ebuild  N    ] dev-ruby/racc-1.4.12  USE="-doc {-test}" RUBY_TARGETS="ruby19 ruby20 ruby21 ruby22"
[ebuild  N    ] dev-ruby/rdoc-4.1.2-r1  USE="-doc {-test}" RUBY_TARGETS="ruby19 ruby20 ruby21 ruby22"

I tried to upload the build logfile. But I don't have the permissions to do so. I pasted the log here:

 

 http://sebsauvage.net/paste/?f58e5cf53f65a796#tZ/CXFfU9fUmikHXKQYddbc1ouUZnxjuFTnLF0BzU9g=

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

for now i fixed this issue. masked the ruby 2.2 package

echo ">=dev-lang/ruby-2.2.0" > /usr/portage/profiles/package.mask/myruby

and inserted the following line into my make.conf

RUBY_TARGETS="ruby21"

now it was possible to emerge ruby.

 

Is there a better way to solve this issue?

 

As far as I know, i will not need ruby for anything else (but i didn't thought that it is some how a dependency of geary either), so this solution is ok for me. So this thread could be marked as solved.

 

If I can assist someone to fix this bug, just tell me.

Link to comment
Share on other sites

  • 0

Try:

# eselect ruby set 1

Then compile what you "want compile (with the --oneshot option)"

Then

# eselect ruby set 2

Hi had troubles with media-libs/mlt.....

 

Ciao :)

 

thx for your reply :)

 

when i checked eselect ruby list, there was just 1 option. But maybe after i made some updates to the masks.

Link to comment
Share on other sites

  • 0
hwmrocker : have you solved ? if not i'll try to comment temporarily the "RUBY_TARGETS="ruby21" and use the old version.

What tell to us:

 

eselect ruby list
?

 

(Is possible that my idea is wrong)

 

Ciao :)

Link to comment
Share on other sites

  • 0

Hi,

 

I had the same problem. Error is related to the size of the stack limit. I tried to increase it (in /etc/security/limits.conf), but after that miniruby had killed my server (load > 100). For me it might be a problem with grsecurity.

Link to comment
Share on other sites

×
×
  • Create New...