View previous topic :: View next topic |
Author |
Message |
iainmcgin n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Austin_Powers/Austin_Powers_-_Mustafa.gif)
Joined: 26 Mar 2004 Posts: 14 Location: Glasgow, Scotland
|
Posted: Fri Mar 26, 2004 10:00 pm Post subject: emerge dev-java/ant fails with sun-jdk-1.4.2_04 |
|
|
There appears to be a bug in the javac compiler that is part of sun-jdk-1.4.2_04, which means that when you run "emerge ant" it falls over. I've submitted it to the sun bug parade but they said it could take up to 3 weeks for it to even appear on the bug parade
I tried sun-jdk-1.5.0-beta1 as well, but that gives a different error related to accessing /dev/random (there are other posts that have mentioned this, see https://forums.gentoo.org/viewtopic.php?t=136953
and https://forums.gentoo.org/viewtopic.php?t=140058).
Has anyone else tried to emerge ant recently and found a way to get it to work? Is there an ebuild that can be used just to install ant in binary form instead of compiling the java sources? I don't really see why it needs to be compiled from source, as the JAR files are portable anyway.
Here's the error, to help people find this post if they've got similar problems:
Code: |
#
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002EF
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2_04-b05 mixed mode)
#
# An error report file has been saved as hs_err_pid29651.log.
# Please refer to the file for further information.
#
|
As for the /dev/random access issue with sun-jdk-1.5.0-beta1, has anyone discovered what is going on here? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
BlackDuck n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/104654781640b71eca7145a.jpg)
Joined: 28 Jun 2003 Posts: 67 Location: Canberra.au
|
Posted: Sat Mar 27, 2004 12:21 am Post subject: |
|
|
According to the Gentoo Java Guide http://www.gentoo.org/doc/en/java.xml, not everything will work with jdk 1.4.
One suggestion is to emerge jdk 1.3 and use that for ant.
You can have multiple jvms and switch between them as required. _________________
Join the unanswered post initiative
Dell GX1 PIII 500 512MB Onboard ATI Rage Pro 3D | HP P1120 21" 1600x1200@85Hz
2 HP Vectra VE PIII 500 512MB Onboard Matrox G200 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Voltago Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/5021960813fd4cfeb02cbe.jpg)
Joined: 02 Sep 2003 Posts: 2593 Location: userland
|
Posted: Sat Mar 27, 2004 12:29 am Post subject: |
|
|
Well, ant-1.6.1 compiled just fine for me with sun-jdk-1.4.2_04, got to be something different. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
iainmcgin n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Austin_Powers/Austin_Powers_-_Mustafa.gif)
Joined: 26 Mar 2004 Posts: 14 Location: Glasgow, Scotland
|
Posted: Sat Mar 27, 2004 1:10 am Post subject: |
|
|
Do you know what it could be that is affecting the java compiler? Perhaps glibc or something similar? This is really starting to frustrate me because it's affecting other Java packages also. I'll probably leave my system doing an emerge --update system overnight to see if that helps. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Voltago Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/5021960813fd4cfeb02cbe.jpg)
Joined: 02 Sep 2003 Posts: 2593 Location: userland
|
Posted: Sat Mar 27, 2004 1:41 am Post subject: |
|
|
Could be glibc, since it is the only platform library dependency of java (that i'm aware of). I'm using glibc-2.3.2-r9 with nptl flag turned on, encountered no problems so far. Which version are you using? And does Sun tell against which version they compiled the jdk? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
iainmcgin n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Austin_Powers/Austin_Powers_-_Mustafa.gif)
Joined: 26 Mar 2004 Posts: 14 Location: Glasgow, Scotland
|
Posted: Sat Mar 27, 2004 5:17 pm Post subject: |
|
|
Well even after running emerge --update system and acquiring the latest version of glibc, I am still unable to compile ant. The version of glibc I have a the moment is:
Code: |
* sys-libs/glibc
Latest version available: 2.3.3_pre20040207
Latest version installed: 2.3.3_pre20040207
Size of downloaded files: 15,180 kB
Homepage: http://www.gnu.org/software/libc/libc.html
Description: GNU libc6 (also called glibc2) C library
License: LGPL-2
|
I should probably also note that I have an Athlon XP processor and my build flags are set to:
Code: |
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
|
Does anyone know of any other dependencies that could be affecting the sun javac compiler? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
javac16 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/2768533194421e72c50459.png)
Joined: 10 Aug 2003 Posts: 111
|
Posted: Sat Mar 27, 2004 7:17 pm Post subject: |
|
|
I have been having all sorts of problems with sun-jdk-1.4.2_04 - can't emerge ant, can't run the ant I have installed...this is really becoming a pain. Is your error message like this (when I try to run ant):
Code: |
...
00000000-00000000 r--s 00000000 08:03 312643 /usr/share/ant/lib/ant.jar
00000000-00000000 r--s 00000000 08:03 312644 /usr/share/ant/lib/optional.jar
Heap at VM Abort:
Heap
def new generation total 576K, used 330K [0x4cde0000, 0x4ce80000, 0x4d2c0000)
eden space 512K, 64% used [0x4cde0000, 0x4ce32930, 0x4ce60000)
from space 64K, 0% used [0x4ce60000, 0x4ce60000, 0x4ce70000)
to space 64K, 0% used [0x4ce70000, 0x4ce70000, 0x4ce80000)
tenured generation total 1408K, used 0K [0x4d2c0000, 0x4d420000, 0x50de0000)
the space 1408K, 0% used [0x4d2c0000, 0x4d2c0000, 0x4d2c0200, 0x4d420000)
compacting perm gen total 4096K, used 1143K [0x50de0000, 0x511e0000, 0x54de0000)
the space 4096K, 27% used [0x50de0000, 0x50efdf18, 0x50efe000, 0x511e0000)
Local Time = Sat Mar 27 14:11:59 2004
Elapsed Time = 0
#
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002EF
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2_04-b05 mixed mode)
#
# An error report file has been saved as hs_err_pid4496.log.
# Please refer to the file for further information.
#
/usr/bin/ant: line 89: 4496 Aborted "$JAVACMD" -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" $ANT_OPTS org.apache.tools.ant.Main $ANT_ARGS "$@"
|
This used to work fine, but been having a lot of trouble lately with java. Maybe I will try to downgrade to _03 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
iainmcgin n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Austin_Powers/Austin_Powers_-_Mustafa.gif)
Joined: 26 Mar 2004 Posts: 14 Location: Glasgow, Scotland
|
Posted: Sat Mar 27, 2004 11:22 pm Post subject: |
|
|
Yeah, if you look at the Hotspot virtual machine error and error ID that I gave in the first post, it's the same as yours. So, we both have the same irritating problem. As I mentioned earlier I filed the bug report with Sun but it could take up to three weeks for them to even acknowledge it
If downgrading to 1.4.2_03 works for you, let me know. I was considering doing this also, but I can't find the download on java.sun.com (sun handily remove all old version from the main pages).
Is anyone else experiencing similar problems? If so, post here so we can figure out what makes us different to Voltago who has it working. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cdmstro Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/19373144140bb57b09b486.jpg)
Joined: 26 Apr 2003 Posts: 93
|
Posted: Sat Mar 27, 2004 11:47 pm Post subject: |
|
|
When did you download and install 1.4.2_04? I noticed for several days that there were reports that the 1.4.2_04 bin file had been removed from the Sun website. I assume there was something wrong with the package or they would not have removed it.
I just upgraded to 1.4.2_04-r1 today, and reinstalled the latest ant, and there were no issues. I am however running glibc 2.3.2-r9. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
iainmcgin n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Austin_Powers/Austin_Powers_-_Mustafa.gif)
Joined: 26 Mar 2004 Posts: 14 Location: Glasgow, Scotland
|
Posted: Sun Mar 28, 2004 1:12 am Post subject: |
|
|
I downloaded the JDK again from Sun, and it didn't make any difference; I still get the same JVM error. I'm downgrading my glibc to 2.3.2-r9 just now, once that's compiled I'll see if it works. If it does, should I file a bug report on gentoo to have the 2.3.3 builds masked until this is resolved? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
iainmcgin n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Austin_Powers/Austin_Powers_-_Mustafa.gif)
Joined: 26 Mar 2004 Posts: 14 Location: Glasgow, Scotland
|
Posted: Sun Mar 28, 2004 1:51 am Post subject: |
|
|
glibc 2.3.2-r9 doesn't work either, I still get the same VM crash. What else could it be? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Voltago Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/5021960813fd4cfeb02cbe.jpg)
Joined: 02 Sep 2003 Posts: 2593 Location: userland
|
Posted: Sun Mar 28, 2004 2:02 am Post subject: |
|
|
Is anyone of you (if you are getting this error) using nptl? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
iainmcgin n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Austin_Powers/Austin_Powers_-_Mustafa.gif)
Joined: 26 Mar 2004 Posts: 14 Location: Glasgow, Scotland
|
Posted: Sun Mar 28, 2004 2:26 am Post subject: |
|
|
No, as far as I can tell I'm not using NPTL anywhere, from what I can see of that thread you linked you have to explicitly enable it. Here's the output that /lib/lib.so.6 gives me:
Code: |
GNU C Library stable release version 2.3.2, by Roland McGrath et al.
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.3.3 20040217 (Gentoo Linux 3.3.3, propolice-3.3-7).
Compiled on a Linux 2.4.21 system on 2004-03-28.
Available extensions:
GNU libio by Per Bothner
crypt add-on version 2.1 by Michael Glad and others
linuxthreads-0.10 by Xavier Leroy
BIND-8.2.3-T5B
libthread_db work sponsored by Alpha Processor Inc
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Report bugs using the `glibcbug' script to <bugs@gnu.org>.
|
Not sure why is says compiled on a linux 2.4.21 system, as here's the output I get from uname -a
Code: |
Linux claire 2.4.25-gentoo #5 Mon Mar 22 10:51:44 GMT 2004 i686 AMD Athlon(tm) XP 2000+ AuthenticAMD GNU/Linux
|
I also tried using the Sun 1.4.2_03 JDK, which gives exactly the same error message so it's obviously not a bug which has been introduced by 1.4.2_04. I'm still perplexed as to why the 1.5.0 beta1 JDK does not crash in the same way, instead giving the strange ACCESS DENIED error related to /dev/random. Perhaps 1.5.0 has slightly better error handling and so is showing the real problem, whereas 1.4.2 is simply bailing out when this error occurs? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
iainmcgin n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Austin_Powers/Austin_Powers_-_Mustafa.gif)
Joined: 26 Mar 2004 Posts: 14 Location: Glasgow, Scotland
|
Posted: Sun Mar 28, 2004 1:20 pm Post subject: |
|
|
It appears this problem is related to gentoo-sources-2.4.25 kernel. See bug report 45595 for the details - it's currently been assigned to the x86-kernel team. Voltago, or anyone who has it working, what kernel version do you have? If it is 2.4.25, maybe we should attach our kernel .config files and do a diff to see if it is a particular kernel option? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
iainmcgin n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Austin_Powers/Austin_Powers_-_Mustafa.gif)
Joined: 26 Mar 2004 Posts: 14 Location: Glasgow, Scotland
|
Posted: Sun Mar 28, 2004 2:56 pm Post subject: |
|
|
I've just upgraded my kernel to 2.6.5-rc2, and I was just able to emerge ant without any problems. So the problem is definitely to do with the gentoo-sources-2.4.25 kernel. Still, this was a good excuse to upgrade to a 2.6 kernel ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
des09 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/StarCraft/starcraft_terran_valkyrie.gif)
Joined: 03 Nov 2002 Posts: 49 Location: Utah, home of Orin Hatch and SCO
|
Posted: Sun Mar 28, 2004 6:22 pm Post subject: |
|
|
I have just re-emerged ant 1.5.4 with no problems...
Code: | java version
"1.4.2-gentoo"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-gentoo-1076016765)
Java HotSpot(TM) Client VM (build 1.4.2-gentoo-1076016765, mixed mode)
uname -a
Linux sexton.fergusresearch.com 2.4.25-gentoo #2 SMP Wed Mar 24 08:53:02 MST 2004 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz GenuineIntel GNU/Linux
|
Let me know how I can help track this down. _________________ .sigless since 2002 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
des09 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/StarCraft/starcraft_terran_valkyrie.gif)
Joined: 03 Nov 2002 Posts: 49 Location: Utah, home of Orin Hatch and SCO
|
Posted: Sun Mar 28, 2004 6:30 pm Post subject: |
|
|
ant 1.6.1-r1 emerged successfully too. _________________ .sigless since 2002 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
javac16 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/2768533194421e72c50459.png)
Joined: 10 Aug 2003 Posts: 111
|
Posted: Sun Mar 28, 2004 11:10 pm Post subject: |
|
|
I am running 2.4.24-xfs sources. I backed down to the 1.4.1-01 of Blackdown (because it was on my machine) and didn't have any problems with emerging ant 1.6.1
Guess I will need to upgrade to 2.6 and see if it corrects the problem for me as well.
I downloaded Sun-jdk prior to the removal incident. I redownloaded and it did not fix the problem for me either.
I haven't tried going to the 1_03 sun-jdk yet...I do have the download though. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ScionAltera n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 24 Mar 2004 Posts: 9 Location: Portland, OR
|
Posted: Tue Mar 30, 2004 8:22 pm Post subject: |
|
|
des09 wrote: | I have just re-emerged ant 1.5.4 with no problems...
*snip*
Let me know how I can help track this down. |
Can you post your gentoo-sources 2.4.25 kernel config? Maybe looking at the differences between that and mine (I originally posted bug #45595 btw) will be useful in narrowing the problem down. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
iainmcgin n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Austin_Powers/Austin_Powers_-_Mustafa.gif)
Joined: 26 Mar 2004 Posts: 14 Location: Glasgow, Scotland
|
Posted: Tue Mar 30, 2004 8:47 pm Post subject: |
|
|
I've uploaded my config to my university webspace, you can view it here (i thought it unwise to post my entire config here considering how long it is )
This should hopefully serve as an example of a config that breaks Java. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ScionAltera n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 24 Mar 2004 Posts: 9 Location: Portland, OR
|
Posted: Tue Mar 30, 2004 11:22 pm Post subject: workaround |
|
|
Well, due to a suggestion posted on the bug report I tried recompiling my 2.4.25 kernel without grsec. It appears that my java works just fine without grsec on the gentoo-sources 2.4.25 kernel. This is certainly a feasible workaround on my laptop (on which I am the only user) although not so much for my server, heh
Hope this helps someone else! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
javac16 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/2768533194421e72c50459.png)
Joined: 10 Aug 2003 Posts: 111
|
Posted: Wed Mar 31, 2004 4:43 pm Post subject: |
|
|
To update my troubles:
backing down to the Blackdown 1.4.1 was not as successful as I thought. It seems javac still has problems but more sporatically. I can run ant and java will crash and then run it again and it will work.
I am currently in the midst of getting my file server back up and running and then will upgrade my workstation to 2.6.x
Do people recommend vanilla or gentoo-dev for 2.6.x sources? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
javac16 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/2768533194421e72c50459.png)
Joined: 10 Aug 2003 Posts: 111
|
Posted: Sun Apr 04, 2004 3:23 pm Post subject: |
|
|
Just wanted to update this thread. I upgraded my system to 2.6.3 (gentoo-dev-sources) and "javac" is working, consistently. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
livewire Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
Joined: 03 Mar 2003 Posts: 42
|
Posted: Tue Apr 06, 2004 10:31 pm Post subject: |
|
|
This is from the Gentoo grsecurity maintainer:
You need to chpax/paxctl your java bins.
This kinda falls under a know issue with java*
If your using EI_PAX flags then try chpax -zsp /path/to/java/bin/*
If you compiled with PT_PAX support then try paxctl -sp /path/to/java/bins/*
99% chance this bug can be closed as INVALID |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|