[Java7] internal error

Problems with packages? Post here, using [tags] of the package name.

[Java7] internal error

Postby marbletravis » Tue Mar 26, 2013 3:21 am

I upgraded to jdk7-openjdk from openjdk6 and ever since I can't get any java applications to run all I get is:

$this->bbcode_second_pass_quote('', '
')# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (os_linux_zero.cpp:285), pid=11258, tid=3061269616
# fatal error: caught unhandled signal 11


I have tried starting with a fresh install and I still get the same issue. Any ideas?
marbletravis
 
Posts: 15
Joined: Thu Feb 21, 2013 4:50 am

Re: [Java7] internal error

Postby xenoxaos » Tue Mar 26, 2013 2:27 pm

Which device/repo are you using?

Does the java version display work?
$this->bbcode_second_pass_code('', 'java -showversion')
Arch Linux ARM exists and continues to grow through community support, please donate today!
xenoxaos
Developer
 
Posts: 323
Joined: Thu Jan 06, 2011 1:45 am

Re: [Java7] internal error

Postby karog » Tue Mar 26, 2013 4:18 pm

On a pogo E02 (up to date Arch but NOT moved to systemd) I have been running a java program successfully under openjdk6. When I upgraded to jdk7-openjdk, it no longer works. Instead it pins the cpu at 100% and I have to Ctrl-C out of it. If I run java with no args it should produce the usage message but it also hangs pinning the cpu. If I do java -version, it shows
$this->bbcode_second_pass_code('', '# java -version
java version "1.7.0_17"
OpenJDK Runtime Environment (IcedTea7 2.3.8) (ArchLinux build 7.u17_2.3.8-1-arm)
OpenJDK Zero VM (build 22.0-b10, mixed mode)
')
and then quits as it should.

I wrote a simple java program whose main only calls System.out.printf("Hello, world!\n"); It never prints the "Hello, world" and again pins the cpu.

I installed jdk7-openjdk on my pogo B01 and here it works. I tried it with the test program and it correctly outputs "Hello, world!". If I run java with no args, it correctly produces the usage info.

To sum up, jdk7-openjdk seems to work on the pogo B01 (V3 armv6) but not on pogo E02 (V2 armv5).
karog
 
Posts: 300
Joined: Thu Jan 05, 2012 7:55 pm

Re: [Java7] internal error

Postby xenoxaos » Tue Mar 26, 2013 5:17 pm

Interesting, the B01 and the E02 both use the same packages... It sounds like it might be an issue with the install on your E02. I would recommend switching to systemd and updating everything.
Arch Linux ARM exists and continues to grow through community support, please donate today!
xenoxaos
Developer
 
Posts: 323
Joined: Thu Jan 06, 2011 1:45 am

Re: [Java7] internal error

Postby karog » Tue Mar 26, 2013 5:22 pm

$this->bbcode_second_pass_quote('xenoxaos', 'I')nteresting, the B01 and the E02 both use the same packages... It sounds like it might be an issue with the install on your E02. I would recommend switching to systemd and updating everything.

Thanks. The main reason I have not switched to systemd is that I also have the B01 and a P21 which cannot be switched to systemd at this time so I have kept the E02 in line with them.

Somewhat recently I rewrote my java program that I care about (an interface to the X10 CM11A) in C which is much better anyway. But there is one capability I have not yet implemented to download macros to the device so I still use the java version for that for now. I cannot run that on the B01 because I have not been able to get the USB serial to work on the V3 pogos. I might as well finish that last capability in C.

Again, thanks.
karog
 
Posts: 300
Joined: Thu Jan 05, 2012 7:55 pm

Re: [Java7] internal error

Postby marbletravis » Tue Mar 26, 2013 11:35 pm

$this->bbcode_second_pass_quote('xenoxaos', 'W')hich device/repo are you using?

Does the java version display work?
$this->bbcode_second_pass_code('', 'java -showversion')


Java show version does work, I am running on an E02 with the latest, systemd + linux-kirkwood.

Any ideas?
marbletravis
 
Posts: 15
Joined: Thu Feb 21, 2013 4:50 am
Top

Re: [Java7] internal error

Postby lumpynose » Wed Mar 27, 2013 12:15 am

Signal 11 is seg fault, which could be from it trying to use more memory than is possible. I'm using java 8 (1.8.0-ea) and when I do "java -help" it shows an option -minimal that selects the minimal VM; you might try that. Then there are the memory options; -Xms, -Xmx, and -Xss. Do a google search; there are many web pages describing people's adventures with those options. (With mine "java -X" shows help for all of the -X options.)
lumpynose
 
Posts: 22
Joined: Fri Mar 22, 2013 3:01 am

Re: [Java7] internal error

Postby marbletravis » Wed Mar 27, 2013 1:55 am

No go with the vm memory options, also a correction.

java -showversion gives:

$this->bbcode_second_pass_code('', ' A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (os_linux_zero.cpp:285), pid=552, tid=3061421168
# fatal error: caught unhandled signal 4
')

java -version gives:
$this->bbcode_second_pass_code('', 'java version "1.7.0_17"
OpenJDK Runtime Environment (IcedTea7 2.3.8) (ArchLinux build 7.u17_2.3.8-1-arm)
OpenJDK Zero VM (build 22.0-b10, mixed mode)
')

Sorry I mixed the two up.
marbletravis
 
Posts: 15
Joined: Thu Feb 21, 2013 4:50 am

Re: [Java7] internal error

Postby lumpynose » Wed Mar 27, 2013 4:42 am

OpenJDK?! Get a real java, get the Oracle java.
lumpynose
 
Posts: 22
Joined: Fri Mar 22, 2013 3:01 am

Re: [Java7] internal error

Postby karog » Sat Mar 30, 2013 4:39 am

$this->bbcode_second_pass_quote('lumpynose', 'O')penJDK?! Get a real java, get the Oracle java.

I took your advice and removed jdk7-openjdk from my pogo E02 and installed ejre1.7.0_10, Oracle Java SE Embedded version 7 Update 10 for ARMv5 Linux - Headless EABI, SoftFP ABI, Little Endian. And it works just fine.
$this->bbcode_second_pass_code('', '# java -version
java version "1.7.0_10"
Java(TM) SE Embedded Runtime Environment (build 1.7.0_10-b18, headless)
Java HotSpot(TM) Embedded Client VM (build 23.6-b04, mixed mode)
')
karog
 
Posts: 300
Joined: Thu Jan 05, 2012 7:55 pm
Top


Return to Packages

Who is online

Users browsing this forum: No registered users and 20 guests