contiki-os / contiki

The official git repository for Contiki, the open source OS for the Internet of Things
http://www.contiki-os.org/
Other
3.71k stars 2.58k forks source link

JRE Fatal Error in Cooja Simulator #1033

Open ghost opened 9 years ago

ghost commented 9 years ago

When using Cooja motes in the Cooja simulator (latest build of Contiki OS, Java version 1.7.0_75) all example code crashes.

 [java]  INFO [Thread-8] (Simulation.java:252) - Simulation main loop started, system time: 1429611772270
 [java] #
 [java] # A fatal error has been detected by the Java Runtime Environment:
 [java] #
 [java] #  SIGSEGV (0xb) at pc=0x00007fd7fa95db55, pid=20606, tid=140564524693248
 [java] #
 [java] # JRE version: OpenJDK Runtime Environment (7.0_75-b13) (build 1.7.0_75-b13)
 [java] # Java VM: OpenJDK 64-Bit Server VM (24.75-b04 mixed mode linux-amd64 compressed oops)
 [java] # Derivative: IcedTea 2.5.4
 [java] # Distribution: Ubuntu 14.10, package 7u75-2.5.4-1~utopic1
 [java] # Problematic frame:
 [java] # V  [libjvm.so+0x88bb55]  SharedRuntime::compute_compiled_exc_handler(nmethod*, unsigned char*, Handle&, bool, bool)+0xd5
 [java] #
 [java] # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
 [java] #
 [java] # An error report file with more information is saved as:
 [java] # /.../ContikiOS/tools/cooja/build/hs_err_pid20606.log
 [java] #
 [java] # If you would like to submit a bug report, please include
 [java] # instructions on how to reproduce the bug and visit:
 [java] #   http://icedtea.classpath.org/bugzilla
 [java] #
 [java] Java Result: 134

Could this be a bug in the Cooja simuator or the JVM?

cmorty commented 9 years ago

Hard to say. It's not an Cooja-Problem, because the JVM should make sure things don't break, but throw an exception. Lately I also had some problems with the JIT. You can give java -Xint a try. Might es well be a bug in Contiki(!). Unfortunately I'm not familiar enough with JNI to say how well stuff is sandboxed.