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

Bug 387799

Summary: net-libs/glib-networking-2.30.1 intermittently fails tls test
Product: Gentoo Linux Reporter: Xake <kanelxake>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED UPSTREAM    
Severity: normal Keywords: TESTFAILURE
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://bugzilla.gnome.org/show_bug.cgi?id=695062
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
gdb ./tls (had to run the file three times inside of gdb before it terminated)

Description Xake 2011-10-20 08:08:10 UTC
Created attachment 290315 [details]
build.log

** WARNING **: Command line `dbus-launch --autolaunch=a9ef59d586f189aede5188350000001c --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n
FAIL


adding virtualx to inherit, and the following to the ebuild:

src_test() {
   Xemake check
}

made the ebuild build and pass that test.

There is a /tls/connection/client-auth that also fails from time to time (have yet to pinpoint when and why), but that is another bug and this code will at least fix one issue.

(the test-USE-flag in the following output is from the ebuild adding virtualx)

lillen xake # emerge -pqv =net-libs/glib-networking-2.30.1
[ebuild   R   ] net-libs/glib-networking-2.30.1  USE="gnome libproxy ssl test" 
lillen xake # emerge --info =net-libs/glib-networking-2.30.1
Portage 2.2.0_alpha69 (hardened/linux/amd64, gcc-4.5.3, glibc-2.13-r4, 3.0.6-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.0.6-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.1
Timestamp of tree: Wed, 19 Oct 2011 10:00:01 +0000
ccache version 3.1.6 [disabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.6-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r3
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo gnome Mine gamerlay-stable x11 xake-overlay
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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 -ggdb -mtune=native"
DISTDIR="/var/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg distlocks ebuild-locks fail-clean fixlafiles metadata-transfer news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms splitdebug strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf-8"
LC_ALL="C"
LDFLAGS="-Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,--warn-once,--hash-style=gnu"
LINGUAS="sv en"
MAKEOPTS="-j16 -l15"
PKGDIR="/var/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="/var/portage"
PORTDIR_OVERLAY="/var/overlays/layman/gnome /var/overlays/mine /var/overlays/layman/gamerlay /var/overlays/layman/x11 /var/overlays/layman/xake-overlay"
SYNC="rsync://liten.localdomain/gentoo-portage"
USE="10bit X a52 aac acl acpi action_modeswitch aio alsa amd64 amr amrnb amrwb apng applet archive aria2 asyncns autoipd avahi bash-completion bluetooth branding btrfs bzip2 cairo caps ccache cdaudio cdda cdr cleartype cli clutter colord connection-sharing consolekit coverart cracklib crypt cups cxx dbus device-mapper devicekit devkit dhcpcd digitalradio djvu dri dts dvd dvdr dvi edd eds enca encode equalizer eselect evo exif fat fbcondecor ffmpeg fftw flac fluidsynth fontconfig fuse gdbm gdm gdu geoip gif gimp glib gmp gnome gnome-keyring gphoto2 gpm grammar graphite gsf gsm gstreamer gtk gtk3 gtkstyle gudev hardened hires-icons hpn hwdb ical iconv iconvacl icq icu id3tag idn ieee1394 iptc ipv6 jabber jack java6 jingle jit jpeg jpeg2k justify kate kerberos keymap kvm lcms libffi libnotify libsamplerate llvm lm_sensors logrotate lto lvm lzma mad maps math matroska md mdadm midi mms mmx mmxext mng moonlight mp2 mp3 mpeg mpfr mpi msn mtp mudflap multilib musepack musicbrainz natspec nautilus ncurses network-cron networkmanager nfs nls nntp nptl nptlonly ntfs ntfsprogs ntp nut ocr offensive ogg openal opencore-amr opengl openmp openntpd openvg ots pam pango parted pax_kernel pcre pdf pgo pidgin playlist png policykit pppd pulseaudio qt3support quicktime quvi raw readline realtime romio rrdcgi rtmp samba scanner schroedinger seed sensord session smp sms speex spell spice sse sse2 sse3 ssl ssse3 startup-notification subversion svg sysfs test tex theora thesaurus threads tiff totem truetype udev unicode upnp urandom usb userlocales vcd vdpau vhook videos vim-syntax vorbis webgl webkit wmf x264 xattr xcb xcomposite xinerama xml xmp xmpp xorg xps xrandr xscreensaver xulrunner xv xvfb xvid zeroconf zlib" ALSA_CARDS="hda-intel" 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="lvm mdraid syslog btrfs caps" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="sv en" NETBEANS_MODULES="cnd profiler dlight harness ide java websvccommon apisupport nb" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" SANE_BACKENDS="net niash snapscan" USERLAND="GNU" VIDEO_CARDS="nouveau nvidia" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

net-libs/glib-networking-2.30.1 was built with the following:
USE="gnome libproxy (multilib) ssl test"
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-10-20 15:19:47 UTC
The changes that you proposed had already been made in the glib-networking-2.30.1-r1 ebuild, but are for now commented out, and the tests themselves disabled by RESTRICT="test", due to the intermittent failures in the tls test that I am also experiencing.

On the other hand, another developer reported that he cannot reproduce those tls test failures.

Leaving this bug open for now as a reminder to figure out what is going on with the tls tests.
Comment 2 Xake 2011-10-20 18:25:54 UTC
Yeah, that is the strange part. Sometime the tls test works, most of the time it does not, and this even with a identical env (i.e. ssh to the host, run "sudo emerge -1 glib-networking ; sudo emerge -1 glib-networking", and this time around the first one worked, the second time it failed. last time I tested it was the opposite). I do not know if there is some kind of race-condition triggered?
Comment 3 Pacho Ramos gentoo-dev 2011-10-20 23:35:00 UTC
I am the one that cannot reproduce :-/

Have you tried to run tests when manually compiling?
./configure && make && make check

Are you able to reproduce that tls test failure? I have tried multiple times (~10) and it doesn't fail for me
Comment 4 Xake 2011-10-21 23:34:58 UTC
Created attachment 290493 [details]
gdb ./tls (had to run the file three times inside of gdb before it terminated)

(In reply to comment #3)
> I am the one that cannot reproduce :-/
> 
> Have you tried to run tests when manually compiling?
> ./configure && make && make check
> 
> Are you able to reproduce that tls test failure? I have tried multiple times
> (~10) and it doesn't fail for me

For me it fails more often then it works...

I did:
tar xaf /var/portage/distfiles/glib-networking-2.30.1.tar.xz && cd glib-networking-2.30.1 && ./configure && make -j10 && make check

For me the testcase works about three aout of 20 times. Does not matter if I recompile, or just runs the test over and over again, sometimes it works, most of the time it does not.

Just running the test-file itself is just as good:

xake@lillen ~/devel/glib-networking-2.30.1/tls/tests $ ./tls
/tls/connection/basic: OK
/tls/connection/verified: OK
/tls/connection/client-auth: **
ERROR:tls.c:265:on_input_read_finish: assertion failed (error == NULL): Error performing TLS handshake: The request is invalid. (g-tls-error-quark, 1)
Avbruten (SIGABRT) (minnesutskrift skapad)
xake@lillen ~/devel/glib-networking-2.30.1/tls/tests $ ./tls
/tls/connection/basic: OK
/tls/connection/verified: OK
/tls/connection/client-auth: **
ERROR:tls.c:265:on_input_read_finish: assertion failed (error == NULL): Error performing TLS handshake: The request is invalid. (g-tls-error-quark, 1)
Avbruten (SIGABRT) (minnesutskrift skapad)
xake@lillen ~/devel/glib-networking-2.30.1/tls/tests $ ./tls
/tls/connection/basic: OK
/tls/connection/verified: OK
/tls/connection/client-auth: OK
/tls/connection/client-auth-rehandshake: OK
/tls/connection/no-database: OK
/tls/connection/socket-client: OK
/tls/connection/socket-client-failed: OK
/tls/backend/default-database-is-singleton: OK
/tls/certificate/create-destroy-pem: OK
/tls/certificate/create-destroy-der: OK
/tls/certificate/create-with-issuer: OK
/tls/certificate/verify-good: OK
/tls/certificate/verify-bad-identity: OK
/tls/certificate/verify-bad-ca: OK
/tls/certificate/verify-bad-before: OK
/tls/certificate/verify-bad-expired: OK
/tls/certificate/verify-bad-combo: OK
/tls/database/verify-good: OK
/tls/database/verify-bad-identity: OK
/tls/database/verify-bad-ca: OK
/tls/database/verify-bad-before: OK
/tls/database/verify-bad-expired: OK
/tls/database/verify-bad-combo: OK
/tls/file-database/test-handle: OK
/tls/file-database/test-handle-invalid: OK
Comment 5 Pacho Ramos gentoo-dev 2011-10-21 23:38:16 UTC
In that case, please report your test failures when manually compiling to upstream -> bugzilla.gnome.org

Hopefully, they will help us to know where is the problem

Thanks
Comment 6 Xake 2011-10-30 22:50:46 UTC
After some digging on my own machine it appears as if this is a problem with gnutls.

For testing I upgraded to gnutls-2.12.12, and all of a sudden I could not reproduce the testfailure.
I downgraded to 2.10.5 and the testfailure was back.
The thing is: also the testsuite for gnutls-2.10 started failing for me in the same fashion while downgrading/after downgrading, something I cannot remember it ever doing before.
So why gnutls have started to fail on my system, I am not so sure about. Maybe a dependency that has been bumped and older version of gnutls is unstable with?

However, as you can see, the problem is not with glib-networking (and g-n-2.31 also needs >=gnutls-2.11).
Comment 7 Pacho Ramos gentoo-dev 2013-04-23 19:09:15 UTC
They are now skipped and upstream fixed the problem for 2.38