Whenever I attempt to run any of the java binaries such as java or javac I get a segmentation fault. I found something interesting in that if I run 'java -version -server' the command works properly. However, if I run 'java -version -client' it immediately seg faults. I have blackdown-jre-1.4.2.01 and blackdown-jdk-1.4.2.01 emerged. Reproducible: Always Steps to Reproduce: 1. java -version 2. 3. Actual Results: It produces a segmentation fault and drops back to cli. Expected Results: Printed java version installed. Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.7-hardened-r16 i686) ================================================================= System uname: 2.6.7-hardened-r16 i686 Intel(R) Pentium(R) M processor 1500MHz Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" 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 /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X acl alsa apm arts avi berkdb bitmap-fonts crypt cups encode esd fam foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 hardened imagemagick imlib ipv6 java jpeg ldap libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl slang spell ssl svga tcpd tiff truetype xml2 xmms xv zlib" running java-config -f produces: blackdown-jdk-1.4.2.01 running java-config -v produces a blank line.
Created attachment 48229 [details] Strace for 'java -version' This is the output of running 'strace java -version'
you have hardened features enabled and properbly grsecurity in your kernel. you can either disable these features or another way could it be to disable grsecurity flags on all java binaries because otherwise it won't work. use chpax or paxctl todo do. just emerge one of them.