Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 352451 - dev-libs/glib-2.26.1-r1: test fail
Summary: dev-libs/glib-2.26.1-r1: test fail
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks: gnome2.32
  Show dependency tree
 
Reported: 2011-01-22 21:54 UTC by Pacho Ramos
Modified: 2011-01-24 15:13 UTC (History)
0 users

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


Attachments
build.log (glib-2.26.1-r1:20110122-214010.log,888.89 KB, text/plain)
2011-01-22 21:55 UTC, Pacho Ramos
Details
build.log (glib-2.26.1-r1:20110122-223403.log,874.03 KB, text/plain)
2011-01-22 22:43 UTC, Pacho Ramos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2011-01-22 21:54:59 UTC
I don't know why test started to fail today :-/


PASS: contexts
TEST: gsettings... (pid=7943)
  /gsettings/basic:                                                    **
ERROR:gsettings.c:38:test_basic: assertion failed (str == "goodbye world"): ("Hello, earthlings" == "goodbye world")
FAIL
GTester: last random seed: R02S36566b58312ae2f10bf618b442025703
/bin/sh: línea 1:  7687 Terminado               MALLOC_CHECK_=2 MALLOC_PERTURB_=$((${RANDOM:-256} % 256)) ../../glib/gtester --verbose memory-input-stream memory-output-stream readwrite g-file g-file-info converter-stream data-input-stream data-output-stream g-icon buffered-input-stream buffered-output-stream sleepy-stream filter-streams volumemonitor simple-async-result srvtarget contexts gsettings gschema-compile async-close-output-stream gdbus-addresses network-address gdbus-message socket gdbus-connection gdbus-connection-slow gdbus-names gdbus-proxy gdbus-proxy-well-known-name gdbus-introspection gdbus-threading gdbus-export gdbus-error gdbus-peer gdbus-exit-on-close gdbus-non-socket gdbus-bz627724 appinfo contenttype file live-g-file desktop-app-info unix-fd unix-streams gdbus-serialization
make[4]: *** [test-nonrecursive] Error 143
make[4]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.26.1-r1/work/glib-2.26.1/gio/tests'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.26.1-r1/work/glib-2.26.1/gio/tests'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.26.1-r1/work/glib-2.26.1/gio'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.26.1-r1/work/glib-2.26.1/gio'
make: *** [check-recursive] Error 1
emake failed
 * ERROR: dev-libs/glib-2.26.1-r1 failed:
 *   tests failed
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_test
 *   environment, line 3392:  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.26.1-r1',
 * the complete build log and the output of 'emerge -pqv =dev-libs/glib-2.26.1-r1'.
 * The complete build log is located at '/var/log/portage/build/dev-libs/glib-2.26.1-r1:20110122-214010.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/glib-2.26.1-r1/temp/environment'.
 * S: '/var/tmp/portage/dev-libs/glib-2.26.1-r1/work/glib-2.26.1'


Reproducible: Always




Portage 2.1.9.34 (default/linux/amd64/10.0/desktop/gnome, gcc-4.4.4, glibc-2.11.2-r3, 2.6.37-ck x86_64)
=================================================================
System uname: Linux-2.6.37-ck-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-gentoo-1.12.14
Timestamp of tree: Fri, 21 Jan 2011 13:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r1, 3.1.2-r4
dev-util/ccache:     2.4-r9
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages multilib-strict news parallel-fetch protect-owned sandbox sfperms sign split-log strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org 		http://ftp.ussg.iu.edu/linux/gentoo 		http://mirror.ovh.net/gentoo-distfiles/ 		http://ftp.heanet.ie/pub/gentoo/ 		http://gentoo-euetib.upc.es/mirror/gentoo/ 		http://ftp.udc.es/gentoo/ 		http://darkstar.ist.utl.pt/gentoo/"
LANG="es_ES.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="es es_ES en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/local/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/portage/local/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 applet avahi bash-completion berkdb branding bzip2 cairo cdda cddb cdinstall cdr cdrom cleartype cli consolekit cracklib crypt css cups cxx daap dbus djvu dri dts dvd dvdr dvi eds emboss encode evo exif fam fat ffmpeg firefox flac fortran fuse gdbm gdu gif git gnome gnome-keyring gpm gstreamer gtk hddtemp iconv java jpeg kpathsea latex lcdfilter lcms libnotify lm_sensors lyx lzma mad mikmod mmx mmxext mng modules mono mp3 mp4 mpeg mudflap multilib musicbrainz nautilus ncurses network network-cron nls nptl nptlonly ntfs nvidia ogg opengl openmp pam pango pch pcre pdf perl png policykit ppds pppd python qt3support qt4 readline reiserfs scanner sdl session spell sse sse2 sse3 ssl startup-notification subversion svg sysfs t1lib tcpd test threads tiff truetype udev unicode usb v4l2 vcd vorbis webkit x264 xattr xcb xml xmp xorg xpm xulrunner xv xvid zeroconf zlib" ALSA_CARDS="via82xx" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es es_ES en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Pacho Ramos gentoo-dev 2011-01-22 21:55:23 UTC
Created attachment 260521 [details]
build.log
Comment 2 Pacho Ramos gentoo-dev 2011-01-22 22:30:00 UTC
Umm, I see the following in dmesg when test fail:

