fatal error running on openJDK

889 views
Skip to first unread message

dao

unread,
Jan 8, 2012, 9:53:36 AM1/8/12
to play-fr...@googlegroups.com
hello, 

I get this error when running my play application on my new ubuntu server (I am in prod mode). what is it all about?

hodac@sd-34910:~/bin/flightwatching$ uname -a
Linux sd-34910 2.6.38-8-server #42-Ubuntu SMP Mon Apr 11 03:49:04 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux


hodac@sd-34910:~/bin/flightwatching$ sudo ../play-1.2.4/play run .[sudo] password for hodac: 
~        _            _ 
~  _ __ | | __ _ _  _| |
~ | '_ \| |/ _' | || |_|
~ |  __/|_|\____|\__ (_)
~ |_|            |__/   
~
~ play! 1.2.4, http://www.playframework.org
~ framework ID is prod
~
~ Ctrl+C to stop
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f029c3f8438, pid=41584, tid=139649072981760
#
# JRE version: 6.0_22-b22
# Java VM: OpenJDK 64-Bit Server VM (20.0-b11 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea6 1.10.4
# Distribution: Ubuntu 11.04, package 6b22-1.10.4-0ubuntu1~11.04.1
# Problematic frame:
# V  [libjvm.so+0x5ec438]  PhaseIdealLoop::build_loop_late_post(Node*)+0x158
#
# An error report file with more information is saved as:
# /home/hodac/bin/flightwatching/hs_err_pid41584.log
#
# If you would like to submit a bug report, please include
# instructions how to reproduce the bug and visit:
#   https://bugs.launchpad.net/ubuntu/+source/openjdk-6/
#

Abdmob

unread,
Jan 8, 2012, 10:02:07 AM1/8/12
to play-fr...@googlegroups.com
Try with Sun JDK instead OpenJDK.

dao

unread,
Jan 8, 2012, 10:47:59 AM1/8/12
to play-fr...@googlegroups.com
it works fine with sunJDK.

here is my installation notes:

remove openJDK:
sudo apt-get remove openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib 
add those lines to the end of /etc/apt/sources.list
deb http://archive.canonical.com/ubuntu natty partner
deb-src http://archive.canonical.com/ubuntu natty partner
natty is the version of ubuntu
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-jdk
add this to .bashrc
export JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.26"

Abdmob

unread,
Jan 8, 2012, 10:54:38 AM1/8/12
to play-fr...@googlegroups.com
Yes, sometimes it happens with OpenJDK. There are many software which are not working with OpenJDK properly :/

Thiago Lima

unread,
Jan 24, 2012, 6:57:30 AM1/24/12
to play-fr...@googlegroups.com
I'm have almost the same problem, but I'm already using Sun JDK. I can't uninstall OpenJDK, like dao, coz I'm running play on the AWS AMI Linux, which has like 7 other packages depending on OpenJDK.

The server fails after short time, usually something around 5 mins of running.

Some notes:
  • Running on DEV mode
  • Using CRUD, Secure, Route and FbGraph modules

The log:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f51be3d5294, pid=1114, tid=139988805539584
#
# JRE version: 7.0_02-b13
# Java VM: Java HotSpot(TM) 64-Bit Server VM (22.0-b10 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V  [libjvm.so+0x646294]  PhaseIdealLoop::build_loop_late_post(Node*)+0x154
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
#

Could someone help me, please?

Thiago Lima

unread,
Jan 24, 2012, 6:58:15 AM1/24/12
to play-fr...@googlegroups.com
One more thing: my Play version is 1.2.4

Abdmob

unread,
Jan 24, 2012, 7:06:18 AM1/24/12
to play-fr...@googlegroups.com
Look at  http://hg.openjdk.java.net/jdk7u/jdk7u/hotspot/rev/c8d8e124380c .
There are some changes in Java 7 for your crash point. 
Maybe you can try it with JDK6? Or maybe with the latest build of JDK 7?

