Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 152536 - dev-java/kaffe: VM crashes during initialization
Summary: dev-java/kaffe: VM crashes during initialization
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 309459
  Show dependency tree
 
Reported: 2006-10-23 04:40 UTC by Lukas Turek
Modified: 2010-03-15 08:20 UTC (History)
1 user (show)

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


Attachments
Full debugging output of Kaffe VM (kaffe.txt,57.43 KB, text/plain)
2006-10-23 04:44 UTC, Lukas Turek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Turek 2006-10-23 04:40:46 UTC
When I run /opt/kaffe-1.1.7/bin/java with any parameter (any .class, any .jar, /dev/null or even nonexistent file), it crashes with:

Internal error: caught an unexpected exception.
Please check your CLASSPATH and your installation.
java/lang/NullPointerException
   at gnu.classpath.SystemProperties.getProperty (SystemProperties.java:123)
   at java.lang.VMClassLoader.<clinit> (VMClassLoader.java:83)
   at java.lang.ClassLoader$StaticData.<clinit> (ClassLoader.java:154)
   at java.lang.ClassLoader.getSystemClassLoader (ClassLoader.java:797)
   at gnu.classpath.VMSystemProperties.postInit (VMSystemProperties.java:native)
   at gnu.classpath.SystemProperties.<clinit> (SystemProperties.java:114)
   at java.lang.Runtime.<init> (Runtime.java:100)
   at java.lang.Runtime.<clinit> (Runtime.java:88)
   at java.lang.System.loadLibrary (System.java:560)
   at gnu.java.nio.channels.FileChannelImpl.<clinit> (FileChannelImpl.java:86)
   at java.io.FileDescriptor.<clinit> (FileDescriptor.java:63)
   at java.lang.VMSystem.makeStandardInputStream (VMSystem.java:191)
   at java.lang.System.<clinit> (System.java:74)
   at java.lang.Object.hashCode (Object.java:174)
   at java.util.Hashtable.hash (Hashtable.java:816)
   at java.util.Hashtable.put (Hashtable.java:426)
   at java.security.Permissions.add (Permissions.java:112)
Aborted

I tried different combinations of USE flags, setting Kaffe as system VM (and running ant), but it's still the same. It also crashes when I try to compile ant using Kaffe or in Konqueror Java plugin.


Portage 2.1.1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r4 i686)
=================================================================
System uname: 2.6.17-gentoo-r4 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.12.5
Last Sync: Sat, 21 Oct 2006 11:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.linux.cz/pub/linux/gentoo ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo ftp://fi.muni.cz/pub/linux/gentoo"
LINGUAS="en cs"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://gentoo.inode.at/gentoo-portage"
USE="x86 3dnow 3dnowext X aac alsa audiofile bzip2 cdr crypt cups curl dri dvb dvd dvdread elibc_glibc encode exif ffmpeg flac gif gpm iconv idn imagemagick imlib input_devices_keyboard input_devices_mouse jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kernel_linux lcms linguas_cs linguas_en lm_sensors mad mmx mmxext mng mp3 mpeg ncurses nls nodrm nptl nsplugin ogg opengl pam pic png qt3 readline samba sdl slang speex sse ssl symlink tcpd tiff truetype udev unicode userland_GNU v4l2 video_cards_radeon vorbis wmf xml xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Lukas Turek 2006-10-23 04:44:30 UTC
Created attachment 100264 [details]
Full debugging output of Kaffe VM
Comment 2 Lukas Turek 2006-10-23 06:03:00 UTC
I tried removing CFLAGS, with CFLAGS="-O1" CXXFLAGS="" MAKEOPTS="" it still crashes, with CFLAGS="-O0" it does not compile:

