HardwareSimulator.sh on Ubuntu 16.04 SIGSEGV

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

HardwareSimulator.sh on Ubuntu 16.04 SIGSEGV

SteveGreen
Hi there!

My name is Steve, from Canberra, Australia.

Just started this course today. Looks great so far. However, I can't get the HardwareSimulator to fire up. Gives the following error:

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fa073755009, pid=14178, tid=14179
#
# JRE version: OpenJDK Runtime Environment (9.0) (build 9-internal+0-2016-04-14-195246.buildd.src)
# Java VM: OpenJDK 64-Bit Server VM (9-internal+0-2016-04-14-195246.buildd.src, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C  [libjava.so+0x1d009]  JNU_GetEnv+0x19
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %P" (or dumping to /home/steve/Coursera/nand2tetris/tools/core.14178)
#
# An error report file with more information is saved as:
# /home/steve/Coursera/nand2tetris/tools/hs_err_pid14178.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

My java version is:

steve@chuthulu:~/Coursera/nand2tetris/tools$ java -version
openjdk version "9-internal"
OpenJDK Runtime Environment (build 9-internal+0-2016-04-14-195246.buildd.src)
OpenJDK 64-Bit Server VM (build 9-internal+0-2016-04-14-195246.buildd.src, mixed mode)

Help - very stuck right now!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: HardwareSimulator.sh on Ubuntu 16.04 SIGSEGV

ivant
Java 9 isn't released yet. The one included in Ubuntu is a preview. Please try with Java 7 or 8.

I'm using Oracle JDK 8 on Ubuntu 16.04 (64 bit) and it works fine. It should work with OpenJDK as well, but if you want to use Oracle's I highly recommend this article. It is a bit old, but the PPA is regularly updated.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: HardwareSimulator.sh on Ubuntu 16.04 SIGSEGV

SteveGreen
Thanks dude! You're a life saver. I did end up getting it working in Windows 7 inside of VirtualBox, but I'd much rather run it on the host OS, Ubuntu.

Woo Hoo ... now to build those gates!

Steve

On 21/06/16 17:17, ivant [via Nand2Tetris Questions and Answers Forum] wrote:
Java 9 isn't released yet. The one included in Ubuntu is a preview. Please try with Java 7 or 8.

I'm using Oracle JDK 8 on Ubuntu 16.04 (64 bit) and it works fine. It should work with OpenJDK as well, but if you want to use Oracle's I highly recommend this article. It is a bit old, but the PPA is regularly updated.


To unsubscribe from HardwareSimulator.sh on Ubuntu 16.04 SIGSEGV, click here.
NAML

Loading...