Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 112826 - eix gets SEGV when compiled with hardened-gcc
Summary: eix gets SEGV when compiled with hardened-gcc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-17 07:27 UTC by meyerm
Modified: 2006-01-30 16:00 UTC (History)
1 user (show)

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


Attachments
last 50 lines of the strace (strace.stderr.tail50,2.84 KB, text/plain)
2005-11-24 05:07 UTC, meyerm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description meyerm 2005-11-17 07:27:33 UTC
When eix is compiled using the patched hardened gcc, update-eix can't run (see 
below). When compiled with the vanilla-gcc it works. 

Reproducible: Always
Steps to Reproduce:
Knoppix / # gcc-config -l  
 [1] i686-pc-linux-gnu-3.3.6  
 [2] i686-pc-linux-gnu-3.3.6-hardenednopie  
 [3] i686-pc-linux-gnu-3.3.6-hardenednopiessp  
 [4] i686-pc-linux-gnu-3.3.6-hardenednossp  
 [5] i686-pc-linux-gnu-3.3.6-vanilla  
 [6] i686-pc-linux-gnu-3.4.4 *  
 [7] i686-pc-linux-gnu-3.4.4-hardenednopie  
 [8] i686-pc-linux-gnu-3.4.4-hardenednopiessp  
 [9] i686-pc-linux-gnu-3.4.4-hardenednossp  
 [10] i686-pc-linux-gnu-3.4.4-vanilla  
Knoppix / # emerge eix  
...  
 
Knoppix / # update-eix 
Reading Portage settings .. 
Building database (/var/cache/eix) from scratch .. 
Received SIGSEGV - you probably found a bug in eix. 
Please post the output of eix -V along with your bugreport. 
Sorry for the inconvenience. 
Knoppix / # gcc-config 10 
 * Switching native-compiler to i686-pc-linux-gnu-3.4.4-vanilla ...                                                                                                                          
[ ok ] 
 
 * If you intend to use the gcc from the new profile in an already 
 * running shell, please remember to do: 
 
 *   # source /etc/profile 
 
Knoppix / # env-update && source /etc/profile 
>>> Regenerating /etc/ld.so.cache... 
Knoppix / # emerge eix 
... 
Knoppix / # update-eix 
Reading Portage settings .. 
Building database (/var/cache/eix) from scratch .. 
[0] /usr/portage/ (cache: flat) 
     Reading 100% 
[1] /usr/local/portage (cache: none) 
     Reading 100% 
Applying masks .. 
Database contains 10282 packages in 144 categories. 
Knoppix / # 
Actual Results:  
SEGV 

Expected Results:  
!SEGV 

Knoppix / # emerge info 
Portage 2.0.53_rc7 (hardened/x86/2.6, gcc-3.4.4, glibc-2.3.5-r3, 2.6.12 i686) 
================================================================= 
System uname: 2.6.12 i686 Intel(R) Pentium(R) M processor 1.60GHz 
Gentoo Base System version 1.12.0_pre10 
dev-lang/python:     2.3.5, 2.4.2 
sys-apps/sandbox:    1.2.13 
sys-devel/autoconf:  2.13, 2.59-r7 
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 
sys-devel/binutils:  2.16.1 
sys-devel/libtool:   1.5.20-r1 
virtual/os-headers:  2.6.11-r2 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CBUILD="i686-pc-linux-gnu" 
CFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoconfig distlocks sandbox sfperms strict" 
GENTOO_MIRRORS="http://distfiles.gentoo.org 
http://distro.ibiblio.org/pub/linux/distributions/gentoo" 
LANG="de_DE@euro" 
PKGDIR="/usr/portage//packages/x86/" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage/" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="acl adns apache2 bash-completion berkdb bzip2 crypt curl curl-wrappers 
expat ftp hardened hardened-php imagemagick imlib jpeg maildir mysql ncurses 
nptl nptlonly pam pcre perl pic png posix prelude python readline samba 
sockets ssl tcpd unicode vhosts x86 xml2 zlib userland_GNU kernel_linux 
elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 1 Emil Beinroth 2005-11-17 08:28:16 UTC
You didn't say which version of eix you're using.
Comment 2 meyerm 2005-11-17 13:44:10 UTC
I'm sorry. I'm using the eix-ebuild 0.5.0_pre1, eix itself claims to be 
0.5.0_beta. 
Comment 3 Emil Beinroth 2005-11-22 02:10:36 UTC
Can you do a strace update-eix 2>&1 | tail -n 50, and provide the output please?
Comment 4 solar (RETIRED) gentoo-dev 2005-11-22 05:27:41 UTC
Please try without ssp enabled.

gcc-config -l ; gcc-config foo-hardenednossp 

I've not looked at the eix code but I think it's written in c++; 
ssp-all has been known to have some problem on glibc with code that uses vectors.
Comment 5 meyerm 2005-11-24 05:06:54 UTC
Hello, 
 
sorry for waiting that long. I had to get a vmware for myself since the 
original image is already deployed. 
 
OK, solar's suggestion works (of course ;-) ). 
 
I will post an attachment with the strace. 
Comment 6 meyerm 2005-11-24 05:07:54 UTC
Created attachment 73487 [details]
last 50 lines of the strace
Comment 7 Kevin F. Quinn (RETIRED) gentoo-dev 2006-01-30 16:00:34 UTC
Just tried to repeat this with gcc-3.4.4-r1/hardened and eix-0.5.0-r1, no problem here.  Resolving FIXED - Marcel, if the problem still occurs for you with the latest versions please reopen.