Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 262289 - sys-devel/dev86-0.16.17-r5 compilation causes a buffer overflow
Summary: sys-devel/dev86-0.16.17-r5 compilation causes a buffer overflow
Status: RESOLVED DUPLICATE of bug 256782
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-12 17:48 UTC by Randall Wald
Modified: 2009-03-12 18:53 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Randall Wald 2009-03-12 17:48:40 UTC
On my system, compiling sys-devel/dev86-0.16.17-r5 fails due to a buffer overflow. The unstable version, sys-devel/dev86-0.16.17-r6, compiles without incident. Below are the error messages from my compilation, followed by my emerge --info

...
warn_unused_result
make[3]: Leaving directory `/var/tmp/portage/sys-devel/dev86-0.16.17-r5/work/dev86-0.16.17/ld'
cp -p ld/objdump86 bin/objdump86
test -f bin/ncc
make -C libc CC=ncc "CCFLAGS=-O" AR=ar86 ARFLAGS=r PLATFORM=i86-ELKS
make[3]: Entering directory `/var/tmp/portage/sys-devel/dev86-0.16.17-r5/work/dev86-0.16.17/libc'
ncc -c -Mn -O -D__LIBC__ -D__LIBC_VER__='"0.16.17"' -o crt0.o crt0.c
*** buffer overflow detected ***: ncc terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x37)[0x2ae67deecd97]
/lib/libc.so.6[0x2ae67deeab70]
/lib/libc.so.6[0x2ae67deeb25b]
ncc[0x401548]
ncc[0x403347]
/lib/libc.so.6(__libc_start_main+0xe6)[0x2ae67de265c6]
ncc[0x400db9]
======= Memory map: ========
00400000-00405000 r-xp 00000000 00:12 536270                             /var/tmp/portage/sys-devel/dev86-0.16.17-r5/work/dev86-0.16.17/bin/ncc
00604000-00605000 r--p 00004000 00:12 536270                             /var/tmp/portage/sys-devel/dev86-0.16.17-r5/work/dev86-0.16.17/bin/ncc
00605000-00606000 rw-p 00005000 00:12 536270                             /var/tmp/portage/sys-devel/dev86-0.16.17-r5/work/dev86-0.16.17/bin/ncc
021d9000-021fa000 rw-p 021d9000 00:00 0                                  [heap]
2ae67d9e1000-2ae67d9fe000 r-xp 00000000 08:05 966159                     /lib64/ld-2.9.so
2ae67d9fe000-2ae67da00000 rw-p 2ae67d9fe000 00:00 0 
2ae67dbfd000-2ae67dbfe000 r--p 0001c000 08:05 966159                     /lib64/ld-2.9.so
2ae67dbfe000-2ae67dbff000 rw-p 0001d000 08:05 966159                     /lib64/ld-2.9.so
2ae67dbff000-2ae67dc05000 r-xp 00000000 08:05 449700                     /usr/lib64/libsandbox.so.0.0.0
2ae67dc05000-2ae67de04000 ---p 00006000 08:05 449700                     /usr/lib64/libsandbox.so.0.0.0
2ae67de04000-2ae67de05000 r--p 00005000 08:05 449700                     /usr/lib64/libsandbox.so.0.0.0
2ae67de05000-2ae67de06000 rw-p 00006000 08:05 449700                     /usr/lib64/libsandbox.so.0.0.0
2ae67de06000-2ae67de08000 rw-p 2ae67de06000 00:00 0 
2ae67de08000-2ae67df53000 r-xp 00000000 08:05 966147                     /lib64/libc-2.9.so
2ae67df53000-2ae67e153000 ---p 0014b000 08:05 966147                     /lib64/libc-2.9.so
2ae67e153000-2ae67e157000 r--p 0014b000 08:05 966147                     /lib64/libc-2.9.so
2ae67e157000-2ae67e158000 rw-p 0014f000 08:05 966147                     /lib64/libc-2.9.so
2ae67e158000-2ae67e15d000 rw-p 2ae67e158000 00:00 0 
2ae67e15d000-2ae67e15f000 r-xp 00000000 08:05 966124                     /lib64/libdl-2.9.so
2ae67e15f000-2ae67e35f000 ---p 00002000 08:05 966124                     /lib64/libdl-2.9.so
2ae67e35f000-2ae67e360000 r--p 00002000 08:05 966124                     /lib64/libdl-2.9.so
2ae67e360000-2ae67e361000 rw-p 00003000 08:05 966124                     /lib64/libdl-2.9.so
2ae67e361000-2ae67e363000 rw-p 2ae67e361000 00:00 0 
2ae67e363000-2ae67e379000 r-xp 00000000 08:05 115746                     /lib64/libgcc_s.so.1
2ae67e379000-2ae67e578000 ---p 00016000 08:05 115746                     /lib64/libgcc_s.so.1
2ae67e578000-2ae67e579000 r--p 00015000 08:05 115746                     /lib64/libgcc_s.so.1
2ae67e579000-2ae67e57a000 rw-p 00016000 08:05 115746                     /lib64/libgcc_s.so.1
7fff2d0b2000-7fff2d0c9000 rw-p 7ffffffe8000 00:00 0                      [stack]
7fff2d1fd000-7fff2d1fe000 r-xp 7fff2d1fd000 00:00 0                      [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
make[3]: *** [crt0.o] Aborted
make[3]: Leaving directory `/var/tmp/portage/sys-devel/dev86-0.16.17-r5/work/dev86-0.16.17/libc'
make[2]: *** [library] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/dev86-0.16.17-r5/work/dev86-0.16.17'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/dev86-0.16.17-r5/work/dev86-0.16.17'
make: *** [all] Error 2
 * 
 * ERROR: sys-devel/dev86-0.16.17-r5 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2175:  Called die
 * The specific snippet of code:
 *       emake -j1 DIST="${D}" || die;
 *  The die message:
 *   (no error message)
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-devel/dev86-0.16.17-r5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/dev86-0.16.17-r5/temp/environment'.
 * 

>>> Failed to emerge sys-devel/dev86-0.16.17-r5, Log file:

>>>  '/var/tmp/portage/sys-devel/dev86-0.16.17-r5/temp/build.log'

 * Messages for package sys-devel/dev86-0.16.17-r5:

 * 
 * ERROR: sys-devel/dev86-0.16.17-r5 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2175:  Called die
 * The specific snippet of code:
 *       emake -j1 DIST="${D}" || die;
 *  The die message:
 *   (no error message)
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-devel/dev86-0.16.17-r5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/dev86-0.16.17-r5/temp/environment'.
 * 

emerge --info
Portage 2.2_rc23 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r3 x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r3-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7300_@_2.00GHz-with-glibc2.2.5
Timestamp of tree: Thu, 12 Mar 2009 14:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.2-r7
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 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="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo http://www.gtlib.gatech.edu/pub/gentoo ftp://ftp.gtlib.gatech.edu/pub/gentoo http://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.osuosl.org/ "
LANG="C"
LDFLAGS="-Wl,-O1"
LINGUAS="en_US en ja"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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/java-overlay /usr/portage/local/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync21.us.gentoo.org/gentoo-portage"
USE="64bit 7zip X a52 aac aalib acl acpi aim alsa amarok amazon amd64 animgif anthy audacious bash-completion berkdb bittorrent bluetooth branding bzip2 cairo cdaudio cdda cddb cdparanoia cdr cjk cli console cracklib crypt css cups dbus dict directfb divx djvu dri dvd dvdnav dvdr dvdread dvi eds emboss encode esd exif fam fat fbcon fbcondecor fbsplash ffmpeg flac fortran ftp gdbm gif gimp gimpprint glitz glsa gmail gnome gpm gs gstreamer gtk hal hdaps hddtemp hfs ibmacpi iconv icq icu idea ieee1394 imagemagick ipv6 ipw4965 isdnlog jabber java javascript jingle john jpeg kerberos kpathsea lame laptop latex ldap libcaca libnotify lm_sensors lua mad matroska md5sum midi mikmod mmx mng mono mp3 mpeg mplayer msn mtp mudflap multilib musicbrainz mysql ncurses nethack nls nptl nptlonly nsplugin ntfs offensive ogg opengl openmp openssl opensslcrypt openvpn pam pcmcia pcre pdf perl pidgin png pop ppds pppd prediction python qt3support quicktime rar raw readline realmedia reflection reiserfs sdl server session spell spl sse sse2 ssl svg sysfs tcpd theora threads thunderbird tiff timidity tracker truetype uim unicode usb vim-syntax vim-with-x visualization vorbis wav wifi wma wmp wordperfect wxwindows x264 xcb xcomposite xml xorg xscreensaver xulrunner xv xvid yahoo 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="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 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" ELIBC="glibc" INPUT_DEVICES="synaptics evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en ja" USERLAND="GNU" VIDEO_CARDS="vesa vga i810 i830 intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Randall Wald 2009-03-12 18:53:19 UTC

*** This bug has been marked as a duplicate of bug 256782 ***