make[2]: Entering directory `/var/tmp/portage/kaffe-1.1.7-r3/work/kaffe-1.1.7/kaffe/kaffe'
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../config  -I../kaffevm -I./../kaffevm -I../../libltdl -I../../kaffe/jvmpi -I../../kaffe/xprof -I../../kaffe/kaffevm/jni -I../../include    -I/var/tmp/portage/kaffe-1.1.7-r3/work/kaffe-1.1.7/./kaffe/kaffevm -I/var/tmp/portage/kaffe-1.1.7-r3/work/kaffe-1.1.7/./kaffe/kaffevm/jit3 -I/var/tmp/portage/kaffe-1.1.7-r3/work/kaffe-1.1.7/./kaffe/kaffevm/systems/unix-pthreads -I../../replace -I../../config -I../../include -I../../libraries/javalib/external/classpath/include  -DKAFFE_VMDEBUG -D_REENTRANT  -pipe -fno-strict-aliasing -Wall -W -Wextra -pthread -c main.c
rm -f version-info.h version-info.hT
echo "/* version-info.h is automagically generated by Kaffe's Makefile */" > version-info.hT
sed < ../../ChangeLog            \
          -e 's/^/#define VER_CHANGELOG_HEAD "/' \
          -e 's/$/"/'                            \
          -e '1q' >> version-info.hT
echo '#define VER_COMPILE_DATE  "'`date`'" '            >> version-info.hT
echo '#define VER_COMPILE_HOST  "'`hostname`'"'         >> version-info.hT
echo '#define VER_CC            "i686-pc-linux-gnu-gcc"'                >> version-info.hT
echo '#define VER_KAFFELIBS     """"'      >> version-info.hT
echo '#define VER_CFLAGS        """-pipe -fno-strict-aliasing -Wall -W -Wextra -pthread"'      >> version-info.hT
echo '#define VER_CPPFLAGS      "-I../kaffevm -I./../kaffevm -I../../libltdl -I../../kaffe/jvmpi -I../../kaffe/xprof -I../../kaffe/kaffevm/jni -I../../include   ""-I/var/tmp/portage/kaffe-1.1.7-r3/work/kaffe-1.1.7/./kaffe/kaffevm -I/var/tmp/portage/kaffe-1.1.7-r3/work/kaffe-1.1.7/./kaffe/kaffevm/jit3 -I/var/tmp/portage/kaffe-1.1.7-r3/work/kaffe-1.1.7/./kaffe/kaffevm/systems/unix-pthreads -I../../replace -I../../config -I../../include -I../../libraries/javalib/external/classpath/include  -DKAFFE_VMDEBUG -D_REENTRANT"'  >> version-info.hT
echo '#define VER_LDFLAGS       ""'            >> version-info.hT
echo '#define VER_DEFS          "-DHAVE_CONFIG_H"'              >> version-info.hT
echo '#define VER_PREFIX        "/opt/kaffe-1.1.7"'            >> version-info.hT
echo '#define VER_THREAD_SYSTEM "unix-pthreads"'     >> version-info.hT
echo '#define VER_GARBAGE_COLLECTOR "kaffe-gc"'     >> version-info.hT
mv version-info.hT version-info.h
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../config  -I../kaffevm -I./../kaffevm -I../../libltdl -I../../kaffe/jvmpi -I../../kaffe/xprof -I../../kaffe/kaffevm/jni -I../../include    -I/var/tmp/portage/kaffe-1.1.7-r3/work/kaffe-1.1.7/./kaffe/kaffevm -I/var/tmp/portage/kaffe-1.1.7-r3/work/kaffe-1.1.7/./kaffe/kaffevm/jit3 -I/var/tmp/portage/kaffe-1.1.7-r3/work/kaffe-1.1.7/./kaffe/kaffevm/systems/unix-pthreads -I../../replace -I../../config -I../../include -I../../libraries/javalib/external/classpath/include  -DKAFFE_VMDEBUG -D_REENTRANT  -pipe -fno-strict-aliasing -Wall -W -Wextra -pthread -c version.c
/bin/sh ../../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc  -pipe -fno-strict-aliasing -Wall -W -Wextra -pthread   -o kaffe-bin  -export-dynamic main.o version.o -dlopen ../../libraries/clib/native/libjavalang.la -dlopen ../../libraries/clib/net/libjavanet.la -dlopen ../../libraries/clib/io/libjavaio.la -dlopen ../../libraries/clib/nio/libjavanio.la -dlopen ../../libraries/clib/zip/libzip.la -dlopen ../../libraries/clib/management/libmanagement.la -dlopen ../../libraries/clib/security/libsecurity.la    ../../kaffe/kaffevm/libkaffevm.la  ../../replace/libreplace.la
mkdir .libs
rm -f .libs/kaffe-bin.nm .libs/kaffe-bin.nmS .libs/kaffe-bin.nmT
creating .libs/kaffe-binS.c
(cd .libs && i686-pc-linux-gnu-gcc  -pipe -fno-strict-aliasing -Wall -W -Wextra -c -fno-builtin "kaffe-binS.c")
rm -f .libs/kaffe-binS.c .libs/kaffe-bin.nm .libs/kaffe-bin.nmS .libs/kaffe-bin.nmT
i686-pc-linux-gnu-gcc -pipe -fno-strict-aliasing -Wall -W -Wextra -pthread -o .libs/kaffe-bin main.o version.o .libs/kaffe-binS.o -Wl,--export-dynamic  ../../kaffe/kaffevm/.libs/libkaffevm.so -ldl -lm ../../replace/.libs/libreplace.a -Wl,--rpath -Wl,/opt/kaffe-1.1.7/jre/lib/i386
../../kaffe/kaffevm/.libs/libkaffevm.so: undefined reference to `UTFfree'
../../kaffe/kaffevm/.libs/libkaffevm.so: undefined reference to `instantiateSignature'
../../kaffe/kaffevm/.libs/libkaffevm.so: undefined reference to `UTFmalloc'
collect2: ld returned 1 exit status
make[2]: *** [kaffe-bin] Error 1
make[2]: Leaving directory `/var/tmp/portage/kaffe-1.1.7-r3/work/kaffe-1.1.7/kaffe/kaffe'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kaffe-1.1.7-r3/work/kaffe-1.1.7/kaffe'
make: *** [all-recursive] Error 1
Comment 3 Lukas Turek 2006-10-23 11:06:40 UTC
I tried CVS version of Kaffe, and it mostly works. Simple packages like ant-core emerged, OpenOffice not (but I think that's expected), most Java applets work too (in Konqueror).
Comment 4 Alistair Bush (RETIRED) gentoo-dev 2010-03-15 08:20:31 UTC
kaffe is package masked for removal.  closing as wontfix.