Donovan Muller

unread,
Jan 24, 2012, 7:22:34 AM1/24/12
to play-fr...@googlegroups.com
I've been getting the exact same error since moving to JDK7.

I'm on 1.2.4 and have tried with OpenJDK and Sun JDK, both crash.
Only happens in DEV mode when editing java classes (controllers, models, etc.)
After saving the class, the JVM crashes.

Anybody know how to fix this or know what to disable on JVM to allow hot loading to function properly?
I've basically lost one of the great things about Play, just being able to hit refresh after code changes... :(

--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/jtTaCdhb2-YJ.

To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.

Thiago Lima

unread,
Jan 24, 2012, 7:50:20 AM1/24/12
to play-fr...@googlegroups.com
Abdmob, this is what I have here:

$ /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java -version
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.10) (amazon-52.1.9.10.40.amzn1-x86_64)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)

$ /usr/java/jdk1.7.0_02/bin/java -version
java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) 64-Bit Server VM (build 22.0-b10, mixed mode)

As you could see from my log, I'm actually using the Oracle java version, which is the buggy one. I tried the OpenJDK 1.6, having the same issue. Are you suggesting that I should fallback to OpenJDK, trying to update it to 1.7? This version is not on AMI repositories, so I'll need a manual install, just like I did with the Oracle one. Btw, I only installed Oracle Java hoping that it would work, since the OpenJDK failed.

Thanks for helping,

Thiago

Alvaro Carrasco

unread,
Jan 24, 2012, 2:26:24 PM1/24/12
to play-fr...@googlegroups.com
Just for reference, I've been getting regular JVM crashes for a while now using OpenJDK and HotSpot (6 and 7, 32-bit and 64-bit) on my 64-bit fedora machine. They seemed to happen on DEV mode when modifications where made and loaded on a running application.

Finally I discovered that the combination that caused the crashes for me was using eclipse (scala ide plugin) and play (1.2.4) on the project at the same time. 

I stopped using eclipse (which sucks, i really like using eclipse) and I don't get the crashes anymore.

Alvaro

scott clasen

unread,
Jan 24, 2012, 3:16:33 PM1/24/12
to play-fr...@googlegroups.com
OpenJDK 7 u4 b06 and later fixes this issue (this is an unreleased version so far). I have a build if you would like to test. You can ping me at scott at heroku dot com.

Donovan Muller

unread,
Jan 24, 2012, 4:52:17 PM1/24/12
to play-fr...@googlegroups.com
Thanks Scott!

This build seems to be working. After editing classes the JVM no longer crashes.
It did crash once (after modifying application.conf) with:

PhaseIdealLoop::build_loop_late_post(Node*)+0x158

but otherwise seems to be ok.
Any idea when the next version of OpenJDK will be released?

On 24 January 2012 22:16, scott clasen <scott....@gmail.com> wrote:
OpenJDK 7 u4 b06 and later fixes this issue (this is an unreleased version so far). I have a build if you would like to test. You can ping me at scott at heroku dot com.

--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/akvnjOCOQAwJ.

scott clasen

unread,
Jan 24, 2012, 7:14:31 PM1/24/12
to play-fr...@googlegroups.com
Hey Donovan, great to hear it worked. 

Im afraid I'm not in the loop WRT openjdk release timelines. 

There have been several more tagged builds in u4 since b06, but judging by previous releases we would probably get to the high teens-low 20s in build number before a release.

Donovan Muller

unread,
Jan 26, 2012, 5:12:27 PM1/26/12
to play-fr...@googlegroups.com
Hi guys,

I've been using this build (http://jdk7.java.net/download.html) of OpenJDK 7 for a few days and have had very few crashes. 
So maybe give it a try and see if it helps...

Cheers

--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/ZwZJ2wk3kk4J.
Reply all
Reply to author
Forward
0 new messages