Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 518840 - =dev-libs/boost-1.52.0-r7 - parallel make fails : b2: buffer overflow attack in function <unknown> - terminated
Summary: =dev-libs/boost-1.52.0-r7 - parallel make fails : b2: buffer overflow attack ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: C++ Team [disbanded]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: fortify-source
  Show dependency tree
 
Reported: 2014-08-02 17:05 UTC by Michael Jones
Modified: 2014-08-07 06:17 UTC (History)
1 user (show)

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


Attachments
parallel-build.log.gz (build.log.gz,2.24 KB, application/gzip)
2014-08-02 17:05 UTC, Michael Jones
Details
MAKEOPTS="-j1" emerge -1 --ignore-default-opts boost (build-python3_3.log,178.40 KB, text/plain)
2014-08-02 17:11 UTC, Michael Jones
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Jones 2014-08-02 17:05:06 UTC
Created attachment 382092 [details]
parallel-build.log.gz

This is not this bug: https://bugs.gentoo.org/show_bug.cgi?id=241684

>>> Emerging (1 of 1) dev-libs/boost-1.52.0-r7
 * boost_1_52_0.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                                                          [ ok ]
>>> Unpacking source...
>>> Unpacking boost_1_52_0.tar.bz2 to /var/tmp/portage/dev-libs/boost-1.52.0-r7/work
>>> Source unpacked in /var/tmp/portage/dev-libs/boost-1.52.0-r7/work
>>> Preparing source in /var/tmp/portage/dev-libs/boost-1.52.0-r7/work/boost_1_52_0 ...
 * Applying boost-1.48.0-mpi_python3.patch ...                                                                                                                                                                                        [ ok ]
 * Applying boost-1.51.0-respect_python-buildid.patch ...                                                                                                                                                                             [ ok ]
 * Applying boost-1.51.0-support_dots_in_python-buildid.patch ...                                                                                                                                                                     [ ok ]
 * Applying boost-1.48.0-no_strict_aliasing_python2.patch ...                                                                                                                                                                         [ ok ]
 * Applying boost-1.48.0-disable_libboost_python3.patch ...                                                                                                                                                                           [ ok ] 
 * Applying boost-1.48.0-python_linking.patch ...                                                                                                                                                                                     [ ok ] 
 * Applying boost-1.48.0-disable_icu_rpath.patch ...                                                                                                                                                                                  [ ok ] 
 * Applying remove-toolset-1.48.0.patch ...                                                                                                                                                                                           [ ok ] 
 * Applying boost-1.52.0-tuple.patch ...                                                                                                                                                                                              [ ok ] 
 * Applying boost-1.52.0-locale-utf.patch ...                                                                                                                                                                                         [ ok ] 
 * Applying boost-1.52.0-threads.patch ...                                                                                                                                                                                            [ ok ] 
 * Applying boost-1.53.0-glibc-2.18-compat.patch ...                                                                                                                                                                                  [ ok ] 
>>> Source prepared.                                                                                                                                                                                                                         
>>> Configuring source in /var/tmp/portage/dev-libs/boost-1.52.0-r7/work/boost_1_52_0 ...                                                                                                                                                    
>>> Source configured.                                                                                                                                                                                                                       
>>> Compiling source in /var/tmp/portage/dev-libs/boost-1.52.0-r7/work/boost_1_52_0 ...                                                                                                                                                      
 * python3_3: running building                                                                                                                                                                                                               
