Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Blackdown JDK problem on fresh gentoo install
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
istarril
n00b
n00b


Joined: 19 Feb 2004
Posts: 6
Location: Munich, Germany

PostPosted: Thu Feb 19, 2004 9:37 pm    Post subject: Blackdown JDK problem on fresh gentoo install Reply with quote

I have a problem with a recently installed gentoo system:

Everything is works perfectly, except for the blackdown-jdk-1.4.1.
java and javac crash immediatly printing something about an internal error and a long error id (always the same).

Re-emerging did not help; there is only a binary blackdown-jdk ebuild in portage.

This machine is intended as a development server running Apache, PHP, MySQL and tomcat. Everything works fine except for the mentioned jdk.
This is the first time I had problems with blackdown-jdk, my home-system(x86) works fine with same version.

Anyone has any pointers to what could be the problem ? Is there a source ebuild for blackdown-jdk or where can i find the source for it?
Could this be a problem with SMP ? or perhaps with grsecurity options in the kernel ?

The system's specs are:
Sun Ultra 60 with 2x Ultrasparc III 450Mhz
2 GiB Ram
Elite3d Framebuffer (UPA)
9.1GB IBM SCSI-disk
kernel 2.4.23-r1 (not quite sure exactly, typing this from memory)
some security features activated in kernel (nothing to extreme AFAIK)

PS: no working JDK would mean going back to solaris and thats no road I want to take. Gentoo is just so much faster :)
_________________
This is not a signature. Move along. There's nothing to see.
Back to top
View user's profile Send private message
Ferris
Retired Dev
Retired Dev


Joined: 13 Jan 2003
Posts: 426
Location: N. Virginia (USA)

PostPosted: Thu Feb 19, 2004 11:49 pm    Post subject: Reply with quote

I can rule out a couple things for you.

I have just built an experimental version of eclipse (for sparc linux gtk), and
that can't even get off the ground without a working java, javac.

It is using
Code:

ferris@terciopelo:/home1/ECLIPSE [292]% java-config -J -c
/opt/blackdown-jdk-1.4.1/bin/java
/opt/blackdown-jdk-1.4.1/bin/javac


It is on a system that looks like this:
Code:

ferris@terciopelo:/home1/ECLIPSE [293]% uname -a
Linux terciopelo.krait.us 2.4.24-sparc-r1 #1 SMP Tue Jan 27 18:15:19 UTC 2004 sparc64 sun4u TI UltraSparc II  (BlackBird) GNU/Linux


So your problem is probably not the kernel, and it's not SMP. (Although
you should probably upgrade kernel to 2.4.24-r2 like I haven't yet.)

I don't know about Grsecurity one way or the other.

There have been cases in which the java library paths have been messed up. You want the following in /etc/ld.so.conf
Code:

/opt/blackdown-jdk-1.4.1/jre/lib/sparc/
/opt/blackdown-jdk-1.4.1/jre/lib/sparc/native_threads/
/opt/blackdown-jdk-1.4.1/jre/lib/sparc/classic/

which come from the corresponding LDPATH in /etc/env.d/20java. I don't
see why this would cause internal errors, though, even if yours is not set
right.

I would suggest that you 'emerge java-config' if you haven't, and that
you post the long error message here. Someone else should be able to
tell you whether or not the kernel security options are an issue.
Back to top
View user's profile Send private message
istarril
n00b
n00b


Joined: 19 Feb 2004
Posts: 6
Location: Munich, Germany

PostPosted: Fri Feb 20, 2004 10:24 am    Post subject: Reply with quote

ok here goes:

Code:
pfougix root # cat /etc/ld.so.conf
# ld.so.conf autogenerated by env-update; make all changes to
# contents of /etc/env.d directory
/opt/blackdown-jdk-1.4.1/jre/lib/sparc/
/opt/blackdown-jdk-1.4.1/jre/lib/sparc/classic/
/opt/blackdown-jdk-1.4.1/jre/lib/sparc/native_threads/
/usr/X11R6/lib
/usr/kde/3.1/lib
/usr/kde/3.2/lib
/usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.2.3
/usr/lib/opengl/xfree/lib
/usr/local/lib
/usr/qt/3/lib


uname -a says:
Code:
Linux pfougix 2.4.24-sparc-r1 #3 SMP Fri Feb 6 15:11:06 UTC sparc64 sun4u TI UltraSparc II  (BlackBird) GNU/Linux


Code:
pfougix root # java
#
# HotSpot Virtual Machine Error, Internal Error
# Please report this error at
# http://www.blackdown.org/cgi-bin/jdk
#
# Java VM: Java HotSpot(TM) Client VM (Blackdown-1.4.1-01 mixed mode)
#
# Error ID: 5448524541442C4F43414C33544F524147450E4350500023
#
# Problematic Thread:
#
Aborted
pfougix root # javac
#
# HotSpot Virtual Machine Error, Internal Error
# Please report this error at
# http://www.blackdown.org/cgi-bin/jdk
#
# Java VM: Java HotSpot(TM) Client VM (Blackdown-1.4.1-01 mixed mode)
#
# Error ID: 5448524541442C4F43414C33544F524147450E4350500023
#
# Problematic Thread:
#
Aborted


I am going to upgrade to sparc-sources-2.4.24-r2 and build the kernel without any grsecurity options. Perhaps that is the problem.
I'll post my progress.

[edit]
Just started with sparc-sources-2.4.24-r2, compiled with no grsecurity options an now everything works fine. Thanks for the help though :).
[/edit]
_________________
This is not a signature. Move along. There's nothing to see.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum