This is Interesting: Free IT Magazines  
Home > Archive > Linux Setup > March 2006 > Mandriva 2006/64b: Why Do my Java/Azureus crash immediately?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Mandriva 2006/64b: Why Do my Java/Azureus crash immediately?
Michael Badt

2006-03-12, 2:46 am

Hi,
I have a stable, fully updated, 64b Mandriva 2006/AMD 64b PC.
Yesterday,I decided to download and install Azureus.
I entered Azureus site and followed the instructions namely:
a. I downloaded and installed (in /usr/java) the latest 64b Java (1.5.0.06)
and varied that it's executable to all the world.
b. I replaced an exiting Java symbolic link (to an older version
in /usr/bin/) with a symbolic link to the new version, also executable by
everbody.
c. I installed azureus, made it world wide executable, and also created a
symbolic link (ww executable) to it from /usr/bin.

AS you can see from the following logs:
a. Trying to run Azureus as a regular user, running the symbolic link,
failed (Java complained about some language problem).
b. Same while running as root.
c. Running azureus as root from the binary itself (not the link) managed to
open azureus. I could even verify, from within azureus, that the required
ports have been open. However, once I tied to open an existing torrent file
on my drive, azureus crashed immediately ( actually, I believe it's the
Java) as you can see from the attached log. The same happened several
times, even after a reboot.
d. As you can see from the last log file, it says that the Java vm has been
created by SUSE (While I'm running Mandriva, although I have also a SUSE on
another partition, but haven't used it for months).Do I have to worry about
it?

My problem: How to get a stable azureus, being run by a regular user?

TIA



Following are the respective logs:

========as regular (miki) user==========

[miki@Atlantis bin]$ ./azureus
Starting Azureus...
Java exec found in PATH. Verifying...
Suitable Java version found [java = 1.5.0_06]
Configuring environment...
Loading Azureus:
java -Xms16m -Xmx128m -cp "/usr/bin/*.jar" -Djava.library.path="/usr/bin"
-Dazureus.install.path="/usr/bin" org.gudy.azureus2.ui.swt.Main ''
Exception in thread "main" java.lang.NoClassDefFoundError:
org/gudy/azureus2/ui/swt/Main
Azureus TERMINATED.


==============same as root=================
[miki@Atlantis bin]$ su
Password:
[root@Atlantis bin]# ./azureus
Starting Azureus...
Java exec found in PATH. Verifying...
Suitable Java version found [java = 1.5.0_06]
Configuring environment...
Loading Azureus:
java -Xms16m -Xmx128m -cp "/usr/bin/*.jar" -Djava.library.path="/usr/bin"
-Dazureus.install.path="/usr/bin" org.gudy.azureus2.ui.swt.Main ''
Exception in thread "main" java.lang.NoClassDefFoundError:
org/gudy/azureus2/ui/swt/Main
Azureus TERMINATED.


==========root running actual code=============


[root@Atlantis bin]# cd /usr/local/src/azureus/
[root@Atlantis azureus]# ./azureus
Starting Azureus...
Java exec found in PATH. Verifying...
Suitable Java version found [java = 1.5.0_06]
Configuring environment...
Loading Azureus:
java -Xms16m -Xmx128m -cp
"/usr/local/src/azureus/Azureus2.jar:/usr/local/src/azureus/swt.jar"
-Djava.library.path="/usr/local/src/azureus"
-Dazureus.install.path="/usr/local/src/azureus"
org.gudy.azureus2.ui.swt.Main ''
changeLocale: no message properties for Locale 'English (United
States)' (en_US), using 'English (default)'
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGSEGV (0xb) at pc=0x00002aaaaae4d270, pid=11373, tid=46912501791488
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_06-b05 mixed mode)
# Problematic frame:
# C [libc.so.6+0x72270] strncmp+0xd0
#
# An error report file with more information is saved as hs_err_pid11373.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
../azureus: line 107: 11373 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.



========part of log file=============
[root@Atlantis azureus]# cat hs_err_pid11373.log
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGSEGV (0xb) at pc=0x00002aaaaae4d270, pid=11373, tid=46912501791488
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_06-b05 mixed mode)
# Problematic frame:
# C [libc.so.6+0x72270] strncmp+0xd0
#

--------------- T H R E A D ---------------

Current thread (0x00000000401157e0): JavaThread "main" [_thread_in_native,
id=11373]

siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0xfffffffffdc2f710

Registers:


snip....
snip....

VM Arguments:
jvm_args: -Xms16m -Xmx128m -Djava.library.path=/usr/local/src/azureus
-Dazureus.install.path=/usr/local/src/azureus
java_command: org.gudy.azureus2.ui.swt.Main
Launcher Type: SUN_STANDARD

Environment Variables:
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin
USERNAME=root
LD_LIBRARY_PATH=/usr/java/jre1.5.0_06/lib/amd64/server:/usr/java/jre1.5.0_06/lib/amd64:/usr/java/jre1.5.0_06/../lib/amd64
SHELL=/bin/bash
DISPLAY=:0.0

Signal Handlers:
SIGSEGV: [libjvm.so+0x64a670], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
SIGBUS: [libjvm.so+0x64a670], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
SIGFPE: [libjvm.so+0x553120], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
SIGPIPE: SIG_IGN, sa_mask[0]=0x00001000, sa_flags=0x14000000
SIGILL: [libjvm.so+0x553120], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR2: [libjvm.so+0x554f10], sa_mask[0]=0x00000800, sa_flags=0x14000000
SIGHUP: [libjvm.so+0x5549e0], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
SIGINT: [libjvm.so+0x5549e0], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
SIGQUIT: [libjvm.so+0x5549e0], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
SIGTERM: [libjvm.so+0x5549e0], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004


--------------- S Y S T E M ---------------

OS:Mandriva Linux release 2006.0 (Official) for x86_64

uname:Linux 2.6.12-12mdksmp #1 SMP Fri Sep 9 17:20:34 CEST 2005 x86_64
libc:glibc 2.3.5 NPTL 2.3.5
rlimit: STACK 8192k, CORE 0k, NPROC 8191, NOFILE 1024, AS infinity
load average:0.26 0.42 0.43

CPU:total 1 amd64 3dnow

Memory: 4k page, physical 1025172k(399612k free), swap 1574360k(1574360k
free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (1.5.0_06-b05) for linux-amd64,
built on Nov 10 2005 11:45:12 by java_re with gcc 3.2.2 (SuSE Linux)

==========end of log file=================


kermit

2006-03-16, 5:48 pm

Michael Badt wrote:

> Hi,
> I have a stable, fully updated, 64b Mandriva 2006/AMD 64b PC.
> Yesterday,I decided to download and install Azureus.
> I entered Azureus site and followed the instructions namely:
> a. I downloaded and installed (in /usr/java) the latest 64b Java
> (1.5.0.06) and varied that it's executable to all the world.


Where have you downloaded it from?

> b. I replaced an exiting Java symbolic link (to an older version
> in /usr/bin/) with a symbolic link to the new version, also executable by
> everbody.
> c. I installed azureus, made it world wide executable, and also created a
> symbolic link (ww executable) to it from /usr/bin.
>


Is it really instruction from Azureus site?


> d. As you can see from the last log file, it says that the Java vm has
> been created by SUSE (While I'm running Mandriva,


So what? *You* downloaded Java so *you* should know where`you have got it
from. It tells where is has been built on, not where it is being run on.

> although I have also a
> SUSE on another partition, but haven't used it for months).Do I have to
> worry about it?
>


Sure. It it has been really built for Suse it may have arbitrary
incompatibilities with Mandriva.

> [miki@Atlantis bin]$ ./azureus
> Starting Azureus...
> Java exec found in PATH. Verifying...
> Suitable Java version found [java = 1.5.0_06]
> Configuring environment...
> Loading Azureus:
> Java -Xms16m -Xmx128m -cp "/usr/bin/*.jar" -Djava.library.path="/usr/bin"
> -Dazureus.install.path="/usr/bin" org.gudy.azureus2.ui.swt.Main ''
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/gudy/azureus2/ui/swt/Main
> Azureus TERMINATED.
>



Azureus assumes classes are in the same location as executable. You should
either edit main azureus script and explicitly point to program location or
instead of symlinking use trivial wrapper, something like

{pts/0}% cat =azureus
#!/bin/sh -f
cd /usr/share/azureus
exec /usr/share/azureus/azureus

> #
> # An unexpected error has been detected by HotSpot Virtual Machine:
> #
> # SIGSEGV (0xb) at pc=0x00002aaaaae4d270, pid=11373, tid=46912501791488
> #
> # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_06-b05 mixed mode)


File a bug report on the same place you have downloaded your Java from. The
first question is - does this Java run _any_ program at all? Second
question - does Azureus support 64 bit?

=arvi=
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2010 webservertalk.com