Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 471100 - net-libs/gnutls-3.2.0 fails test pem-decoding
Summary: net-libs/gnutls-3.2.0 fails test pem-decoding
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-23 18:54 UTC by Myckel Habets
Modified: 2013-08-17 11:10 UTC (History)
1 user (show)

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


Attachments
Build log (gnutls_build.log,506.38 KB, text/plain)
2013-05-23 18:55 UTC, Myckel Habets
Details
test-suite.log (test-suite.log,424 bytes, text/plain)
2013-06-05 05:15 UTC, Myckel Habets
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Myckel Habets 2013-05-23 18:54:45 UTC
net-libs/gnutls-3.2.0 fails one test 'pem-decoding' during build when FEATURES="test".

Reproducible: Always

Steps to Reproduce:
1. Emerge net-libs/gnutls-3.2.0 with FEATURES="test"
Actual Results:  
Build fails due to failing test, see attached build.log.

Expected Results:  
Builds and runs tests without any problems.

emerge --info
Portage 2.1.12.1 (default/linux/x86/13.0, gcc-4.7.3, glibc-2.17, 3.7.10-gentoo-r1 i686)
=================================================================
System uname: Linux-3.7.10-gentoo-r1-i686-Intel-R-_Core-TM-_i3-2100_CPU_@_3.10GHz-with-gentoo-2.2
KiB Mem:     4024192 total,   1669340 free
KiB Swap:    1976500 total,   1976500 free
Timestamp of tree: Wed, 22 May 2013 18:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.4, 3.2.4
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.13.2
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -msse2 -pipe -fomit-frame-pointer"
CHOST="i686-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="-O2 -march=athlon-xp -msse2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="nl_NL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa berkdb bzip2 cli cracklib crypt cups cxx dri fortran gdbm gnutls gpm iconv ipv6 jpeg libkms minizip modules mp3 mudflap ncurses nptl openal openmp pam pcre png python readline session ssl tcpd unicode webkit x86 xa xml xvfb zlib" ABI_X86="32" 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="authn_core authz_core socache_shmcb unixd 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 sheets stage tables krita karbon braindump author" CAMERAS="ptp2" 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" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="radeon r600 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, USE_PYTHON
Comment 1 Myckel Habets 2013-05-23 18:55:14 UTC
Created attachment 349020 [details]
Build log
Comment 2 Tim Harder gentoo-dev 2013-05-30 20:23:09 UTC
This might have been an issue with parallel tests failing that I recently fixed by forcing tests to run serially.

Please test and reopen if necessary.
Comment 3 Myckel Habets 2013-06-01 19:57:39 UTC
Reopening, bug is still present. Even when running with -j1.
Comment 4 Alon Bar-Lev (RETIRED) gentoo-dev 2013-06-01 20:13:19 UTC
Please attach tests/cert-tests/test-suite.log if exists
Comment 5 Myckel Habets 2013-06-05 05:15:38 UTC
Created attachment 350160 [details]
test-suite.log

Here is the log file.
Comment 6 Alon Bar-Lev (RETIRED) gentoo-dev 2013-06-05 12:56:57 UTC
Indeed you have a bug...

Let's try openssl... open the gnutls sources and execute:

$ openssl x509 -in tests/cert-tests/complex-cert.pem -text | grep Not
            Not Before: Apr 27 19:04:49 2013 GMT
            Not After : Sep 11 19:04:49 2040 GMT

$ certtool --certificate-info --infile tests/cert-tests/complex-cert.pem | grep Not
                Not Before: Sat Apr 27 19:04:49 UTC 2013
                Not After: Tue Sep 11 19:04:49 UTC 2040

What is your /etc/localtime? Timezone?
Comment 7 Alon Bar-Lev (RETIRED) gentoo-dev 2013-07-27 21:37:35 UTC
Please reopen when you have requested information.
Comment 8 Myckel Habets 2013-08-01 06:11:26 UTC
Sorry for the delay. This is on 3.2.1-r1 now, problem still exists.

gnutls-3.2.1 # openssl x509 -in tests/cert-tests/complex-cert.pem -text | grep Not
            Not Before: Apr 27 19:04:49 2013 GMT
            Not After : Sep 11 19:04:49 2040 GMT
gnutls-3.2.1 # certtool --certificate-info --infile tests/cert-tests/complex-cert.pem | grep Not
		Not Before: Sat Apr 27 19:04:49 UTC 2013
		Not After: Thu Dec 31 23:23:23 UTC 2037

Timezone is Europe/Amsterdam
lrwxrwxrwx 1 root root    36 aug  1 07:58 localtime -> /usr/share/zoneinfo/Europe/Amsterdam
Comment 9 Alon Bar-Lev (RETIRED) gentoo-dev 2013-08-01 06:42:32 UTC
Hi,

I cannot reproduce it with your time zone, so something else is happening.

 Not After:     Sep 11 19:04:49 2040 GMT
 Not After: Thu Dec 31 23:23:23 UTC 2037

_gnutls_x509_get_time is returning 0x7fe7f2cb, it is not even some magic of failure.

Do you have this on any machine or specific one? anything that we can try and reduce the cause?
Comment 10 Myckel Habets 2013-08-08 20:48:17 UTC
(In reply to Alon Bar-Lev from comment #9)

> Do you have this on any machine or specific one? anything that we can try
> and reduce the cause?

I've tested this on 2 x86 systems (both stable x86 portage tree) and they also have the same test failing. I tested net-libs/gnutls-3.2.1-r1 in these cases.

This is the output I got:

PASS: template-test
7c7
< 		Not After: Tue Sep 11 19:04:49 UTC 2040
---
> 		Not After: Thu Dec 31 23:23:23 UTC 2037
Complex cert decoding failed 2
FAIL: pem-decoding
===================================
1 of 4 tests failed
Please report to bug-gnutls@gnu.org
===================================
Comment 11 Alon Bar-Lev (RETIRED) gentoo-dev 2013-08-08 20:57:14 UTC
I think best if you can communicate directly with upstream.

Found this[1]

[1] http://comments.gmane.org/gmane.network.gnutls.general/3136
Comment 12 Myckel Habets 2013-08-17 11:10:02 UTC
I was planning to look into this today, but it seems that it is fixed in version 3.2.3.