Error compiling example code for HSAIL generation

Mozumder, Monir Monir.Mozumder at amd.com
Fri Nov 8 14:17:00 PST 2013


I am trying to compile an example code from this page:  http://www.tuicool.com/articles/eEFRR3?jdfwkey=d741l1


~/dev/sumatra/test$ cat IntSquaredTest.java

package com.oracle.graal.compiler.hsail.test;
import org.junit.Test;
import java.util.logging.*;

public class IntSquaredTest extends StaticMethodTwoIntArrays {
  public static void run(int[] out, int[] in, int gid) {
    out[gid] = in[gid] * in[gid];
  }

  @Test
  public void test() {
    super.testGeneratedHsail();
  }

}

I see errors when trying to do the compilation step:  mx --vm server unittest hsail.test.IntSquaredTest.


~/dev/sumatra/test$ mx --vm server unittest hsail.test.IntSquaredTest
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (graalJavaAccess.cpp:42), pid=12108, tid=140148517222144
#  fatal error: Invalid layout of registerRefMap at com.oracle.graal.api.code.DebugInfo
#
# JRE version: Java(TM) SE Runtime Environment (8.0-b112) (build 1.8.0-ea-b112)
# Java VM: OpenJDK 64-Bit Server VM (25.0-b53-internal mixed mode linux-amd64 compressed oops)
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/munir/dev/sumatra/test/hs_err_pid12108.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#


See below for my setup details. I am also providing some snippets from hs_err_pid12108.log .  Any ideas?

Bests,
-Monir




~/dev/sumatra/test$ which javac
/home/munir/dev/sumatra/simulator/build_linux/grail/profuct/bin/javac
~/dev/sumatra/test$ java -version
java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b112)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b54, mixed mode)



============================== excerpts from hs_err_pid12108.log

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (graalJavaAccess.cpp:42), pid=12108, tid=140148517222144
#  fatal error: Invalid layout of registerRefMap at com.oracle.graal.api.code.DebugInfo
#
# JRE version: Java(TM) SE Runtime Environment (8.0-b112) (build 1.8.0-ea-b112)
# Java VM: OpenJDK 64-Bit Server VM (25.0-b53-internal mixed mode linux-amd64 compressed oops)
# 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:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

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

Current thread (0x00007f76d800d800):  JavaThread "main" [_thread_in_native, id=12109, stack(0x00007f76de85b000,0x00007f76de95c000)]

Stack: [0x00007f76de85b000,0x00007f76de95c000],  sp=0x00007f76de95a860,  free space=1022k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x96f8b6]  VMError::report_and_die()+0x166
V  [libjvm.so+0x46c773]  report_fatal(char const*, int, char const*)+0x53
V  [libjvm.so+0x555439]  compute_offset(int&, Klass*, char const*, char const*, bool)+0x2e9
V  [libjvm.so+0x555f13]  graal_compute_offsets()+0xa93
V  [libjvm.so+0x5461b6]  GraalCompiler::initialize()+0x436
V  [libjvm.so+0x5f65ee]  JNI_CreateJavaVM+0xde
C  [libjli.so+0x703e]  JavaMain+0x9e


---------------  P R O C E S S  ---------------



~
~
~


More information about the graal-dev mailing list