JDK-8140492 : vm/memory/allocation.cpp: assert(~(_allocation_t[0] | allocation_mask) != (uintptr_t)this || !is_type_set()) failed: embedded or stack only
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 9
  • Priority: P1
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2015-10-26
  • Updated: 2015-10-26
  • Resolved: 2015-10-26
Related Reports
Duplicate :  
Description
JDK9 b89 VM PIT
Many tests crash on linux-x64 with:

# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/opt/jprt/T/P1/232912.amurillo/s/hotspot/src/share/vm/memory/allocation.cpp:179), pid=21640, tid=21647
#  assert(~(_allocation_t[0] | allocation_mask) != (uintptr_t)this || !is_type_set()) failed: embedded or stack only, this(0x00007f0f4177baf0) type 0 a[0]=(0xffff80f0be88450f) a[1]=(0x00007f0f4177bb00)
#
# JRE version: Java(TM) SE Runtime Environment (9.0) (build 1.9.0-internal-fastdebug-20151022232912.amurillo.jdk9-hs-2015-10--b00)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.9.0-internal-fastdebug-20151022232912.amurillo.jdk9-hs-2015-10--b00, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Core dump will be written. Default location: Core dumps may be processed with "/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t e" (or dumping to /scratch/local/aurora/sandbox/results/workDir/java/lang/Math/IeeeRecommendedTests/core.21640)
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#

---------------  S U M M A R Y ------------

Command Line: -Dapplication.home=/scratch/local/aurora/CommonData/jdk -Xms8m -Dtest.src=/scratch/local/aurora/CommonData/j2se_jdk/jdk/test/java/lang/Math -Dtest.src.path=/scratch/local/aurora/CommonData/j2se_jdk/jdk/test/java/lang/Math:/scratch/local/aurora/CommonData/j2se_jdk/jdk/test/lib/testlibrary -Dtest.classes=/scratch/local/aurora/sandbox/results/workDir/classes/java/lang/Math -Dtest.class.path=/scratch/local/aurora/sandbox/results/workDir/classes/java/lang/Math:/scratch/local/aurora/sandbox/results/workDir/classes/lib/testlibrary -Dtest.vm.opts=-d64 -Dtest.tool.vm.opts=-J-d64 -Dtest.compiler.opts= -Dtest.java.opts=-Xmixed -d64 -server -Xmixed -Dtest.jdk=/export/local/aurora/CommonData/jdk -Dcompile.jdk=/export/local/aurora/CommonData/jdk -Dtest.timeout.factor=3.0 -Dtest.nativepath=/export/local/aurora/sandbox/JTREG_NATIVEPATH_LIBRARY_PREPARED com.sun.tools.javac.Main -d /scratch/local/aurora/sandbox/results/workDir/classes/java/lang/Math -classpath /scratch/local/aurora/CommonData/jtreg_dir/lib/javatest.jar:/scratch/local/aurora/CommonData/jtreg_dir/lib/jtreg.jar:/scratch/local/aurora/sandbox/results/workDir/classes/java/lang/Math:/scratch/local/aurora/CommonData/j2se_jdk/jdk/test/java/lang/Math:/scratch/local/aurora/sandbox/results/workDir/classes/lib/testlibrary -sourcepath /scratch/local/aurora/CommonData/j2se_jdk/jdk/test/java/lang/Math:/scratch/local/aurora/CommonData/j2se_jdk/jdk/test/lib/testlibrary -XDignore.symbol.file=true /scratch/local/aurora/CommonData/j2se_jdk/jdk/test/java/lang/Math/IeeeRecommendedTests.java

Host: slcak740, Intel(R) Xeon(R) CPU E5-2690 0 @ 2.90GHz, 32 cores, 252G, Oracle Linux Server release 6.3
Time: Fri Oct 23 17:49:35 2015 UTC elapsed time: 2 seconds (0d 0h 0m 2s)

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

Current thread (0x00007f0f3c017000):  JavaThread "main" [_thread_in_vm, id=21647, stack(0x00007f0f41680000,0x00007f0f41781000)]

