Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 331293 - [FEATURES=test] dev-libs/glib-2.24.1-r1 fails test due to memory constraints
Summary: [FEATURES=test] dev-libs/glib-2.24.1-r1 fails test due to memory constraints
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: gnome-tests
  Show dependency tree
 
Reported: 2010-08-05 09:53 UTC by Myckel Habets (work)
Modified: 2011-04-24 17:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,559.78 KB, text/plain)
2010-08-06 13:36 UTC, Myckel Habets (work)
Details
environment (environment,116.06 KB, text/plain)
2010-08-06 13:37 UTC, Myckel Habets (work)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Myckel Habets (work) 2010-08-05 09:53:50 UTC
Emerging dev-libs/glib-2.24.1-r1 fails test performance




Reproducible: Always

Steps to Reproduce:
1. emerge glib-2.24.1-r1 due to world update

Actual Results:  
libtool: link: i686-pc-linux-gnu-gcc -O2 -mtune=i686 -pipe -ggdb -Wall -Wl,-O1 -Wl,--as-needed -o .libs/performance-threaded performance-threaded.o  ../../gobject/.libs/libgobject-2.0.so /var/tmp/portage/dev-libs/glib-2.24.1-r1/work/glib-2.24.1/gthread/.libs/libgthread-2.0.so ../../glib/.libs/libglib-2.0.so ../../gthread/.libs/libgthread-2.0.so -lpthread -lrt /var/tmp/portage/dev-libs/glib-2.24.1-r1/work/glib-2.24.1/glib/.libs/libglib-2.0.so
libtool: link: i686-pc-linux-gnu-gcc -O2 -mtune=i686 -pipe -ggdb -Wall -Wl,-O1 -Wl,--as-needed -o .libs/singleton singleton.o  ./.libs/libtestgobject.a ../../gobject/.libs/libgobject-2.0.so /var/tmp/portage/dev-libs/glib-2.24.1-r1/work/glib-2.24.1/gthread/.libs/libgthread-2.0.so -lpthread -lrt /var/tmp/portage/dev-libs/glib-2.24.1-r1/work/glib-2.24.1/glib/.libs/libglib-2.0.so ../../glib/.libs/libglib-2.0.so
libtool: link: i686-pc-linux-gnu-gcc -O2 -mtune=i686 -pipe -ggdb -Wall -Wl,-O1 -Wl,--as-needed -o .libs/references references.o  ./.libs/libtestgobject.a ../../gobject/.libs/libgobject-2.0.so /var/tmp/portage/dev-libs/glib-2.24.1-r1/work/glib-2.24.1/gthread/.libs/libgthread-2.0.so -lpthread -lrt /var/tmp/portage/dev-libs/glib-2.24.1-r1/work/glib-2.24.1/glib/.libs/libglib-2.0.so ../../glib/.libs/libglib-2.0.so
make[5]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.24.1-r1/work/glib-2.24.1/tests/gobject'
make  check-TESTS check-local
make[5]: Entering directory `/var/tmp/portage/dev-libs/glib-2.24.1-r1/work/glib-2.24.1/tests/gobject'
PASS: deftype
PASS: gvalue-test
PASS: paramspec-test
PASS: accumulator
PASS: defaultiface
PASS: dynamictype
PASS: ifacecheck
PASS: ifaceinit
PASS: ifaceinherit
PASS: ifaceproperties
PASS: override
Running test simple-construction

GLib-ERROR **: gmem.c:246: overflow allocating 2147483648*4 bytes
aborting...
/bin/sh: line 5: 32315 Aborted                 srcdir=. LIBCHARSET_ALIAS_DIR=../../glib/libcharset MALLOC_CHECK_=2 MALLOC_PERTURB_=$((${RANDOM:-256} % 256)) ${dir}$tst
FAIL: performance
Running test "liststore-is-a"
  1207 runs, min/avg/max = 0.000/1.657/10.000 ms
Running test "liststore-interface-peek"
  1551 runs, min/avg/max = 0.000/1.289/10.000 ms
Running test "liststore-interface-peek-same"
  1549 runs, min/avg/max = 0.000/1.285/10.000 ms
PASS: performance-threaded
PASS: singleton
PASS: references
=====================================================================
1 of 15 tests failed
Please report to http://bugzilla.gnome.org/enter_bug.cgi?product=glib
=====================================================================
make[5]: *** [check-TESTS] Error 1
make[5]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.24.1-r1/work/glib-2.24.1/tests/gobject'
make[4]: *** [check-am] Error 2
make[4]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.24.1-r1/work/glib-2.24.1/tests/gobject'
make[3]: *** [check] Error 2
make[3]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.24.1-r1/work/glib-2.24.1/tests/gobject'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.24.1-r1/work/glib-2.24.1/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.24.1-r1/work/glib-2.24.1'
make: *** [check] Error 2
 * ERROR: dev-libs/glib-2.24.1-r1 failed:
 *   tests failed
 *
 * Call stack:
 *     ebuild.sh, line  54:  Called src_test
 *   environment, line 3181:  Called die
 * The specific snippet of code:
 *       emake check || die "tests failed"
 *
 * If you need support, post the output of 'emerge --info =dev-libs/glib-2.24.1-r1',
 * the complete build log and the output of 'emerge -pqv =dev-libs/glib-2.24.1-r1'.
 * The complete build log is located at '/var/tmp/portage/dev-libs/glib-2.24.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/glib-2.24.1-r1/temp/environment'.
 * S: '/var/tmp/portage/dev-libs/glib-2.24.1-r1/work/glib-2.24.1'


Expected Results:  
Test does not fail and dev-libs/glib-2.24.1-r1 gets installed properly.

emerge --info
Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.4.3, glibc-2.11.2-r0, 2.6.33-co-0.8.0 i686)
=================================================================
System uname: Linux-2.6.33-co-0.8.0-i686-Intel-R-_Pentium-R-_4_CPU_3.20GHz-with-gentoo-1.12.13
Timestamp of tree: Thu, 05 Aug 2010 06:45:01 +0000
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.5-r2, 3.1.2-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=i686 -pipe -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /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="-O2 -mtune=i686 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests collision-protect distlocks fixpackages news nostrip parallel-fetch protect-owned sandbox sfperms strict test unmerge-logs unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://mirror.datapipe.net/gentoo"
LDFLAGS="-Wl,-O1,--as-needed"
MAKEOPTS="-j3"
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/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X berkdb bzip2 cgi cleartype cli cracklib crypt cxx dbus dri examples fastcgi fortran gdbm gpm hal iconv ipv6 jpeg libnotify logrotate mmx modules mudflap mysql ncurses nptl nptlonly openmp pam pcre pdf perl php pic png posix pppd python readline reflection ruby session spl sqlite sse sse2 ssl startup-notification svg sysfs tcpd threads thunar tiff truetype unicode x86 xcb xcomposite xft xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa" 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, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Michael Weber (RETIRED) gentoo-dev 2010-08-06 08:41:19 UTC
Hello,

please attach the full build.log and environment files mentioned at the end of the failed emerge process.

Thanks, Michael
Comment 2 Myckel Habets (work) 2010-08-06 13:36:58 UTC
Created attachment 241645 [details]
build.log
Comment 3 Myckel Habets (work) 2010-08-06 13:37:16 UTC
Created attachment 241647 [details]
environment
Comment 4 Myckel Habets (work) 2010-08-06 13:38:15 UTC
(In reply to comment #1)
> Hello,
> 
> please attach the full build.log and environment files mentioned at the end of
> the failed emerge process.
> 
> Thanks, Michael
> 

Here are the files you requested.
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-09-03 10:42:34 UTC
After a couple of tests, hitting the same error:
GLib-ERROR **: gmem.c:246: overflow allocating 2147483648*4 bytes

I came to the conclusion that glib testsuite needs a lot of free memory. Please make sure you close all big consumer of memory before running the testsuite and try again.
Comment 6 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-09-08 19:53:52 UTC
could you test while taking care of comment #5 ?
Comment 7 Myckel Habets (work) 2010-09-09 08:26:38 UTC
(In reply to comment #6)
> could you test while taking care of comment #5 ?
> 

This system has a little amount of memory on its own:
 free
             total       used       free     shared    buffers     cached
Mem:        239768     156908      82860          0      15760     124284
-/+ buffers/cache:      16864     222904
Swap:      1048568        476    1048092

This is the situation with only minimal amount of processes running.

Is it possible to restrict the test based on the amount of available memory?
Comment 8 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-09-09 14:25:56 UTC
I have no idea, we should ask upstream about it I guess.
Comment 9 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-09-29 13:33:01 UTC
reopening so we can track the problem.
Comment 10 Pacho Ramos gentoo-dev 2011-01-11 14:11:26 UTC
Are you still suffering this with 2.26.x? If that is the case, try running tests manually and, if still failing, open a bug to upstream and leave a link here. Thanks
Comment 11 Pacho Ramos gentoo-dev 2011-02-03 10:05:43 UTC
(In reply to comment #10)
> Are you still suffering this with 2.26.x? If that is the case, try running
> tests manually and, if still failing, open a bug to upstream and leave a link
> here. Thanks
>