Emerging net-libs/courier-authlib-0.62.2 fails with FEATURES="test" on hardened amd64. Reproducible: Always Steps to Reproduce: 1. FEATURES="test" emerge -avu courier-authlib Actual Results: >>> Test phase [check]: net-libs/courier-authlib-0.62.2 make -j2 -j1 check make check-recursive make[1]: Entering directory `/var/tmp/portage/net-libs/courier-authlib-0.62.2/work/courier-authlib-0.62.2' Making check in libltdl make[2]: Entering directory `/var/tmp/portage/net-libs/courier-authlib-0.62.2/work/courier-authlib-0.62.2/libltdl' make[2]: Nothing to be done for `check'. make[2]: Leaving directory `/var/tmp/portage/net-libs/courier-authlib-0.62.2/work/courier-authlib-0.62.2/libltdl' Making check in gdbmobj make[2]: Entering directory `/var/tmp/portage/net-libs/courier-authlib-0.62.2/work/courier-authlib-0.62.2/gdbmobj' ./testsuite | cmp -s - ./testsuite.txt make[2]: Leaving directory `/var/tmp/portage/net-libs/courier-authlib-0.62.2/work/courier-authlib-0.62.2/gdbmobj' Making check in bdbobj make[2]: Entering directory `/var/tmp/portage/net-libs/courier-authlib-0.62.2/work/courier-authlib-0.62.2/bdbobj' ./testsuite | cmp -s - ./testsuite.txt ./testsuite: line 6: 4883 Illegal instruction ./testbdb testbdb.dat foo bar Unknown error 1531608729 ./testsuite: line 7: 4884 Segmentation fault ./testbdb testbdb.dat foo baz ./testsuite: line 8: 4885 Illegal instruction ./testbdb testbdb.dat bar foo ./testsuite: line 9: 4886 Segmentation fault ./testbdb testbdb.dat foo ./testsuite: line 10: 4887 Segmentation fault ./testbdb testbdb.dat bar ./testsuite: line 11: 4888 Killed ./testbdb testbdb.dat Not found. Successful return: 0 *** stack smashing detected ***: testbdb - terminated testbdb: stack smashing attack in function bdbobj_close - terminated Report to http://bugs.gentoo.org/ ./testsuite: line 12: 4889 Killed ./testbdb testbdb.dat -foo make[2]: *** [check-am] Error 1 make[2]: Leaving directory `/var/tmp/portage/net-libs/courier-authlib-0.62.2/work/courier-authlib-0.62.2/bdbobj' make[1]: *** [check-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/net-libs/courier-authlib-0.62.2/work/courier-authlib-0.62.2' make: *** [check] Error 2 * * ERROR: net-libs/courier-authlib-0.62.2 failed. * Call stack: * ebuild.sh, line 49: Called src_test * environment, line 3004: Called _eapi0_src_test * ebuild.sh, line 616: Called die * The specific snippet of code: * hasq test $FEATURES && die "Make check failed. See above for details." * The die message: * Make check failed. See above for details. * I see this in /var/log/pax.log: Feb 26 09:12:18 io PAX: From <removed IP>: execution attempt in: <NULL>, 00000000-00000000 00000000 Feb 26 09:12:18 io PAX: terminating task: /var/tmp/portage/net-libs/courier-authlib-0.62.2/work/courier-authlib-0.62.2/bdbobj/testbdb(testbdb):4888, uid/euid: 0/0, PC: ffffc15fe2ff0283, SP: 0000742a38008d90 Feb 26 09:12:18 io PAX: bytes at PC: ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? Feb 26 09:12:18 io PAX: bytes at SP-8: and this in the MySQL log files: Feb 26 09:12:18 io testbdb: stack smashing attack in function bdbobj_close - terminated Feb 26 09:12:18 io testbdb: stack smashing attack in function bdbobj_close - terminated emerge --info: Portage 2.1.6.7 (hardened/amd64, gcc-3.4.6, glibc-2.6.1-r0, 2.6.28-hardened x86_64) ================================================================= System uname: Linux-2.6.28-hardened-x86_64-AMD_Athlon-tm-_64_Processor_3700+-with-glibc2.3.2 Timestamp of tree: Thu, 26 Feb 2009 02:15:02 +0000 app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7-r1, 2.1.6-r1 dev-lang/python: 2.5.2-r7 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=k8 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=k8 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict test unmerge-orphans userfetch" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo" LANG="de_DE@euro.UTF-8" LDFLAGS="" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" 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.de.gentoo.org/gentoo-portage" USE="amd64 apache2 berkdb cracklib crypt fam hardened ipv6 justify logrotate maildir midi nls nptl nptlonly offensive pam pic readline ssl tcpd urandom vhosts xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 intel mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS build.log attached
Created attachment 183238 [details] build log
net-libs/courier-authlib-0.63.0 USE="berkdb crypt gdbm pam -debug -ldap -mysql -postgres -vpopmail" no errors or stack smashing detected in the test. So it looks like it is fixed in 0.63.0. make[2]: Leaving directory `/var/tmp/portage/net-libs/courier-authlib-0.63.0/work/courier-authlib-0.63.0/gdbmobj' Making check in bdbobj make[2]: Entering directory `/var/tmp/portage/net-libs/courier-authlib-0.63.0/work/courier-authlib-0.63.0/bdbobj' ./testsuite | cmp -s - ./testsuite.txt make[2]: Leaving directory `/var/tmp/portage/net-libs/courier-authlib-0.63.0/work/courier-authlib-0.63.0/bdbobj' -------------- Portage 2.2_rc67 (hardened/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r0, 2.6.34-hardened-r1 x86_64) ================================================================= System uname: Linux-2.6.34-hardened-r1-x86_64-Intel-R-_Xeon-R-_CPU_E5420_@_2.50GHz-with-gentoo-2.0.1 Timestamp of tree: Sun, 25 Jul 2010 21:45:01 +0000 app-shells/bash: 4.1_p7 dev-lang/python: 2.6.5-r2 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.1-r1 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.65-r1 sys-devel/automake: 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.4-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 virtual/os-headers: 2.6.34 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=core2" CHOST="x86_64-pc-linux-gnu"
Reopen if net-libs/courier-authlib-0.63.0 still fails the test with gcc-4.4.4-r2.