Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sun Java 1.5 & Azureus
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
sesamsys
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jun 2005
Posts: 114
Location: Kobe, Japan

PostPosted: Mon Nov 21, 2005 7:47 am    Post subject: Sun Java 1.5 & Azureus Reply with quote

Guess it's a common problem but as of yet I couldn't find any solution...

This is how my azu runs. Or more precisely doesn't run:
Code:
sesam@lillemor ~ $ /usr/azureus/azureus
Starting Azureus...
Java exec not found in PATH, starting auto-search...
Java exec found in  /usr/java/jre/bin/
Suitable java version found  [/usr/java/jre/bin/java = 1.5.0_05]
Configuring environment...
Loading Azureus:
/usr/java/jre/bin/java -Xms16m -Xmx128m -cp "/usr/azureus/Azureus2-CVS.jar:/usr/azureus/Azureus2.jar:/usr/azureus/commons-cli.jar:/usr/azureus/log4j.jar:/usr/azureus/swt.jar:/usr/azureus/swt-mozilla.jar:/usr/azureus/swt-pi.jar" -Djava.library.path="/usr/azureus" -Dazureus.install.path="/usr/azureus" org.gudy.azureus2.ui.swt.Main ''
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0x00002aaaaaec64d0, pid=21422, tid=16384
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_05-b05 mixed mode)
# Problematic frame:
# C  [libc.so.6+0x6b4d0]  index+0x10
#
# An error report file with more information is saved as /tmp/hs_err_pid21422.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
/usr/azureus/azureus: line 107: 21422 Aborted                 ${JAVA_PROGRAM_DIR}java -Xms16m -Xmx128m -cp "${CLASSPATH}" -Djava.library.path="${PROGRAM_DIR}" -Dazureus.install.path="${PROGRAM_DIR}" org.gudy.azureus2.ui.swt.Main "$@"
Azureus TERMINATED.

It starts up, loads stuff, opens the main window then in a couple of seconds it just closes.
_________________
SeSam.hu - Kansai Edition
Linux lillemor 2.6.23-gentoo-r6 #1 SMP Mon Jan 28 08:41:19 JST 2008 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ AuthenticAMD GNU/Linux
Back to top
View user's profile Send private message
NTT
Apprentice
Apprentice


Joined: 26 Dec 2002
Posts: 188

PostPosted: Mon Nov 21, 2005 8:54 am    Post subject: Reply with quote

Probable a bug in the 64 bit java VM, try using the 32 bit VM until this is resolved by Sun I guess..
Back to top
View user's profile Send private message
nigelhannam
n00b
n00b


Joined: 21 Feb 2003
Posts: 70

PostPosted: Mon Nov 21, 2005 9:23 am    Post subject: Reply with quote

I have been running azureus-bin with Sun 64 bit jdk 1.5 for some time without any issues.

[ebuild R ] sys-libs/glibc-2.3.5-r2
[ebuild R ] net-p2p/azureus-bin-2.3.0.4
[ebuild RF ] dev-java/sun-jdk-1.5.0.05

This would tend to suggest that it is not a generic 64 bit vm problem.

Are you using an unstable glibc or some exotic CFLAGS?
Back to top
View user's profile Send private message
NTT
Apprentice
Apprentice


Joined: 26 Dec 2002
Posts: 188

PostPosted: Mon Nov 21, 2005 9:31 am    Post subject: Reply with quote

That and,

Quote:

# An error report file with more information is saved as /tmp/hs_err_pid21422.log

Have you looked at that file, as stated in the error message? Did it tell you anything more? Maybe you could post any relevant info out of that file here for us to look at.
Back to top
View user's profile Send private message
sesamsys
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jun 2005
Posts: 114
Location: Kobe, Japan

PostPosted: Mon Nov 21, 2005 1:24 pm    Post subject: Reply with quote

Thanks for the replies. :)

I don't think I am using anything exotic in CFLAGS or so. Here is my emerge -info:
Code:
 emerge --info
