This problem is only appeared on x86. It doesn't appear on my x86-64 Gentoo Linux. It was happened since openssl-0.9.8l-r2, and it was still happened on openssl-0.9.8m. To use revdep-rebuild cannot help anything. My system uses nss_ldap that depends on OpenSSL (libcrypto.so). It uses TLS to connect to LDAP server, so it affects many basic commands. My CFLAGS is "-O3 -march=prescott -pipe -fomit-frame-pointer". To replace it by "-O2 -march=prescott -pipe -fomit-frame-pointer" can fix this problem. Example 1. > ls ~part of someone's id <TAB> Segmentation fault & kick out the user Log: tcsh[23346] general protection ip:b7176a18 sp:bffea4cc error:0 in libcrypto.so.0.9.8[b70c9000+131000] Example 2. > finger someone's id Segmentation fault Log: finger[23359] general protection ip:b7464a18 sp:bffb8d9c error:0 in libcrypto.so.0.9.8[b73b7000+131000 emerge --info: Portage 2.1.8.1 (default/linux/x86/10.0, gcc-4.4.3, glibc-2.11-r1, 2.6.32-gentoo-r5 i686) ================================================================= System uname: Linux-2.6.32-gentoo-r5-i686-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.0.1 Timestamp of tree: Sat, 06 Mar 2010 22:00:01 +0000 app-shells/bash: 4.1_p2 dev-java/java-config: 1.3.7-r1, 2.1.10 dev-lang/python: 2.4.6, 2.5.4-r3, 2.6.4-r1, 3.1.1-r1 dev-util/cmake: 2.8.0-r2 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.0-r1 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.13, 2.65 sys-devel/automake: 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.3, 1.11.1 sys-devel/binutils: 2.20-r1 sys-devel/gcc: 3.3.6-r1, 4.3.4, 4.4.3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.32 ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="*" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=prescott -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind" 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/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O3 -march=prescott -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.twaren.net/Linux/Gentoo/ ftp://ftp.twaren.net/Linux/Gentoo/ http://ftp.ncnu.edu.tw/Linux/Gentoo/ ftp://ftp.ncnu.edu.tw/Linux/Gentoo/ http://ftp.cs.pu.edu.tw/Linux/Gentoo/ ftp://ftp.cs.pu.edu.tw/Linux/Gentoo/ http://gentoo.cs.nctu.edu.tw/gentoo/ ftp://gentoo.cs.nctu.edu.tw/gentoo/ http://ftp.isu.edu.tw/pub/Linux/Gentoo ftp://ftp.isu.edu.tw/pub/Linux/Gentoo" LDFLAGS="-Wl,-O1" LINGUAS="zh_TW" MAKEOPTS="-j9" 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="/usr/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl acpi apache2 apm bash-completion bcmath berkdb bzip2 cjk clamav cli cracklib crypt cscope ctype cups curl curlwrappers cxx dbus doc dri emacs examples exif expat fastcgi fortran ftp gcj gd gdbm gif gmp gpm graphviz gtk gtk2 icc iconv ieee1394 imagemagick imap ipv6 java javascript jpeg jpeg2k ldap libg++ libwww maildir mailwrapper mbox milter mime ming mmap mmx mng modules mono motif mudflap mysql ncurses nis nls nptl nptlonly openmp pam pcre pdf perl php png posix ppds pppd python qt3support qt4 readline reflection samba sasl session sharedext sharedmem snmp sockets spell spl sse sse2 ssl svg svga sysfs tcl tcltk tcpd tetex threads tiff tk tokenizer truetype udev unicode usb vhosts vim-syntax webkit x86 xemacs xinetd xml xmlrpc xorg xsl zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_TW" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
try USE='-sse2'
(In reply to comment #1) > try USE='-sse2' Thanks. I've tested it just now, but the problem is still occured. Since the error is not caused by illegal instruction signal, whether to use SSE2 instruction set is not the problem. As far as I know, Intel provides SSE2 instruction set for 64-bit CPU in x86 mode.
dont bother specifying versions unless you can verify one that actually worked
*** This bug has been marked as a duplicate of bug 270120 ***
It's both OpenSSL and zlib compiled with -ftree-vectorize, implied by -O3 that makes things crashy on x86, with gcc-4.4.x.