Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75086 - (toolchain) ethereal-0.10.8 breaks if compiled with hardened gcc-3.4.3-r1
Summary: (toolchain) ethereal-0.10.8 breaks if compiled with hardened gcc-3.4.3-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-20 12:13 UTC by Alexandre Rostovtsev (RETIRED)
Modified: 2005-05-25 05:21 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 Alexandre Rostovtsev (RETIRED) gentoo-dev 2004-12-20 12:13:02 UTC
When ethereal-0.10.8 is compiled with hardened gcc-3.4.1-r1, it is very fragile. For instance, it crashes when capturing in "Update list of packets in real time mode" and the packet list gets long enough to grow a scroll bar. If compiled with vanilla gcc-3.4.1-r1, ethereal works fine.

I did not experience these issues with ethereal-0.10.7 compiled with hardened gcc 3.4.3.

My USE flags for ethereal are "+adns -debug +gtk +gtk2 +ipv6 +snmp +ssl"

Reproducible: Always
Steps to Reproduce:
1. use gcc-config to switch to hardened gcc-3.4.3-r1 ; source /etc/profile
2. emerge "=ethereal-0.10.8"
3. ethereal
4. start new capture, select "update list of packets in real time"
5. wait until the list of packets is long enough to get a scrollbar

Actual Results:  
*** glibc detected *** free(): invalid pointer: 0x80465c40 ***
Aborted

Expected Results:  
Successful capture

Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0,
2.6.9-gentoo-r4 i686)
=================================================================
System uname: 2.6.9-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Nov 19 2004, 23:16:54)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.2-r7
virtual/os-headers:  2.6.8.1-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -pipe -frename-registers -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe -frename-registers -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.osuosl.org
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X aalib adns alsa apache2 apm arts avi berkdb bitmap-fonts cdr cjk crypt
cscope cups doc emacs encode erandom esd f77 fam flac foomaticdb fortran gdbm
gif gnome gphoto2 gpm gstreamer gtk gtk2 guile hardened imagemagick imlib ipv6
ithreads jack java jpeg junit kde ldap libg++ libwww mad mikmod mmx motif
mozdevelop mozilla mozxmlterm mpeg mysql nas ncurses nls nptl odbc oggvorbis
opengl oss pam pcre pdflib perl pic png postgres python qt quicktime readline
samba scanner sdl slang snmp speex spell sse ssl tcltk tcpd tetex threads tiff
truetype unicode x86 xface xine xinerama xml xml2 xmms xprint xrandr xv zlib"
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2004-12-20 12:14:34 UTC
TYPO :
I meant gcc-3.4.3-r1, NOT 3.4.1
Sorry.
Comment 2 Poggi Jérôme 2005-01-10 06:01:50 UTC
In addition to this bug, capture file are not correctly reconized. I have for example a GZ PCAP capture reconized as a Nokia PCAP.
Comment 3 Poggi Jérôme 2005-01-11 05:01:27 UTC
It's also broken with i686-pc-linux-gnu-3.4.3-vanilla. It's perharps not exactly ethereal that was broken, because I had also this problem with Ethereal 0.10.6 compiled with Vanilla GCC.
Comment 4 Poggi Jérôme 2005-01-12 07:45:46 UTC
Work perfectly with hardened i686-pc-linux-gnu-3.4.3 but without SSL support
USE="-adns -debug +gtk +gtk2 +ipv6 +snmp -ssl"

emerge info :
Portage 2.0.51-r10 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.7-hardened-r17 i686)
=================================================================
System uname: 2.6.7-hardened-r17 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Dec 28 2004, 14:01:47)]
distcc[31954] (dcc_mkdir) ERROR: mkdir /root/.distcc/state failed: No such file or directory [disabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.9.4, 1.6.3, 1.7.9, 1.4_p6, 1.8.5-r2
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mtune=pentium3 -march=pentium3 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mtune=pentium3 -march=pentium3 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks noauto notitles sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://mir.zyrianes.net/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.inode.at/ http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ http://gentoo.mirror.sdv.fr/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://ftp.gentoo.skynet.be/pub/gentoo/ http://mirror.pudas.net/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://hsc.hsc.fr/gentoo-portage"
USE="x86 X X509 aalib accounting acl acpi acpi4linux alsa apache2 apm arts async avi berkdb bindist bitmap-fonts bluetooth bzip2 bzlib chroot codecs crypt css cups dba devfs26 devmap dhcp divx4linux dvd emoticon encode escreen esd ethereal fam ffmpeg flac font-server foomaticdb fortran freetds gd gdbm gif gimpprint gkrellm gmail gmp gnome gpm gps graphviz gs gtk gtk2 hardened hardenedphp hostap-nopci hostap-noplx iconv icq imagemagick imap imlib ipv6 irda jabber java jp2 jpeg kde lcms ldap libwww lzo lzw mad mbox md5sum mikmod mmx mng motif mozcalendar mozp3p mp3 mpeg msn mssql mysql ncurses nls nptl ntlm oggvorbis opengl openssh oscar oss pam pcmcia pdflib perl php pic pie png pnp procmail pthreads python qt quicktime readline ruby samba sdl slang smartcard smime snmp softmmu spell sqlite sse ssl svga tcltk tcpd tidy tiff truetype usb vhosts wifi wmf xml xml2 xmms xv yahoo zlib video_cards_i810"
Unset:  LDFLAGS, PORTDIR_OVERLAY
Comment 5 Daniel Black (RETIRED) gentoo-dev 2005-05-25 05:21:41 UTC
I can't reproduce this with 0.10.11  
 
gcc (GCC) 3.4.4 (Gentoo Hardened 3.4.4, HTB-3.4.4_pre-1.00, ssp-3.4.4-1.0, 
pie-8.7.8) 
 
guess it was fixed at some stage