Portage 2.0.51.22-r2 (default-linux/amd64/2005.1, gcc-3.4.3, glibc-2.3.5-r0, 2.6.13-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.13-gentoo-r5 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.UTF-8"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aalib alsa audiofile avi berkdb bitmap-fonts bzip2 cdr cjk crypt cups curl directfb dts dvd dvdr eds emboss encode esd exif expat fam foomaticdb fortran gd ggi gif glut gnome gpm gstreamer gtk gtk2 hal idn imlib immqt-bc ipv6 jack jpeg kde lcms lzw lzw-tiff mng mp3 mpeg nas ncurses nls ogg opengl pam pcre pdflib perl png python qt quicktime readline sdl spell sse3 ssl tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales vorbis xml2 xpm xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY


Moreover I was using the Java package from the sun site (64bit version) and tried all available Azureus verisons from the Azureus site. No emerging and compiling involved. You suggest I should try and unflag Azureus and emerge it?

As for the logfile it consists a bunch of register dumps. Really I am not into programming, I have absoultely no idea if those register dumps are important...
_________________
SeSam.hu - Kansai Edition
Linux lillemor 2.6.23-gentoo-r6 #1 SMP Mon Jan 28 08:41:19 JST 2008 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ AuthenticAMD GNU/Linux
Back to top
View user's profile Send private message
NTT
Apprentice
Apprentice


Joined: 26 Dec 2002
Posts: 188

PostPosted: Mon Nov 21, 2005 3:07 pm    Post subject: Reply with quote

I'd still suspect the VM, as also it seems te be running in server mode for some reason.

Something else, have you ever considered using NPTL? Its much faster threading, and maybe (just a gamble) could solve problems?
http://gentoo-wiki.com/NPTL
Back to top
View user's profile Send private message
incabolocabus
Apprentice
Apprentice


Joined: 24 Nov 2003
Posts: 232
Location: Fort Collins, CO

PostPosted: Mon Nov 21, 2005 5:41 pm    Post subject: Reply with quote

Quote:
I'd still suspect the VM, as also it seems te be running in server mode for some reason.


Suns amd64 jdks (as of now) only support the server VM.
If you have a i586 build, on 1.5 an onward and your machine is a "server-class" machine, then the server VM
is automatically enabled (override with -client flag)
Prefer client VM for standard desktop/interactive apps.

From 1.5 release notes:
Quote:
Note: For J2SE 5.0, the definition of a server-class machine is one with at least 2 CPUs and at least 2GB of physical memory.

_________________
1970s Sears Hawthorne, green, 3 gears, front and rear fenders, rear dual basket rack, overclocked to 1.3 hz.
Back to top
View user's profile Send private message
nigelhannam
n00b
n00b


Joined: 21 Feb 2003
Posts: 70

PostPosted: Mon Nov 21, 2005 8:05 pm    Post subject: Reply with quote

Hhmmm. Can't see anything obvious in you config. I notice you have a dual core processor - thats one thing different to my setup, but I don't know if it could be causing the problem.

sesamsys wrote:

Moreover I was using the Java package from the sun site (64bit version) and tried all available Azureus verisons from the Azureus site. No emerging and compiling involved. You suggest I should try and unflag Azureus and emerge it?


net-p2p/azureus-bin is already marked stable in portage for amd64, but sun-jdk 1.5 is still masked.

Both packages are installed on my system from portage and work fine, so it may be worth a try
Back to top
View user's profile Send private message
Paco255
n00b
n00b


Joined: 22 Nov 2005
Posts: 2

PostPosted: Tue Nov 22, 2005 4:55 am    Post subject: Reply with quote

Looks like it might be the same problem I had with azureus a while back. It would crash and give an error message like that every time it would start to transfer. I went back to using 1.4.2 for a while.

The CVS version of azureus does not appear to have this problem so far. So you could try that or maybe just 1.4.2 until the next version of azureus is out.
Back to top
View user's profile Send private message
sesamsys
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jun 2005
Posts: 114
Location: Kobe, Japan

PostPosted: Wed Nov 23, 2005 7:10 am    Post subject: Reply with quote

Ok, now I am getting mad.

I uncommented both java JRE and JDK to check them out (actually they don't do much else than the manual install, but nevertheless, wanted to be proper). I tried the emerged azureus-bin and the Azureus CVS on both the JRE and JDK and they all gave the exact same stupid error message. And you are right, it occurs when it starts to download the autoupdate right after it has been loaded...

So no azureus so far. :evil:
_________________
SeSam.hu - Kansai Edition
Linux lillemor 2.6.23-gentoo-r6 #1 SMP Mon Jan 28 08:41:19 JST 2008 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ AuthenticAMD GNU/Linux
Back to top
View user's profile Send private message
sesamsys
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jun 2005
Posts: 114
Location: Kobe, Japan

PostPosted: Wed Nov 23, 2005 7:23 am    Post subject: Reply with quote

Well, gave up on Sun and emerged Blackdown. Which may be uncool, slow and by all means bad but it does work unlike Sun's...

Although I got nice red messages during emerge:
Code:
 * Found no JDK, setting blackdown-jre-1.4.2.02 as default system VM
javac not found at /opt/blackdown-jre-1.4.2.02/bin/javac or /opt/blackdown-jre-1.4.2.02/jre/bin/javac
javadoc not found at /opt/blackdown-jre-1.4.2.02/bin/javadoc or /opt/blackdown-jre-1.4.2.02/jre/bin/javadoc
jar not found at /opt/blackdown-jre-1.4.2.02/bin/jar or /opt/blackdown-jre-1.4.2.02/jre/bin/jar
rmic not found at /opt/blackdown-jre-1.4.2.02/bin/rmic or /opt/blackdown-jre-1.4.2.02/jre/bin/rmic
THIS SYSTEM VM IS NOT SUFFICIENT, REQUIRED BINARIES WERE NOT FOUND
System Virtual Machine set


But Azureus runs happily.
_________________
SeSam.hu - Kansai Edition
Linux lillemor 2.6.23-gentoo-r6 #1 SMP Mon Jan 28 08:41:19 JST 2008 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ AuthenticAMD GNU/Linux
Back to top
View user's profile Send private message
fserafin
Tux's lil' helper
Tux's lil' helper


Joined: 02 Oct 2005
Posts: 126
Location: Winnipeg, Canada

PostPosted: Thu Nov 24, 2005 6:02 am    Post subject: Reply with quote

i had the same problems as you did where azureus dies when starting up with sun jre1.5.0

this is what i did i downloaded jre1.5.0 that's the amd64 version

$mv jre-1_5_0-linux-amd64.bin /opt
$cd /opt
$chmod a+x jre-1_5_0-linux-amd65.bin
$./jre-1_5_0-linux-amd65.bin
after that i downloaded azureus latest version 2.3.0.6 that the amd64 version
the i opened and edited the azureus shell scripts for starting and re-starting azureus and
added suns java to use other than the env java because i use blackdown java for web browsing

i'll post the two files you need here in a rar called azureus

ftp://fubar.ca/azureus.rar

will keep them there for a few week for who ever needs them after that if you need the just email me
Back to top
View user's profile Send private message
eNTi
Veteran
Veteran


Joined: 20 Oct 2002
Posts: 1011
Location: Salzburg, Austria

PostPosted: Mon Nov 28, 2005 8:41 am    Post subject: Reply with quote

is there a way to configure the used java version in ~/.Azureus/gentoo.config without modifying /usr/bin/azureus? i'd like that, because my default jre is blackdown, as sun-jdk is not even "said" to be stable, not to speak of marked stable, while sun's jre seems fine. another question arises there: is it "healthy" to compile azureus with blackdown-jdk and then run it with sun-jre? i don't want to run into forseeable crashes, wondering what's wrong, while it's quite obvious.
_________________
If you fall off a cliff, you might as well try to fly. After all, you got nothing to lose.

-- John Sheridan - Babylon 5, Season 4
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 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