strfuncs[28580]: segfault at 0 ip 0000003601c7cb52 sp 00007fffc498a028 error 4 in libc-2.11.2.so[3601c00000+150000]
strfuncs[2496]: segfault at 0 ip 0000003601c7cb52 sp 00007fff4619c168 error 4 in libc-2.11.2.so[3601c00000+150000]
strfuncs[6614]: segfault at 0 ip 0000003601c7cb52 sp 00007fffa85f4d48 error 4 in libc-2.11.2.so[3601c00000+150000]
strfuncs[12051]: segfault at 0 ip 0000003601c7cb52 sp 00007fffd4324848 error 4 in libc-2.11.2.so[3601c00000+150000]
Comment 3 Pacho Ramos gentoo-dev 2011-01-22 22:43:39 UTC
Created attachment 260523 [details]
build.log

And now:

  /GDateTime/new_from_timeval:                                         OK
  /GDateTime/new_full:                                                 OK
  /GDateTime/now:                                                      OK
  /GDateTime/printf:                                                   **
ERROR:gdatetime.c:805:test_GDateTime_printf: assertion failed (__p == (t_str)): ("1256335200" == "1256421600")
FAIL
GTester: last random seed: R02S0284c8f5aaaefbb1ecd7f26bb0f4fdce
/bin/sh: línea 1:  7762 Terminado               MALLOC_CHECK_=2 MALLOC_PERTURB_=$((${RANDOM:-256} % 256)) ../../glib/gtester --verbose testing option-context keyfile fileutils printf protocol rand strfuncs string markup-parse markup-coll
ect markup-escape markup-subparser array-test hostutils gvariant mem-overflow utils regex base64 sequence scannerapi shell collate utf8-pointer utf8-validate utf8-misc checksum hash date node convert list slist queue tree uri dir pattern
 logging error bookmarkfile gdatetime
make[4]: *** [test-nonrecursive] Error 143
make[4]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.26.1-r1/work/glib-2.26.1/glib/tests'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.26.1-r1/work/glib-2.26.1/glib/tests'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.26.1-r1/work/glib-2.26.1/glib'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.26.1-r1/work/glib-2.26.1/glib'
make: *** [check-recursive] Error 1
emake failed

And:

strfuncs[7977]: segfault at 0 ip 0000003601c7cb52 sp 00007fff72cb41a8 error 4 in libc-2.11.2.so[3601c00000+150000]