Stack: [0x00007f0f41680000,0x00007f0f41781000],  sp=0x00007f0f4177b7d0,  free space=1005k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x130fd95]  VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x155
V  [libjvm.so+0x1310a7f]  VMError::report_and_die(Thread*, char const*, int, char const*, char const*, __va_list_tag*)+0x2f
V  [libjvm.so+0x8b5ddf]  report_vm_error(char const*, int, char const*, char const*, ...)+0xcf
V  [libjvm.so+0x4d26ef]  ResourceObj::ResourceObj(ResourceObj const&)+0xcf
V  [libjvm.so+0x1148694]  Rewriter::make_constant_pool_cache(Thread*)+0xb4
V  [libjvm.so+0x114f782]  Rewriter::Rewriter(instanceKlassHandle, constantPoolHandle, Array<Method*>*, Thread*)+0x3d2
V  [libjvm.so+0x1150b5d]  Rewriter::rewrite(instanceKlassHandle, Thread*)+0x13d
V  [libjvm.so+0xb57f43]  InstanceKlass::rewrite_class(Thread*)+0xa3
V  [libjvm.so+0xb5e323]  InstanceKlass::link_class_impl(instanceKlassHandle, bool, Thread*)+0x5b3
V  [libjvm.so+0xb5dec5]  InstanceKlass::link_class_impl(instanceKlassHandle, bool, Thread*)+0x155
V  [libjvm.so+0xb5dec5]  InstanceKlass::link_class_impl(instanceKlassHandle, bool, Thread*)+0x155
V  [libjvm.so+0xb624e1]  InstanceKlass::initialize_impl(instanceKlassHandle, Thread*)+0xf1
V  [libjvm.so+0xb62611]  InstanceKlass::initialize(Thread*)+0xf1
V  [libjvm.so+0xe1beaa]  LinkResolver::resolve_static_call(CallInfo&, LinkInfo const&, bool, Thread*)+0x2ca
V  [libjvm.so+0xe2249f]  LinkResolver::resolve_invoke(CallInfo&, Handle, constantPoolHandle, int, Bytecodes::Code, Thread*)+0x49f
V  [libjvm.so+0xb80e4a]  InterpreterRuntime::resolve_invoke(JavaThread*, Bytecodes::Code)+0x24a
V  [libjvm.so+0xb8c0cb]  InterpreterRuntime::resolve_from_cache(JavaThread*, Bytecodes::Code)+0xfb
j  sun.reflect.generics.parser.SignatureParser.parsePackageNameAndSimpleClassTypeSignature()Lsun/reflect/generics/tree/SimpleClassTypeSignature;+98
j  sun.reflect.generics.parser.SignatureParser.parseClassTypeSignature()Lsun/reflect/generics/tree/ClassTypeSignature;+54
j  sun.reflect.generics.parser.SignatureParser.parseClassSignature()Lsun/reflect/generics/tree/ClassSignature;+26
j  sun.reflect.generics.parser.SignatureParser.parseClassSig(Ljava/lang/String;)Lsun/reflect/generics/tree/ClassSignature;+9
j  sun.reflect.generics.repository.ClassRepository.parse(Ljava/lang/String;)Lsun/reflect/generics/tree/ClassSignature;+4
j  sun.reflect.generics.repository.ClassRepository.parse(Ljava/lang/String;)Lsun/reflect/generics/tree/Tree;+2
j  sun.reflect.generics.repository.AbstractRepository.<init>(Ljava/lang/String;Lsun/reflect/generics/factory/GenericsFactory;)V+7
j  sun.reflect.generics.repository.GenericDeclRepository.<init>(Ljava/lang/String;Lsun/reflect/generics/factory/GenericsFactory;)V+3
j  sun.reflect.generics.repository.ClassRepository.<init>(Ljava/lang/String;Lsun/reflect/generics/factory/GenericsFactory;)V+3
j  sun.reflect.generics.repository.ClassRepository.make(Ljava/lang/String;Lsun/reflect/generics/factory/GenericsFactory;)Lsun/reflect/generics/repository/ClassRepository;+6
j  sun.reflect.generics.repository.ClassRepository.<clinit>()V+3
v  ~StubRoutines::call_stub
V  [libjvm.so+0xbaab23]  JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*)+0x1db3
V  [libjvm.so+0xb618e9]  InstanceKlass::call_class_initializer_impl(instanceKlassHandle, Thread*)+0xe9
V  [libjvm.so+0xb61b0a]  InstanceKlass::call_class_initializer(Thread*)+0x7a
V  [libjvm.so+0xb61d51]  InstanceKlass::initialize_impl(instanceKlassHandle, Thread*) [clone .part.154]+0x231
V  [libjvm.so+0xb6250b]  InstanceKlass::initialize_impl(instanceKlassHandle, Thread*)+0x11b
V  [libjvm.so+0xb62611]  InstanceKlass::initialize(Thread*)+0xf1
V  [libjvm.so+0xe1beaa]  LinkResolver::resolve_static_call(CallInfo&, LinkInfo const&, bool, Thread*)+0x2ca
V  [libjvm.so+0xe2249f]  LinkResolver::resolve_invoke(CallInfo&, Handle, constantPoolHandle, int, Bytecodes::Code, Thread*)+0x49f
V  [libjvm.so+0xb80e4a]  InterpreterRuntime::resolve_invoke(JavaThread*, Bytecodes::Code)+0x24a
V  [libjvm.so+0xb8c0cb]  InterpreterRuntime::resolve_from_cache(JavaThread*, Bytecodes::Code)+0xfb
j  java.lang.Class.getGenericInfo()Lsun/reflect/generics/repository/ClassRepository;+30
j  java.lang.Class.getGenericInterfaces()[Ljava/lang/reflect/Type;+1
j  java.util.HashMap.comparableClassFor(Ljava/lang/Object;)Ljava/lang/Class;+21
j  java.util.HashMap$TreeNode.treeify([Ljava/util/HashMap$Node;)V+110
j  java.util.HashMap.treeifyBin([Ljava/util/HashMap$Node;I)V+106
j  java.util.HashMap.putVal(ILjava/lang/Object;Ljava/lang/Object;ZZ)Ljava/lang/Object;+169
J 986 C2 java.util.HashMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; (13 bytes) @ 0x00007f0f30b83320 [0x00007f0f30b83280+0x00000000000000a0]
j  com.sun.tools.javac.jvm.Pool.put(Ljava/lang/Object;)I+81
j  com.sun.tools.javac.jvm.Items$ImmediateItem.ldc()V+11
j  com.sun.tools.javac.jvm.Items$ImmediateItem.load()Lcom/sun/tools/javac/jvm/Items$Item;+148
j  com.sun.tools.javac.jvm.Gen.completeBinop(Lcom/sun/tools/javac/tree/JCTree;Lcom/sun/tools/javac/tree/JCTree;Lcom/sun/tools/javac/code/Symbol$OperatorSymbol;)Lcom/sun/tools/javac/jvm/Items$Item;+165
j  com.sun.tools.javac.jvm.Gen.visitBinary(Lcom/sun/tools/javac/tree/JCTree$JCBinary;)V+296
J 1895 C1 com.sun.tools.javac.tree.JCTree$JCBinary.accept(Lcom/sun/tools/javac/tree/JCTree$Visitor;)V (6 bytes) @ 0x00007f0f29d810bc [0x00007f0f29d80fa0+0x000000000000011c]
j  com.sun.tools.javac.jvm.Gen.genExpr(Lcom/sun/tools/javac/tree/JCTree;Lcom/sun/tools/javac/code/Type;)Lcom/sun/tools/javac/jvm/Items$Item;+70
j  com.sun.tools.javac.jvm.Gen.visitParens(Lcom/sun/tools/javac/tree/JCTree$JCParens;)V+13
J 2005 C1 com.sun.tools.javac.tree.JCTree$JCParens.accept(Lcom/sun/tools/javac/tree/JCTree$Visitor;)V (6 bytes) @ 0x00007f0f29e1d6bc [0x00007f0f29e1d5a0+0x000000000000011c]
j  com.sun.tools.javac.jvm.Gen.genExpr(Lcom/sun/tools/javac/tree/JCTree;Lcom/sun/tools/javac/code/Type;)Lcom/sun/tools/javac/jvm/Items$Item;+70
j  com.sun.tools.javac.jvm.Gen.completeBinop(Lcom/sun/tools/javac/tree/JCTree;Lcom/sun/tools/javac/tree/JCTree;Lcom/sun/tools/javac/code/Symbol$OperatorSymbol;)Lcom/sun/tools/javac/jvm/Items$Item;+162
j  com.sun.tools.javac.jvm.Gen.visitBinary(Lcom/sun/tools/javac/tree/JCTree$JCBinary;)V+296
J 1895 C1 com.sun.tools.javac.tree.JCTree$JCBinary.accept(Lcom/sun/tools/javac/tree/JCTree$Visitor;)V (6 bytes) @ 0x00007f0f29d810bc [0x00007f0f29d80fa0+0x000000000000011c]
j  com.sun.tools.javac.jvm.Gen.genExpr(Lcom/sun/tools/javac/tree/JCTree;Lcom/sun/tools/javac/code/Type;)Lcom/sun/tools/javac/jvm/Items$Item;+70
j  com.sun.tools.javac.jvm.Gen.genArgs(Lcom/sun/tools/javac/util/List;Lcom/sun/tools/javac/util/List;)V+24
j  com.sun.tools.javac.jvm.Gen.visitApply(Lcom/sun/tools/javac/tree/JCTree$JCMethodInvocation;)V+48
J 1856 C1 com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(Lcom/sun/tools/javac/tree/JCTree$Visitor;)V (6 bytes) @ 0x00007f0f29d666bc [0x00007f0f29d665a0+0x000000000000011c]
j  com.sun.tools.javac.jvm.Gen.genExpr(Lcom/sun/tools/javac/tree/JCTree;Lcom/sun/tools/javac/code/Type;)Lcom/sun/tools/javac/jvm/Items$Item;+70
j  com.sun.tools.javac.jvm.Gen.visitAssign(Lcom/sun/tools/javac/tree/JCTree$JCAssign;)V+28
j  com.sun.tools.javac.tree.JCTree$JCAssign.accept(Lcom/sun/tools/javac/tree/JCTree$Visitor;)V+2
j  com.sun.tools.javac.jvm.Gen.genExpr(Lcom/sun/tools/javac/tree/JCTree;Lcom/sun/tools/javac/code/Type;)Lcom/sun/tools/javac/jvm/Items$Item;+70
j  com.sun.tools.javac.jvm.Gen.visitExec(Lcom/sun/tools/javac/tree/JCTree$JCExpressionStatement;)V+79
J 1959 C1 com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(Lcom/sun/tools/javac/tree/JCTree$Visitor;)V (6 bytes) @ 0x00007f0f29dabcbc [0x00007f0f29dabba0+0x000000000000011c]
j  com.sun.tools.javac.jvm.Gen.genDef(Lcom/sun/tools/javac/tree/JCTree;Lcom/sun/tools/javac/comp/Env;)V+12
j  com.sun.tools.javac.jvm.Gen.genStat(Lcom/sun/tools/javac/tree/JCTree;Lcom/sun/tools/javac/comp/Env;)V+24
j  com.sun.tools.javac.jvm.Gen.genStat(Lcom/sun/tools/javac/tree/JCTree;Lcom/sun/tools/javac/comp/Env;I)V+10
j  com.sun.tools.javac.jvm.Gen.genStats(Lcom/sun/tools/javac/util/List;Lcom/sun/tools/javac/comp/Env;)V+19
j  com.sun.tools.javac.jvm.Gen.visitBlock(Lcom/sun/tools/javac/tree/JCTree$JCBlock;)V+30
J 1990 C1 com.sun.tools.javac.tree.JCTree$JCBlock.accept(Lcom/sun/tools/javac/tree/JCTree$Visitor;)V (6 bytes) @ 0x00007f0f29df153c [0x00007f0f29df1420+0x000000000000011c]
j  com.sun.tools.javac.jvm.Gen.genDef(Lcom/sun/tools/javac/tree/JCTree;Lcom/sun/tools/javac/comp/Env;)V+12
j  com.sun.tools.javac.jvm.Gen.genStat(Lcom/sun/tools/javac/tree/JCTree;Lcom/sun/tools/javac/comp/Env;)V+24
j  com.sun.tools.javac.jvm.Gen.genStat(Lcom/sun/tools/javac/tree/JCTree;Lcom/sun/tools/javac/comp/Env;I)V+10
j  com.sun.tools.javac.jvm.Gen.genLoop(Lcom/sun/tools/javac/tree/JCTree$JCStatement;Lcom/sun/tools/javac/tree/JCTree$JCStatement;Lcom/sun/tools/javac/tree/JCTree$JCExpression;Lcom/sun/tools/javac/util/List;Z)V+98
j  com.sun.tools.javac.jvm.Gen.visitForLoop(Lcom/sun/tools/javac/tree/JCTree$JCForLoop;)V+35
J 2031 C1 com.sun.tools.javac.tree.JCTree$JCForLoop.accept(Lcom/sun/tools/javac/tree/JCTree$Visitor;)V (6 bytes) @ 0x00007f0f29e1e0bc [0x00007f0f29e1dfa0+0x000000000000011c]
j  com.sun.tools.javac.jvm.Gen.genDef(Lcom/sun/tools/javac/tree/JCTree;Lcom/sun/tools/javac/comp/Env;)V+12
j  com.sun.tools.javac.jvm.Gen.genStat(Lcom/sun/tools/javac/tree/JCTree;Lcom/sun/tools/javac/comp/Env;)V+24
j  com.sun.tools.javac.jvm.Gen.genStat(Lcom/sun/tools/javac/tree/JCTree;Lcom/sun/tools/javac/comp/Env;I)V+10
j  com.sun.tools.javac.jvm.Gen.genStats(Lcom/sun/tools/javac/util/List;Lcom/sun/tools/javac/comp/Env;)V+19
j  com.sun.tools.javac.jvm.Gen.visitBlock(Lcom/sun/tools/javac/tree/JCTree$JCBlock;)V+30
J 1990 C1 com.sun.tools.javac.tree.JCTree$JCBlock.accept(Lcom/sun/tools/javac/tree/JCTree$Visitor;)V (6 bytes) @ 0x00007f0f29df153c [0x00007f0f29df1420+0x000000000000011c]
j  com.sun.tools.javac.jvm.Gen.genDef(Lcom/sun/tools/javac/tree/JCTree;Lcom/sun/tools/javac/comp/Env;)V+12
j  com.sun.tools.javac.jvm.Gen.genStat(Lcom/sun/tools/javac/tree/JCTree;Lcom/sun/tools/javac/comp/Env;)V+24
j  com.sun.tools.javac.jvm.Gen.genStat(Lcom/sun/tools/javac/tree/JCTree;Lcom/sun/tools/javac/comp/Env;I)V+10
j  com.sun.tools.javac.jvm.Gen.genLoop(Lcom/sun/tools/javac/tree/JCTree$JCStatement;Lcom/sun/tools/javac/tree/JCTree$JCStatement;Lcom/sun/tools/javac/tree/JCTree$JCExpression;Lcom/sun/tools/javac/util/List;Z)V+98
j  com.sun.tools.javac.jvm.Gen.visitForLoop(Lcom/sun/tools/javac/tree/JCTree$JCForLoop;)V+35
J 2031 C1 com.sun.tools.javac.tree.JCTree$JCForLoop.accept(Lcom/sun/tools/javac/tree/JCTree$Visitor;)V (6 bytes) @ 0x00007f0f29e1e0bc [0x00007f0f29e1dfa0+0x000000000000011c]
j  com.sun.tools.javac.jvm.Gen.genDef(Lcom/sun/tools/javac/tree/JCTree;Lcom/sun/tools/javac/comp/Env;)V+12
j  com.sun.tools.javac.jvm.Gen.genStat(Lcom/sun/tools/javac/tree/JCTree;Lcom/sun/tools/javac/comp/Env;)V+24
j  com.sun.tools.javac.jvm.Gen.genStat(Lcom/sun/tools/javac/tree/JCTree;Lcom/sun/tools/javac/comp/Env;I)V+10
j  com.sun.tools.javac.jvm.Gen.genStats(Lcom/sun/tools/javac/util/List;Lcom/sun/tools/javac/comp/Env;)V+19
j  com.sun.tools.javac.jvm.Gen.visitBlock(Lcom/sun/tools/javac/tree/JCTree$JCBlock;)V+30
J 1990 C1 com.sun.tools.javac.tree.JCTree$JCBlock.accept(Lcom/sun/tools/javac/tree/JCTree$Visitor;)V (6 bytes) @ 0x00007f0f29df153c [0x00007f0f29df1420+0x000000000000011c]
j  com.sun.tools.javac.jvm.Gen.genDef(Lcom/sun/tools/javac/tree/JCTree;Lcom/sun/tools/javac/comp/Env;)V+12
...<more frames>...

Comments
Looks like a regression caused by https://bugs.openjdk.java.net/browse/JDK-8139040
26-10-2015