Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 256939 - sys-devel/dev86-0.16.17-r5: emerging dev86 causes buffer overflow in ncc
Summary: sys-devel/dev86-0.16.17-r5: emerging dev86 causes buffer overflow in ncc
Status: RESOLVED DUPLICATE of bug 256782
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-30 14:52 UTC by Martin Walch
Modified: 2009-01-30 17:33 UTC (History)
0 users

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


Attachments
/var/tmp/portage/sys-devel/dev86-0.16.17-r5/temp/build.log (build.log,20.11 KB, text/plain)
2009-01-30 14:53 UTC, Martin Walch
Details
/var/tmp/portage/sys-devel/dev86-0.16.17-r5/temp/environment (environment,86.48 KB, text/plain)
2009-01-30 14:54 UTC, Martin Walch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Walch 2009-01-30 14:52:34 UTC
Emerging sys-devel/dev86 crashes with this error message:

*** buffer overflow detected ***: ncc terminated                           
======= Backtrace: =========                                               
/lib/libc.so.6(__fortify_fail+0x37)[0x2b42dc363d67]                        
/lib/libc.so.6[0x2b42dc3621c0]                                             
/lib/libc.so.6[0x2b42dc3628ab]                                             
ncc[0x401548]                                                              
ncc[0x403347]                                                              
/lib/libc.so.6(__libc_start_main+0xe6)[0x2b42dc2821d6]                     
ncc[0x400db9]                                                              
======= Memory map: ========                                               
00400000-00405000 r-xp 00000000 08:11 27558279                           /var/tmp/portage/sys-devel/dev86-0.16.17-r5/work/dev86-0.16.17/bin/ncc
00604000-00605000 r--p 00004000 08:11 27558279                           /var/tmp/portage/sys-devel/dev86-0.16.17-r5/work/dev86-0.16.17/bin/ncc
00605000-00606000 rw-p 00005000 08:11 27558279                           /var/tmp/portage/sys-devel/dev86-0.16.17-r5/work/dev86-0.16.17/bin/ncc
01e38000-01e59000 rw-p 01e38000 00:00 0                                  [heap]                                                                
2b42dbe3b000-2b42dbe5a000 r-xp 00000000 08:11 25455063                   /lib64/ld-2.7.so                                                      
2b42dbe5a000-2b42dbe5c000 rw-p 2b42dbe5a000 00:00 0                                                                                            
2b42dc059000-2b42dc05a000 r--p 0001e000 08:11 25455063                   /lib64/ld-2.7.so                                                      
2b42dc05a000-2b42dc05b000 rw-p 0001f000 08:11 25455063                   /lib64/ld-2.7.so                                                      
2b42dc05b000-2b42dc061000 r-xp 00000000 08:11 26870604                   /usr/lib64/libsandbox.so.0.0.0                                        
2b42dc061000-2b42dc260000 ---p 00006000 08:11 26870604                   /usr/lib64/libsandbox.so.0.0.0                                        
2b42dc260000-2b42dc261000 r--p 00005000 08:11 26870604                   /usr/lib64/libsandbox.so.0.0.0                                        
2b42dc261000-2b42dc262000 rw-p 00006000 08:11 26870604                   /usr/lib64/libsandbox.so.0.0.0                                        
2b42dc262000-2b42dc264000 rw-p 2b42dc262000 00:00 0                                                                                            
2b42dc264000-2b42dc3cc000 r-xp 00000000 08:11 25454952                   /lib64/libc-2.7.so                                                    
2b42dc3cc000-2b42dc5cc000 ---p 00168000 08:11 25454952                   /lib64/libc-2.7.so                                                    
2b42dc5cc000-2b42dc5d0000 r--p 00168000 08:11 25454952                   /lib64/libc-2.7.so                                                    
2b42dc5d0000-2b42dc5d1000 rw-p 0016c000 08:11 25454952                   /lib64/libc-2.7.so                                                    
2b42dc5d1000-2b42dc5d6000 rw-p 2b42dc5d1000 00:00 0                                                                                            
2b42dc5d6000-2b42dc5d9000 r-xp 00000000 08:11 25455026                   /lib64/libdl-2.7.so                                                   
2b42dc5d9000-2b42dc7d8000 ---p 00003000 08:11 25455026                   /lib64/libdl-2.7.so                                                   
2b42dc7d8000-2b42dc7d9000 r--p 00002000 08:11 25455026                   /lib64/libdl-2.7.so                                                   
2b42dc7d9000-2b42dc7da000 rw-p 00003000 08:11 25455026                   /lib64/libdl-2.7.so                                                   
2b42dc7da000-2b42dc7dc000 rw-p 2b42dc7da000 00:00 0                                                                                            
2b42dc7dc000-2b42dc7f2000 r-xp 00000000 08:11 20606846                   /lib64/libgcc_s.so.1                                                  
2b42dc7f2000-2b42dc9f1000 ---p 00016000 08:11 20606846                   /lib64/libgcc_s.so.1                                                  
2b42dc9f1000-2b42dc9f2000 r--p 00015000 08:11 20606846                   /lib64/libgcc_s.so.1                                                  
2b42dc9f2000-2b42dc9f3000 rw-p 00016000 08:11 20606846                   /lib64/libgcc_s.so.1                                                  
7fffcec56000-7fffcec6e000 rw-p 7ffffffe7000 00:00 0                      [stack]                                                               
7fffcedfb000-7fffcedfc000 r-xp 7fffcedfb000 00:00 0                      [vdso]                                                                
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]                                                            