Maybe I should recompile glibc, but I don't know why it's causing problems now after months of working ok :-|
Comment 4 Pacho Ramos gentoo-dev 2011-01-22 23:02:55 UTC
(In reply to comment #2)
> Umm, I see the following in dmesg when test fail:
> 
> strfuncs[28580]: segfault at 0 ip 0000003601c7cb52 sp 00007fffc498a028 error 4
> in libc-2.11.2.so[3601c00000+150000]
> strfuncs[2496]: segfault at 0 ip 0000003601c7cb52 sp 00007fff4619c168 error 4
> in libc-2.11.2.so[3601c00000+150000]
> strfuncs[6614]: segfault at 0 ip 0000003601c7cb52 sp 00007fffa85f4d48 error 4
> in libc-2.11.2.so[3601c00000+150000]
> strfuncs[12051]: segfault at 0 ip 0000003601c7cb52 sp 00007fffd4324848 error 4
> in libc-2.11.2.so[3601c00000+150000]
> 

Looks like these error are a bit "common" (see bug 311839), then, I don't know if they are related with this exact problem or not
Comment 5 Pacho Ramos gentoo-dev 2011-01-22 23:05:32 UTC
(In reply to comment #0)
> PASS: contexts
> TEST: gsettings... (pid=7943)
>   /gsettings/basic:                                                    **
> ERROR:gsettings.c:38:test_basic: assertion failed (str == "goodbye world"):
> ("Hello, earthlings" == "goodbye world")
> FAIL
> GTester: last random seed: R02S36566b58312ae2f10bf618b442025703
> /bin/sh: línea 1:  7687 Terminado               MALLOC_CHECK_=2
> MALLOC_PERTURB_=$((${RANDOM:-256} % 256)) ../../glib/gtester --verbose
> memory-input-stream memory-output-stream readwrite g-file g-file-info
> converter-stream data-input-stream data-output-stream g-icon
> buffered-input-stream buffered-output-stream sleepy-stream filter-streams
> volumemonitor simple-async-result srvtarget contexts gsettings gschema-compile
> async-close-output-stream gdbus-addresses network-address gdbus-message socket
> gdbus-connection gdbus-connection-slow gdbus-names gdbus-proxy
> gdbus-proxy-well-known-name gdbus-introspection gdbus-threading gdbus-export
> gdbus-error gdbus-peer gdbus-exit-on-close gdbus-non-socket gdbus-bz627724
> appinfo contenttype file live-g-file desktop-app-info unix-fd unix-streams
> gdbus-serialization
> make[4]: *** [test-nonrecursive] Error 143
> make[4]: Leaving directory
> `/var/tmp/portage/dev-libs/glib-2.26.1-r1/work/glib-2.26.1/gio/tests'
> make[3]: *** [check-am] Error 2
> make[3]: Leaving directory
> `/var/tmp/portage/dev-libs/glib-2.26.1-r1/work/glib-2.26.1/gio/tests'
> make[2]: *** [check-recursive] Error 1
> make[2]: Leaving directory
> `/var/tmp/portage/dev-libs/glib-2.26.1-r1/work/glib-2.26.1/gio'
> make[1]: *** [check] Error 2
> make[1]: Leaving directory
> `/var/tmp/portage/dev-libs/glib-2.26.1-r1/work/glib-2.26.1/gio'
> make: *** [check-recursive] Error 1
> emake failed
>  * ERROR: dev-libs/glib-2.26.1-r1 failed:
>  *   tests failed
>  * 
>  * Call stack:
>  *     ebuild.sh, line  56:  Called src_test
>  *   environment, line 3392:  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.26.1-r1',
>  * the complete build log and the output of 'emerge -pqv
> =dev-libs/glib-2.26.1-r1'.
>  * The complete build log is located at
> '/var/log/portage/build/dev-libs/glib-2.26.1-r1:20110122-214010.log'.
>  * The ebuild environment file is located at
> '/var/tmp/portage/dev-libs/glib-2.26.1-r1/temp/environment'.
>  * S: '/var/tmp/portage/dev-libs/glib-2.26.1-r1/work/glib-2.26.1'
> 

OK, I am able to reproduce this failure if I don't apply patch for fixing bug 351387


(In reply to comment #3)
> Created an attachment (id=260523) [details]
> build.log
> 
> And now:
> 
>   /GDateTime/new_from_timeval:                                         OK
>   /GDateTime/new_full:                                                 OK
>   /GDateTime/now:                                                      OK
>   /GDateTime/printf:                                                   **
> ERROR:gdatetime.c:805:test_GDateTime_printf: assertion failed (__p == (t_str)):
> ("1256335200" == "1256421600")
> FAIL
> GTester: last random seed: R02S0284c8f5aaaefbb1ecd7f26bb0f4fdce
> /bin/sh: línea 1:  7762 Terminado               MALLOC_CHECK_=2
> MALLOC_PERTURB_=$((${RANDOM:-256} % 256)) ../../glib/gtester --verbose testing
> option-context keyfile fileutils printf protocol rand strfuncs string
> markup-parse markup-coll
> ect markup-escape markup-subparser array-test hostutils gvariant mem-overflow
> utils regex base64 sequence scannerapi shell collate utf8-pointer utf8-validate
> utf8-misc checksum hash date node convert list slist queue tree uri dir pattern
>  logging error bookmarkfile gdatetime
> make[4]: *** [test-nonrecursive] Error 143
> make[4]: Leaving directory
> `/var/tmp/portage/dev-libs/glib-2.26.1-r1/work/glib-2.26.1/glib/tests'
> make[3]: *** [check-am] Error 2
> make[3]: Leaving directory
> `/var/tmp/portage/dev-libs/glib-2.26.1-r1/work/glib-2.26.1/glib/tests'
> make[2]: *** [check-recursive] Error 1
> make[2]: Leaving directory
> `/var/tmp/portage/dev-libs/glib-2.26.1-r1/work/glib-2.26.1/glib'
> make[1]: *** [check] Error 2
> make[1]: Leaving directory
> `/var/tmp/portage/dev-libs/glib-2.26.1-r1/work/glib-2.26.1/glib'
> make: *** [check-recursive] Error 1
> emake failed

And I am able to reproduce this one if I apply patch for bug 351387
Comment 6 Pacho Ramos gentoo-dev 2011-01-24 11:28:35 UTC
I don't have time now, but I need to try:
http://git.gnome.org/browse/glib/commit/?id=3f059a6a123dd62257f224b9af7701078783060e

(and maybe setting LC_ALL=C for other tests could be needed also)
Comment 7 Pacho Ramos gentoo-dev 2011-01-24 13:04:50 UTC
gsettings/basic test fails due GSETTINGS_BACKEND variable set to "gconf", this explains why I didn't hit this issue before as I was still using gconf-2.32.0 until a few days ago
Comment 8 Gilles Dartiguelongue (RETIRED) gentoo-dev 2011-01-24 13:49:23 UTC
resetting the variable to "memory" in the ebuild should do the trick then.
Comment 9 Pacho Ramos gentoo-dev 2011-01-24 13:55:19 UTC
+  24 Jan 2011; Pacho Ramos <pacho@gentoo.org> glib-2.26.1-r1.ebuild,
+  +files/glib-2.26.1-gatomic-header.patch,
+  +files/glib-2.26.1-gdatetime-test.patch:
+  Add openbsd patch to fix build on several arches (bug #351387 by Alan
+  Hourihane and Raúl Porcel) once I confirmed it doesn't cause any test
+  failure regression. Remove test that seems to fail depending on time of day
+  as done by upstream (was causing one of the failures in bug #352451) and
+  unset GSETTINGS_BACKEND (bug #352451) until upstream takes care (upstream bug
+  #640412).
+
Comment 10 Pacho Ramos gentoo-dev 2011-01-24 13:56:14 UTC
(In reply to comment #8)
> resetting the variable to "memory" in the ebuild should do the trick then.
> 

Sorry, (mid-air collision), I finally opted for unsetting variable, do you think would be better to set it to "memory" instead?
Comment 11 Pacho Ramos gentoo-dev 2011-01-24 14:00:18 UTC
Important comment from upstream:
https://bugzilla.gnome.org/show_bug.cgi?id=640412#c1
"The gconf backend is not meant to be used at all except as a tool for porting
applications.

Please never set GSETTINGS_BACKEND=gconf in any kind of global way.  This way
lies pain."

That should be dropped from gconf-2.32.0-r1 then?
Comment 12 Gilles Dartiguelongue (RETIRED) gentoo-dev 2011-01-24 14:14:04 UTC
about setting the variable, setting it to memory or unsetting it should have the same effect.

(In reply to comment #11)
> Important comment from upstream:
> https://bugzilla.gnome.org/show_bug.cgi?id=640412#c1
> "The gconf backend is not meant to be used at all except as a tool for porting
> applications.
> 
> Please never set GSETTINGS_BACKEND=gconf in any kind of global way.  This way
> lies pain."
> 
> That should be dropped from gconf-2.32.0-r1 then?

nope, upstream should have provided a full port to gsettings if they wished downstream to not use gconf anymore. Current settings seems to provide the same user experience we've had for years so we're not gonna change it just because "it isn't clean". We'll make it clean when it can actually be cleaned up.

Comment 13 Pacho Ramos gentoo-dev 2011-01-24 15:13:06 UTC
OK, thanks :-)