Created attachment 328472 [details] build log n22_uml /var/log/portage # emerge --info libgcrypt Portage 2.1.11.31 (default/linux/x86/10.0, gcc-4.7.2, glibc-2.16.0, 3.7.0-rc4 i686) ================================================================= System Settings ================================================================= System uname: Linux-3.7.0-rc4-i686-UML-with-gentoo-2.2 Timestamp of tree: Mon, 05 Nov 2012 18:15:01 +0000 ld GNU ld (GNU Binutils) 2.23 app-shells/bash: 4.2_p39 dev-lang/python: 2.7.3-r2, 3.2.3-r1 dev-util/cmake: 2.8.9-r1 dev-util/pkgconfig: 0.27.1 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.11.3 sys-apps/sandbox: 2.6 sys-devel/autoconf: 2.69 sys-devel/automake: 1.12.4 sys-devel/binutils: 2.23 sys-devel/gcc: 4.7.2 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.6 (virtual/os-headers) sys-libs/glibc: 2.16.0 Repositories: gentoo toralf ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=native -pipe" 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/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -march=native -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--autounmask=n --keep-going=y --nospinner --tree --deep --quiet-build" FCFLAGS="-O2 -march=i686 -pipe" FEATURES="assume-digests binpkg-logs compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="-O2 -march=i686 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en en_GB" MAKEOPTS="-j5" 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="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl apache2 berkdb bzip2 cli cracklib crypt cups cxx dri fam fastbuild gdbm gmp gpm iconv ipv6 logrotate mmx modules mudflap mysql mysqli ncurses nls nptl openmp pam pcre pppd readline session sse sse2 sse3 ssl ssse3 tcpd threads unicode userlocales webmail x86 xml 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="access actions alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi compat 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 socache_shmcb speling status unique_id unixd 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" 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_GB" PHP_TARGETS="php5-4" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="intel" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON ================================================================= Package Settings ================================================================= dev-libs/libgcrypt-1.5.0-r3 was built with the following: USE="test -static-libs"
Your build log looks corrupt, could you try attaching it again?
Created attachment 328474 [details] build log tfoerste@n22 /mnt/ramdisk $ md5sum /tmp/dev-libs\:libgcrypt-1.5.0-r3\:20121105-192033.log.gz 5e0072dadfc96998c461fbe69e703daf /tmp/dev-libs:libgcrypt-1.5.0-r3:20121105-192033.log.gz
Created attachment 328476 [details] build log Confirmed, attaching attachment 328474 [details] in text/plain to keep it easy. wget https://bugs.gentoo.org/attachment.cgi?id=328474 mv attachment.cgi\?id\=328474 test.log.gz md5sum test.log.gz # 5e0072dadfc96998c461fbe69e703daf zcat test.log.gz
I tested this on both amd64 and x86 and can't seem to replicate it. I'm at a bit of a loss.
FWIW I found this in my syslog : 2012-11-05T20:22:54.753+01:00 n22 kernel: traps: basic[30830] general protection ip:b76af60a sp:bfa12084 error:0 in libgcrypt.so.11.7.0[b7685000+82000] 2012-11-05T20:24:07.343+01:00 n22 kernel: traps: aeswrap[31005] general protection ip:b769660a sp:bfa6b2a4 error:0 in libgcrypt.so.11.7.0[b766c000+82000] 2012-11-05T20:24:41.996+01:00 n22 kernel: traps: benchmark[31106] general protection ip:b767d60a sp:bf9a79d4 error:0 in libgcrypt.so.11.7.0[b7653000+82000]
Hhm, an strace ./aeswrap gives : ... mmap2(NULL, 1739548, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb74a6000 mprotect(0xb7648000, 4096, PROT_NONE) = 0 mmap2(0xb7649000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a2) = 0xb7649000 mmap2(0xb764c000, 11036, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb764c000 close(3) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb74a5000 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb74a4000 set_thread_area({entry_number:-1 -> 6, base_addr:0xb74a46c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 mprotect(0xb7649000, 8192, PROT_READ) = 0 mprotect(0xb7652000, 4096, PROT_READ) = 0 mprotect(0xb76de000, 4096, PROT_READ) = 0 mprotect(0x804a000, 4096, PROT_READ) = 0 mprotect(0xb7704000, 4096, PROT_READ) = 0 munmap(0xb7654000, 31995) = 0 brk(0) = 0x8ac7000 brk(0x8ae8000) = 0x8ae8000 access("/etc/gcrypt/fips_enabled", F_OK) = -1 ENOENT (No such file or directory) open("/proc/sys/crypto/fips_enabled", O_RDONLY) = -1 ENOENT (No such file or directory) --- SIGSEGV {si_signo=SIGSEGV, si_code=SI_KERNEL, si_addr=0} --- +++ killed by SIGSEGV (core dumped) +++ Segmentation fault
From upstream : >On Sat, 10 Nov 2012 10:43, toralf.foerster@gmx.de said: >> at an stable gentoo (with gcc-4.6.3 however) >In C99 mode - weel there is an incompatibility. Fix is in the repo. >> https://bugs.gentoo.org/show_bug.cgi?id=441918 >Please enter it into our tracker: bugs.gnupg.org. >Shalom-Salam, > Werner
https://bugs.gentoo.org/show_bug.cgi?id=442568#c6 contains the fix