b2 gentoorelease -j999 -q -d+2 --user-config=/var/tmp/portage/dev-libs/boost-1.52.0-r7/work/boost_1_52_0/user-config.jam -sICU_PATH=/usr --without-mpi pch=off --boost-build=/usr/share/boost-build --prefix="/var/tmp/portage/dev-libs/boost-1.52.0-r7/image/usr" --layout=system threading=multi link=shared,static --without-context --python-buildid=3.3                                                                                                                              
*** buffer overflow detected ***: b2 - terminated                                                                                                                                                                                            
b2: buffer overflow attack in function <unknown> - terminated                                                                                                                                                                                
Report to http://bugs.gentoo.org/                                                                                                                                                                                                            
/var/tmp/portage/dev-libs/boost-1.52.0-r7/temp/environment: line 1027: 14741 Killed                  b2 "$@"                                                                                                                                 
 * ERROR: dev-libs/boost-1.52.0-r7::gentoo failed (compile phase):                                                                                                                                                                           
 *   Building of Boost libraries failed                                                                                                                                                                                                      
 *                                                                                                                                                                                                                                           
 * Call stack:                                                                                                                                                                                                                               
 *     ebuild.sh, line   93:  Called src_compile                                                                                                                                                                                             
 *   environment, line 3667:  Called python_foreach_impl 'building'                                                                                                                                                                          
 *   environment, line 3181:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'building'                                                                                                                                      
 *   environment, line 2313:  Called _multibuild_run '_python_multibuild_wrapper' 'building'                                                                                                                                                 
 *   environment, line 2311:  Called _python_multibuild_wrapper 'building'                                                                                                                                                                   
 *   environment, line  632:  Called building
 *   environment, line 3637:  Called die
 * The specific snippet of code:
 *           ejam ${OPTIONS} $(use python && echo --python-buildid=${EPYTHON#python}) || die "Building of Boost libraries failed";
 * 
 * If you need support, post the output of `emerge --info '=dev-libs/boost-1.52.0-r7::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/boost-1.52.0-r7::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/boost-1.52.0-r7/temp/build.log.gz'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/boost-1.52.0-r7/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/boost-1.52.0-r7/work/boost_1_52_0'
 * S: '/var/tmp/portage/dev-libs/boost-1.52.0-r7/work/boost_1_52_0'

>>> Failed to emerge dev-libs/boost-1.52.0-r7, Log file:

>>>  '/var/tmp/portage/dev-libs/boost-1.52.0-r7/temp/build.log.gz'

 * Messages for package dev-libs/boost-1.52.0-r7:

 * ERROR: dev-libs/boost-1.52.0-r7::gentoo failed (compile phase):
 *   Building of Boost libraries failed
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 3667:  Called python_foreach_impl 'building'
 *   environment, line 3181:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'building'
 *   environment, line 2313:  Called _multibuild_run '_python_multibuild_wrapper' 'building'
 *   environment, line 2311:  Called _python_multibuild_wrapper 'building'
 *   environment, line  632:  Called building
 *   environment, line 3637:  Called die
 * The specific snippet of code:
 *           ejam ${OPTIONS} $(use python && echo --python-buildid=${EPYTHON#python}) || die "Building of Boost libraries failed";
 * 
 * If you need support, post the output of `emerge --info '=dev-libs/boost-1.52.0-r7::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/boost-1.52.0-r7::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/boost-1.52.0-r7/temp/build.log.gz'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/boost-1.52.0-r7/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/boost-1.52.0-r7/work/boost_1_52_0'
 * S: '/var/tmp/portage/dev-libs/boost-1.52.0-r7/work/boost_1_52_0'


Full build log attached.


emerge info

jellyfish melissa # emerge --info
Portage 2.2.8-r1 (hardened/linux/amd64/no-multilib, gcc-4.7.3, glibc-2.19-r1, 3.13.10-hardened x86_64)
=================================================================
System uname: Linux-3.13.10-hardened-x86_64-Intel-R-_Core-TM-_i7-4771_CPU_@_3.50GHz-with-gentoo-2.2
KiB Mem:     3713556 total,   1023300 free
KiB Swap:   10485756 total,  10428352 free
Timestamp of tree: Sat, 02 Aug 2014 01:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
distcc 3.1 x86_64-pc-linux-gnu [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.3.3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo qt
Installed sets: @archive, @base-system, @creative, @desktop-applications, @development-cli, @development-gui, @java, @multimedia, @portage, @vcs, @virt-client
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
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/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=" --jobs --keep-going --newuse --deep --backtrack=3000 --complete-graph --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg clean-logs compress-build-logs compressdebug config-protect-if-modified distcc distlocks ebuild-locks fixlafiles installsources merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms split-elog split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.rit.edu/gentoo/ http://mirror.datapipe.net/gentoo http://mirror.usu.edu/mirrors/gentoo/ http://gentoo.mirrors.hoobly.com/ http://gentoo.netnitco.net"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="xz"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/qt"
USE="X a52 aac acl acpi alsa amd64 apng autoipd avahi berkdb branding bzip2 cairo cdda cdr clang cli cracklib crypt cxx dbus dconf dri dts dvd dvdr emboss encode exif fallback fam ffmpeg firefox flac gd gdbm gif gnome gnome-keyring gpm gstreamer gtk gudev hardened iconv icu introspection jpeg justify kerberos lcms ldap libnotify libsecret lm_sensors mad mdnsresponder-compat minizip mmx mng modules mp3 mp4 mpeg nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pax_kernel pcre pdf png policykit postgres ppds pulseaudio python qt3support qt4 readline samba sdl session spell sqlite sse sse2 ssl startup-notification static-libs svg systemd tcpd theora threads tiff truetype udev udisks unicode upower urandom usb vala vorbis wxwidgets x264 xattr xcb xinerama xml xtpax xv xvid zeroconf zlib" ABI_X86="64" 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" 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 ublox ubx" INPUT_DEVICES="evdev synaptics mouse keyboard wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel nouveau vesa modesetting fbdev qxl radeon r600 radeonsi" 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_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Michael Jones 2014-08-02 17:11:22 UTC
Created attachment 382094 [details]
MAKEOPTS="-j1" emerge -1 --ignore-default-opts boost

Didn't wait for it to finish because it clearly succeeds after the first few seconds.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-08-05 09:00:53 UTC
The actual problem is likely in dev-util/boost-build. Which version do you have?
Comment 3 Michael Jones 2014-08-05 14:45:29 UTC
[I] dev-util/boost-build
     Available versions:  1.52.0-r1 ~1.53.0 ~1.54.0 ~1.55.0 {examples python test}
     Installed versions:  1.52.0-r1(01:12:38 PM 02/07/2014)(python -examples -test)
     Homepage:            http://www.boost.org/doc/tools/build/index.html
     Description:         A system for large project software construction, which is simple to use and powerful.
Comment 4 Sergey Popov gentoo-dev 2014-08-07 06:11:04 UTC
Definitely duplicate of bug #498134, strange - i forgot to backport that fix into stable, will do it
Comment 5 Sergey Popov gentoo-dev 2014-08-07 06:17:24 UTC
+  07 Aug 2014; Sergey Popov <pinkbyte@gentoo.org> boost-1.52.0-r7.ebuild:
+  Backport fix for bug #498134, wrt bug #518840. Thanks to Michael Jones
+  <gentoo AT jonesmz.com> for discovering this issue

Build-time only issue - no revbump