Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 116987

Summary: Ruby segfaults with FEATURES="test"
Product: Gentoo Linux Reporter: Brent Baude (RETIRED) <ranger>
Component: [OLD] UnspecifiedAssignee: Gentoo Ruby Team <ruby>
Status: RESOLVED DUPLICATE    
Severity: normal CC: ppc64
Priority: High    
Version: unspecified   
Hardware: PPC64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Brent Baude (RETIRED) gentoo-dev 2005-12-28 07:19:28 UTC
I was keywording a ruby package this morning, and as part of it, I emerged ruby with FEATURES="test".  Compilation was fine but during the test phase ruby segfaulted like so:

make[1]: Leaving directory `/var/tmp/portage/ruby-1.8.3/work/ruby-1.8.3'
>>> Test phase [enabled]: dev-lang/ruby-1.8.3
>>> Test phase [check]: dev-lang/ruby-1.8.3
test succeeded
./miniruby ./runruby.rb --extout=.ext -- -C "./test" runner.rb --runner=console 
Loaded suite .
Started
............................................../dbm/test_dbm.rb:35: [BUG] Segmentation fault
ruby 1.8.3 (2005-09-21) [powerpc64-linux]


emerge info as follows:

Portage 2.0.51.22-r3 (default-linux/ppc/2005.1/ppc64/64bit-userland, gcc-3.4.4, glibc-2.3.4.20041102-r1, 2.6.12.5-vios ppc64)
=================================================================
System uname: 2.6.12.5-vios ppc64 POWER5 (gs)
Gentoo Base System version 1.12.0_pre11
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="ppc64"
AUTOCLEAN="yes"
CBUILD="powerpc64-unknown-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="powerpc64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ "
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc64 X acl audiofile berkdb bitmap-fonts bzip2 cscope cups curl emboss esd exif expat fam flac fortran gd gdbm gif glut gmp gpm gtk hal ibm idn imagemagick imlib ipv6 jpeg kde lcms libwww mng motif nas ncurses nls nptl ogg opengl pam pcre perl png postgres python qt readline sdl slang ssl tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis wmf xine xml2 xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS


Do we care?
Comment 1 Yuta SATOH (RETIRED) gentoo-dev 2005-12-29 01:37:09 UTC
Is sys-libs/db-1.85-r1 installed in your environment?
If yes, please delete db-1.85-r1 version and try again. 
When db-1.85-r1 is not installed, Segmentation fault not occurred in my environment.

However, six tests fails in environment. 

  1) Failure:
test_delete(TestDBM) [./dbm/test_dbm.rb:332]:
<DBMError> exception expected but none was thrown.

  2) Failure:
test_delete(TestGDBM) [./gdbm/test_gdbm.rb:441]:
<GDBMError> exception expected but none was thrown.

  3) Failure:
test_s_open_error(TestGDBM) [./gdbm/test_gdbm.rb:199]:
<Errno::EACCES> exception expected but was
Class: <Errno::EAGAIN>
Message: <"Resource temporarily unavailable - tmptest_gdbm">
---Backtrace---
./gdbm/test_gdbm.rb:200:in `open'
./gdbm/test_gdbm.rb:200:in `test_s_open_error'
./gdbm/test_gdbm.rb:199:in `test_s_open_error'
---------------

  4) Failure:
test_decode(OpenSSL::TestASN1) [./openssl/test_asn1.rb:195]:
<"\225y\346'+\246,U\243\000H$\374\337p\261~\335\2064@\272\215\003\306s\037\010\360\001\031T\366\220\233\221\350|\333\036e\330F\256--Y-s\016\336\215[Z00\365\"\274\0312\023\310\326\262\260`v\204\303#F{m&\022\211\326\276\025\226\364\342\f\nl\036\214g\230\306\307\270\031\373\371\340\327\345\024\032\246\353g\035@\276\277\220\036\350\311\333\f\323\233\275\376\242)Xwf\234\241\327\020\355"> expected but was
<"\002M\241\306\354\236\376\270\205\n17\332r\264\e|\213T\321+\r\201\360\234\3121\274\"\006\305w\037Y]\v\210\371r\032D-\2711T2\310\231\364M(lH\303=o\370\037b\226\362\357M\316 \336\356\022\331\317\324\036\354\276\274;\364\347\343\306\312\355\242\274\221\256K\004\370\016]\336\365\243\027\271\357\231\343\352\216\016\360\272I:\253\363\255a\353\251\242\230\345\330\a$T\376\332}K\330\005M\375V">.

  5) Failure:
test_attr(OpenSSL::TestX509Request) [./openssl/test_x509req.rb:94]:
<[["keyUsage", "Digital Signature, Key Encipherment", true],
 ["subjectAltName", "email:gotoyuzo@ruby-lang.org", false]]> expected but was
<[["keyUsage", "Digital Signature, Key Encipherment", false],
 ["subjectAltName", "email:gotoyuzo@ruby-lang.org", false]]>.

  6) Failure:
test_s_open_error(TestSDBM) [./sdbm/test_sdbm.rb:122]:
<Errno::EACCES> exception expected but none was thrown.

1341 tests, 14705 assertions, 6 failures, 0 errors
make: *** [test-all] Error 1
Comment 2 Caleb Tennis (RETIRED) gentoo-dev 2006-01-06 06:34:34 UTC
Is your portage tmpdir or something related on an NFS mount or remote machine?
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2006-01-06 06:45:15 UTC

*** This bug has been marked as a duplicate of 107503 ***