Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 256668 - [mozilla-overlay] mail-client/mozilla-thunderbird-3.0_alpha2 / gcc-4.3.3 - buffer overflow detected
Summary: [mozilla-overlay] mail-client/mozilla-thunderbird-3.0_alpha2 / gcc-4.3.3 - bu...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: fortify-source
  Show dependency tree
 
Reported: 2009-01-28 18:39 UTC by Daniel V.
Modified: 2010-06-23 13:44 UTC (History)
2 users (show)

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


Attachments
Full error message (tb_error.txt,5.22 KB, text/plain)
2009-01-28 18:41 UTC, Daniel V.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel V. 2009-01-28 18:39:26 UTC
Just emerged my world after the upgrade to gcc-4.3.3. Getting:

*** buffer overflow detected ***: /usr/lib64/mozilla-thunderbird/thunderbird-bin terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x37)[0x7fb3873ab767]
/lib/libc.so.6[0x7fb3873a9540]
/lib/libc.so.6[0x7fb3873a9c2b]
/usr/lib64/mozilla-thunderbird/libxul.so(XRE_GetBinaryPath+0x4c)[0x7fb38b438c6c]
/usr/lib64/mozilla-thunderbird/thunderbird-bin[0x400d8f]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7fb3872c95c6]
/usr/lib64/mozilla-thunderbird/thunderbird-bin[0x400bc9]

Please see attached textfile on the complete error message.

Reproducible: Always

Steps to Reproduce:
1.emerge gcc-4.3.3
2.recompile thunderbird
3.run :)




Portage 2.2_rc23 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r1, 2.6.28-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7100_@_1.80GHz-with-glibc2.2.5
Timestamp of tree: Wed, 28 Jan 2009 15:15:01 +0000
app-shells/bash:     3.2_p48
dev-lang/python:     2.5.4-r2
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.2
sys-apps/sandbox:    1.3.3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages nodoc noinfo parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://de-mirror.org/distro/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_US en"
MAKEOPTS="-j3"
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/local/portage/layman/mozilla /usr/local/portage/layman/x11 /usr/local/portage/layman/berkano"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X alsa amd64 bzip2 cups dbus gpm jpeg multilib ncurses pam png sse sse2 ssl unicode zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="*" 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="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Daniel V. 2009-01-28 18:41:20 UTC
Created attachment 179992 [details]
Full error message
Comment 2 Peter Alfredsen (RETIRED) gentoo-dev 2009-02-17 22:05:35 UTC
If you add -U_FORTIFY_SOURCE to CFLAGS/CXXFLAGS does the same thing happen? If yes, please make this block bug 259417
Comment 3 David Sveningsson 2009-02-24 21:30:44 UTC
I ran into the same issue. Temporary adding -U_FORTIFY_SOURCE to CFLAGS fixes the issue.

Portage 2.2_rc20 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.27-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r5-x86_64-AMD_Phenom-tm-_9600_Quad-Core_Processor-with-glibc2.2.5
Timestamp of tree: Tue, 24 Feb 2009 20:05:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p48-r1
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.4-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.3.8
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.19.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -Os -pipe -msse3 -g -ggdb"
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 /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /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/sandbox.d /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 -Os -pipe -msse3 -g -ggdb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="ccache distlocks fixpackages installsources parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp.port80.se/gentoo/ "
LC_ALL="sv_SE.utf8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="sv SE sv_SE en"
MAKEOPTS="-j5"
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/local/portage/layman/mozilla /usr/local/portage/layman/sunrise /usr/local/portage/layman/java-overlay /usr/local/portage/layman/ext-devlibs /usr/local/portage/layman/kde /usr/local/portage/layman/hollow /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib acl alsa amd64 avahi bash-completion berkdb bonjour bzip2 cairo cjk cli cracklib crypt cups dbus debug dri emacs exif fam ffmpeg firefox flac fortran gdbm gif glitz gnutls gpm gtk iconv id3tag idn ieee1394 inotify ipv6 isdnlog java5 java6 jpeg jpeg2k latex lcms libnotify md5sum midi mmx mmxext mp3 mplayer mudflap multilib ncurses nls nptl nptlonly ogg openexr opengl openmp pam paste64 pcre perl php png pppd pulseaudio python readline reflection samba session spell spl sse sse2 ssl startup-notification svg sysfs tcpd threads tiff truetype unicode usb vorbis wmf xattr xcb xcomposite xml xorg xpm xprint xulrunner xv zeroconf zlib zsh-completion" 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 auth_digest ident imagemap log_forensic" CAMERAS="canon ptp2" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="sv SE sv_SE en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Daniel V. 2009-02-24 22:17:43 UTC
Indeed it does fix it. Sorry for the late response, forgot ;)
Added blocking.
Comment 5 Mike Pagano gentoo-dev 2009-07-17 01:57:49 UTC
I hope no one minds me closing this. Tried reaching someone on -dev.

mail-client/mozilla-thunderbird-3.0_alpha2 is no longer is the tree or in the overlay.

mozilla-thunderbird-3.0_beta2-r1 from the overlay compiles just fine
Comment 6 niogic 2010-06-23 13:41:50 UTC
(In reply to comment #5)
> I hope no one minds me closing this. Tried reaching someone on -dev.
> 
> mail-client/mozilla-thunderbird-3.0_alpha2 is no longer is the tree or in the
> overlay.
> 
> mozilla-thunderbird-3.0_beta2-r1 from the overlay compiles just fine
> 

I'm using 3.1_rc2-r1 from main tree.
Same issue.

Why haven't you added that FORTIFY_SOURCE thing to ebuild cxxflags?
Comment 7 niogic 2010-06-23 13:44:18 UTC
And it's for x86 also. Please reopen, change summary, extend arch.