Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 910382 - dev-libs/xmlsec-1.3.1: fails tests
Summary: dev-libs/xmlsec-1.3.1: fails tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on: 940056
Blocks: 920951 922143 923120
  Show dependency tree
 
Reported: 2023-07-15 06:26 UTC by Joonas Niilola
Modified: 2024-10-05 07:03 UTC (History)
2 users (show)

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


Attachments
xmlsec-1.3.1:20230715-062538.log (xmlsec-1.3.1:20230715-062538.log,378.29 KB, text/plain)
2023-07-15 06:27 UTC, Joonas Niilola
Details
build.log (ppc, 1.3.1) (xmlsec-1.3.1:20230804-102521.log,483.39 KB, text/plain)
2023-08-04 10:28 UTC, ernsteiswuerfel
Details
lzip tarball: one test failed for 1.3.4 : amd64 gcc+lto+O3+graphite (dev-libs_xmlsec-1.3.4_one_test_fails.tar.lz,226.55 KB, application/x-lzip)
2024-09-25 21:34 UTC, Arniiiii
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joonas Niilola gentoo-dev 2023-07-15 06:26:55 UTC
Portage 3.0.49 (python 3.11.4-final-0, default/linux/x86/17.0, gcc-12, glibc-2.37-r3, 6.1.38-gentoo i686)
=================================================================
System uname: Linux-6.1.38-gentoo-i686-AMD_Ryzen_9_5950X_16-Core_Processor-with-glibc2.37
KiB Mem:   131792488 total, 131693300 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sat, 15 Jul 2023 05:31:52 +0000
Head commit of repository gentoo: 7748b5a6f267ea20a48bb7ecb25057227a2899ad

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.39 p6) 2.39.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-lang/perl:             5.36.1-r2::gentoo
dev-lang/python:           3.11.4::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/openrc:           0.47.1::gentoo
sys-apps/sandbox:          2.32::gentoo
sys-devel/autoconf:        2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.39-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             12.3.1_p20230526::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r3::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000
    volatile: False

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=i686 -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=y --autounmask-continue --autounmask-use=y --autounmask-write --binpkg-changed-deps=y --buildpkg-exclude virtual/* --buildpkg-exclude acct-* --buildpkg-exclude sys-kernel/* --complete-graph --nospinner --jobs=12 --usepkg"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=i686 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=i686 -O2 -pipe"
GENTOO_MIRRORS="https://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS=" en en_US en-US fi sv "
MAKEOPTS="-j32"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl bzip2 cli crypt dbus dri elogind fortran gdbm iconv ipv6 libtirpc ncurses nptl openmp openrc pam pcre readline seccomp split-usr ssl test-rust udev unicode x86 xattr zlib" ABI_X86="32" ADA_TARGET="gnat_2021" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en en_US en-US fi sv" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU BPF" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SHELL, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Joonas Niilola gentoo-dev 2023-07-15 06:27:09 UTC
Created attachment 865513 [details]
xmlsec-1.3.1:20230715-062538.log
Comment 2 ernsteiswuerfel archtester 2023-08-04 10:28:29 UTC
Created attachment 867012 [details]
build.log (ppc, 1.3.1)

Same on ppc.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-09 23:35:23 UTC
Could you report it upstream please?
Comment 4 matoro archtester 2024-05-09 23:52:28 UTC
I just tested the 1.3.4 you pushed up and it's fine, 1.3.3-r1 fails.  Did you add skips or was it actually fixed upstream?
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-10 00:00:31 UTC
(In reply to matoro from comment #4)
> I just tested the 1.3.4 you pushed up and it's fine, 1.3.3-r1 fails.  Did
> you add skips or was it actually fixed upstream?

I didn't touch the testsuite, so it must be fixed, even though I didn't see any changes which made me think it would be...
Comment 7 Arniiiii 2024-09-25 21:34:11 UTC
Created attachment 903807 [details]
lzip tarball: one test failed for 1.3.4 : amd64 gcc+lto+O3+graphite

inside of the attached lzip tarball:
how_it_was_called.txt emerge_--info.txt /var/tmp/portage/dev-libs/xmlsec-1.3.4/{build-info/,files/,temp/,work/**{.log}} /var/lib/portage/ /etc/portage/ /var/log/portage/elog/dev-libs/xmlsec-1.3.4:20240925-200637.log


It seems to be reproducible with dev-libs/xmlsec-1.3.4 .

from build.log:
```
--- TOTAL OK: 344; OK (percent): 93; TOTAL FAILED: 1; TOTAL SKIPPED: 24
Test: aleksey-xmldsig-01/enveloping-sha256-rsa-sha256-verify in folder  /var/tmp/portage/dev-libs/xmlsec-1.3.4/work/xmlsec1-1.3.4/tests/aleksey-xmldsig-01  Negative test: missing trusted cert -- expected success
 /var/tmp/portage/dev-libs/xmlsec-1.3.4/work/xmlsec1-1.3.4/apps/xmlsec1 check-transforms --verbose --crypto nss --crypto-config /var/tmp/portage/dev-libs/xmlsec-1.3.4/temp/xmlsec-crypto-config sha256 rsa-sha256
Transforms "sha256" found
Transforms "rsa-sha256" found
 /var/tmp/portage/dev-libs/xmlsec-1.3.4/work/xmlsec1-1.3.4/apps/xmlsec1 check-key-data --verbose --crypto nss --crypto-config /var/tmp/portage/dev-libs/xmlsec-1.3.4/temp/xmlsec-crypto-config rsa x509
Key data "rsa" found
Key data "x509" found
  /var/tmp/portage/dev-libs/xmlsec-1.3.4/work/xmlsec1-1.3.4/apps/xmlsec1 verify --X509-skip-strict-checks --verbose --crypto nss --crypto-config /var/tmp/portage/dev-libs/xmlsec-1.3.4/temp/xmlsec-crypto-config --enabled-key-data x509 --insecure enveloping-sha256-rsa-sha256-verify.xml
func=xmlSecNssSignatureSetKey:file=signatures.c:line=599:obj=rsa-sha256:subj=VFY_CreateContext:error=4:crypto library function failed:NSS error: -8011
func=xmlSecDSigCtxProcessKeyInfoNode:file=xmldsig.c:line=830:obj=rsa-sha256:subj=xmlSecTransformSetKey:error=1:xmlsec library function failed:
func=xmlSecDSigCtxProcessSignatureNode:file=xmldsig.c:line=537:obj=unknown:subj=xmlSecDSigCtxProcessKeyInfoNode:error=1:xmlsec library function failed:
func=xmlSecDSigCtxVerify:file=xmldsig.c:line=357:obj=unknown:subj=xmlSecDSigCtxProcessSignatureNode:error=1:xmlsec library function failed:
Verification status: ERROR
SignedInfo References (ok/all): 0/0
Manifests References (ok/all): 0/0
Error: failed to verify file "enveloping-sha256-rsa-sha256-verify.xml"
make[1]: *** [Makefile:1213: check-crypto-nss] Error 1
```
Comment 8 Arniiiii 2024-09-25 21:37:00 UTC
(In reply to Arniii from comment #7)

>>> $ equery l nss
>>>  * Searching for nss ...
>>> [I--] [??] dev-libs/nss-3.102:0
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-05 07:02:45 UTC
(In reply to Arniii from comment #7)

This bug is for 32-bit systems and there were loads of failures, not just one on 64-bit. Your issue is different, I think.