Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 461960 - dev-libs/beecrypt-4.2.1-r1 ABI=x32 - lt-testhmacsha1 segmentation fault in __memcpy_ssse3 () at ../sysdeps/x86_64/multiarch/memcpy-ssse3.S:2803
Summary: dev-libs/beecrypt-4.2.1-r1 ABI=x32 - lt-testhmacsha1 segmentation fault in _...
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: NeedPatch, TESTFAILURE
Depends on:
Blocks: x32
  Show dependency tree
 
Reported: 2013-03-16 23:00 UTC by iGentoo
Modified: 2018-10-28 18:05 UTC (History)
2 users (show)

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


Attachments
beecrypt-4.2.1-r1-build.log (beecrypt-4.2.1-r1-build.log.tar.xz,38.02 KB, application/x-xz-compressed-tar)
2013-03-16 23:00 UTC, iGentoo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description iGentoo 2013-03-16 23:00:19 UTC
Created attachment 342314 [details]
beecrypt-4.2.1-r1-build.log

make[2]: Leaving directory `/var/tmp/portage/dev-libs/beecrypt-4.2.1-r1/work/beecrypt-4.2.1/tests'
make  check-TESTS
make[2]: Entering directory `/var/tmp/portage/dev-libs/beecrypt-4.2.1-r1/work/beecrypt-4.2.1/tests'
make[3]: Entering directory `/var/tmp/portage/dev-libs/beecrypt-4.2.1-r1/work/beecrypt-4.2.1/tests'
PASS: testripemd128
PASS: testripemd256
PASS: testsha384
FAIL: testripemd160
PASS: testsha224
PASS: testsha256
PASS: testsha512
PASS: testripemd320
../test-driver: line 95: 31192 Segmentation fault      (core dumped) "$@" > $log_file 2>&1
FAIL: testmd5
../test-driver: line 95: 31225 Segmentation fault      (core dumped) "$@" > $log_file 2>&1
FAIL: testsha1
PASS: testblowfish
FAIL: testmp
PASS: testaes
../test-driver: line 95: 31438 Segmentation fault      (core dumped) "$@" > $log_file 2>&1
FAIL: testhmacmd5
../test-driver: line 95: 31469 Segmentation fault      (core dumped) "$@" > $log_file 2>&1
FAIL: testhmacsha1
../test-driver: line 95: 31660 Killed                  "$@" > $log_file 2>&1
FAIL: testdldp
../test-driver: line 95: 31696 Killed                  "$@" > $log_file 2>&1
FAIL: testelgamal
../test-driver: line 95: 31540 Aborted                 (core dumped) "$@" > $log_file 2>&1
FAIL: testmpinv
../test-driver: line 95: 31524 Aborted                 (core dumped) "$@" > $log_file 2>&1
FAIL: testdsa




Portage 2.2.0_alpha166 (hardened/linux/13.0/amd64/selinux, gcc-4.7.2, glibc-2.17, 3.8.3-pax.x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.8.3-pax.x86_64-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9300_@_2.50GHz-with-gentoo-2.2
KiB Mem:     6114284 total,   1035684 free
KiB Swap:   10484724 total,  10383044 free
Timestamp of tree: Sat, 16 Mar 2013 22:15:01 +0000
ld GNU gold (GNU Binutils 2.23.1) 1.11
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.5.4-r5, 2.6.8-r1, 2.7.3-r3, 3.1.5-r1, 3.2.3-r2, 3.3.0-r1
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.12.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3, 4.7.2-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.8 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo systemd hardened-dev gnome custom
Installed sets: @local
ACCEPT_KEYWORDS="amd64 x86 ~amd64 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnux32"
CFLAGS="-Wall -Wextra -gdwarf-4 -ggdb -march=native -pipe -O3 -fno-tree-vectorize -frecord-gcc-switches"
CHOST="x86_64-pc-linux-gnux32"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-Wall -Wextra -gdwarf-4 -ggdb -march=native -pipe -O3 -fno-tree-vectorize -frecord-gcc-switches"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --buildpkgonly"
FCFLAGS="-Wall -Wextra -gdwarf-4 -ggdb -march=native -pipe -O3 -fno-tree-vectorize -frecord-gcc-switches"
FEATURES="assume-digests binpkg-logs buildpkg collision-protect compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox selinux sesandbox sfperms split-elog split-log splitdebug strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-Wall -Wextra -gdwarf-4 -ggdb -march=native -pipe -O3 -fno-tree-vectorize -frecord-gcc-switches"
GENTOO_MIRRORS="http://mirrors.163.com/gentoo http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--build-id -Wl,--hash-style=gnu -Wl,--icf=safe"
MAKEOPTS="V=1 -j10"
PKGDIR="/var/portage/packages-x32"
PORTAGE_BZIP2_COMMAND="lbzip2"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9ef"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--ipv4"
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="/var/lib/layman/systemd /var/lib/layman/hardened-development /var/lib/layman/gnome /usr/local/portage"
SYNC="rsync://mirrors.ustc.edu.cn/gentoo-portage"
USE="X acl alsa amd64 audit bash-completion berkdb bzip2 c++0x cairo caps cli cracklib crypt custom-cflags cxx dbus dri ffmpeg gdbm gmp gnome gpm gtk gtk3 hardened iconv icu ipv6 jit jpeg jpeg2k justify lzma mmx modules mudflap multilib ncurses nls nptl open_perms opengl openmp orc pam pax_kernel pcre png pulseaudio qt4 readline selinux session sse sse2 ssl svg systemd tcpd threads tiff udev unicode urandom vim-syntax xattr xinetd zlib" ABI_X86="x32 32 64" 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="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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="bootchart btrfs caps dmsquash-live gensplash livenet lvm nfs ssh-client syslog systemd" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US zh zh_CN" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="pypy1_9 pypy2_0 python3_1 python3_2 python3_3 python2_5 python2_6 python2_7" QEMU_SOFTMMU_TARGETS="x86_64 arm mips64el ppc64" RUBY_TARGETS="ruby18 ruby19" 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"
USE_PYTHON="2.7-pypy-1.9 2.7-pypy-2.0 3.1 3.2 3.3 2.5 2.6 2.7"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND

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

sys-libs/glibc-2.17 was built with the following:
USE="hardened (multilib) (selinux) -debug -gd -nscd -profile -systemtap -vanilla" ABI_X86="64"
CFLAGS="-Wall -Wextra -gdwarf-4 -ggdb -march=native -pipe -O2 -fno-strict-aliasing -fno-stack-protector"
CXXFLAGS="-Wall -Wextra -gdwarf-4 -ggdb -march=native -pipe -O2 -fno-strict-aliasing"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--build-id -Wl,--hash-style=gnu"


dev-libs/beecrypt-4.2.1-r1 was built with the following:
USE="cxx threads -doc -java -python -static-libs"
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2018-09-23 13:06:11 UTC
Does this still happen? There were a few bug fixes in glibc land as well.
Comment 2 Larry the Git Cow gentoo-dev 2018-10-28 18:05:25 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d25fb606f1cf674648e79da2ce71fe7da439508

commit 6d25fb606f1cf674648e79da2ce71fe7da439508
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2018-10-28 18:04:51 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2018-10-28 18:05:16 +0000

    dev-libs/beecrypt: disable assembly for x32, bug #461960
    
    beecrypt has target-specifix assembly code for arithmetics
    in gas/mpopt.x86_64.m4. That assumes that x86_64 has 64-bit
    items to represent bignums.
    
    Unfortunately that is not true for x32 ABI as detection is
    based on size of 'unsigned long':
    
    ```
      AC_DEFUN([BEE_CPU_BITS],[
        AC_CHECK_SIZEOF([unsigned long])
        if test $ac_cv_sizeof_unsigned_long -eq 8; then
          AC_SUBST(MP_WBITS,64U)
    ```
    
    To workaround this deficiency disable assembly code completely:
    pass --enable-debug.
    
    Closes: https://bugs.gentoo.org/461960
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
    Package-Manager: Portage-2.3.51, Repoman-2.3.11

 dev-libs/beecrypt/beecrypt-4.2.1-r6.ebuild | 104 +++++++++++++++++++++++++++++
 1 file changed, 104 insertions(+)