This message drops directly to the screen of bash and not to stdout or stderr.

The problem occured shortly after #256887 appeared. The only major changes I remember during the last days are a switch from gcc 4.3.2-r3 to gcc 4.3.3 and emerge -e world (where both things happened). I will try again with gcc 4.3.2-r3 and report back, but this will take some time.
Comment 1 Martin Walch 2009-01-30 14:53:37 UTC
Created attachment 180286 [details]
/var/tmp/portage/sys-devel/dev86-0.16.17-r5/temp/build.log
Comment 2 Martin Walch 2009-01-30 14:54:00 UTC
Created attachment 180288 [details]
/var/tmp/portage/sys-devel/dev86-0.16.17-r5/temp/environment
Comment 3 Martin Walch 2009-01-30 15:34:44 UTC
sorry, forgot emerge --info. Is exactly the same as in #256887

Portage 2.2_rc23 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.7-r2, 2.6.27-gentoo-r8 x86_64)
=================================================================                                      
System uname: Linux-2.6.27-gentoo-r8-x86_64-Intel-R-_Core-TM-2_CPU_4300_@_1.80GHz-with-glibc2.2.5      
Timestamp of tree: Thu, 29 Jan 2009 11:45:01 +0000                                                     
ccache version 2.4 [enabled]                                                                           
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-util/ccache:     2.4-r7
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.1-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  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 -fgcse-after-reload -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -fgcse-after-reload -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks fixpackages metadata-transfer parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j4"
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/java-overlay /usr/portage/local/layman/gnash-cvs /usr/portage/local/layman/mysql-testing /usr/portage/local/layman/enlightenment /usr/portage/local/layman/enlightenment /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac aalib accessibility acl acpi agg akode alsa amarok amd64 apache2 bash-completion berkdb blender-game bluetooth branding bzip2 cairo captury cdaudio cdr cdrom cjk cli clucene cracklib crypt cups curl cviewer daap dbus designer-plugin dga dirac djvu dri dvd dvdnav dvdr dvdread dxr3 eds emacs embedded emboss encode evo fam fbcon ffmpeg fftw firefox fits flac fortran gcj gdbm ggi gif glibc-omitfp glitz gopher gpg gpm gstreamer hal hdri htmlhandbook iceweasel iconv icu imagemagick insecure-savers ipv6 isdnlog jabber jack java java5 java6 javascript jingle jpeg kde kde4 kdebuild kdecards kdeenablefinal kdehiddenvisibility kdepim kdm kontact ktts latex lcms ldap libcaca libnotify libwww lm_sensors logitech-mouse lua mad matroska mdnsresponder-compat midi mikmod mmx mng mp3 mpeg mpeg2 mpi mudflap mule multilib musepack mysql ncurses nepomuk nls noamazon nova nptl nptlonly nsplugin offensive ogg ogg123 openal openexr opengl openmp oss pam pcre pdf perl plasma png posix povray ppds pppd python qt3support qt4 quicktime readline reflection reiser4 reiserfs schroedinger sdl sdl-image semantic-desktop sensord session sndfile solver songs sound speex spell spl sse sse2 ssl startup-notification svg sysfs tcpd tetex theora threads tidytiff tools truetype type1 unicode usb vhook visualization vorbis wav wavpack xcomposite xemacs xine xml xorg xosd xprint xscreensaver xulrunner xv zip 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="i810 intel nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Martin Walch 2009-01-30 16:21:46 UTC
Emerging gcc-4.3.2-r3 caused this error message:

* gcc-config: Active gcc profile is invalid!                                                                                                               
* Switching native-compiler to x86_64-pc-linux-gnu-4.3.2...
* gcc-config: Active gcc profile is invalid!

* Your gcc has a bug with GCC_SPECS.
* Please re-emerge gcc.
* http://bugs.gentoo.org/68395

Anyway, dev86 emerges fine now. I will try some more things, but it seems to be a problem with gcc 4.3.3.
Comment 5 Martin Walch 2009-01-30 17:33:13 UTC
Sorry for the noise. I have overlooked #256782.

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