JDK-8169477 : Crash on Internal Error (safepoint.cpp:310)
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 7u131,8
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: os_x
  • CPU: generic
  • Submitted: 2016-11-08
  • Updated: 2018-02-27
  • Resolved: 2017-05-02
Related Reports
Duplicate :  
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.8.0_92"
Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Mac OS Sierra 10.12.1

A DESCRIPTION OF THE PROBLEM :
Is it possible that for

int i;
int j;

the following is true

		  if( ( (i == j) && ((double)i != (double)j )) )

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
restart the program

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Show whether
   (double)
applied to ints is one-to-one

ERROR MESSAGES/STACK TRACES THAT OCCUR :
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (safepoint.cpp:310), pid=4411, tid=0x0000000000003503
#  guarantee(PageArmed == 0) failed: invariant
#
# JRE version: Java(TM) SE Runtime Environment (8.0_92-b14) (build 1.8.0_92-b14)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.92-b14 mixed mode bsd-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.java.com/bugreport/crash.jsp
#

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

Current thread (0x00007ffeb0837800):  VMThread [stack: 0x000070000e809000,0x000070000e909000] [id=13571]

Stack: [0x000070000e809000,0x000070000e909000],  sp=0x000070000e908910,  free space=1022k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.dylib+0x5a9f6a]  VMError::report_and_die()+0x3f8
V  [libjvm.dylib+0x1e77b7]  report_vm_error(char const*, int, char const*, char const*)+0x54
V  [libjvm.dylib+0x4dc9f0]  SafepointSynchronize::begin()+0x2be
V  [libjvm.dylib+0x5b04fd]  VMThread::loop()+0x319
V  [libjvm.dylib+0x5afe2b]  VMThread::run()+0x79
V  [libjvm.dylib+0x485bbe]  java_start(Thread*)+0xf6
C  [libsystem_pthread.dylib+0x3aab]  _pthread_body+0xb4
C  [libsystem_pthread.dylib+0x39f7]  _pthread_body+0x0
C  [libsystem_pthread.dylib+0x3221]  thread_start+0xd

VM_Operation (0x00007ffeafd25500): EnableBiasedLocking, mode: async safepoint, requested by thread 0x00007ffeb186d000


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

Java Threads: ( => current thread )
  0x00007ffeb0840800 JavaThread "Service Thread" daemon [_thread_blocked, id=21251, stack(0x000070000f021000,0x000070000f121000)]
  0x00007ffeb184a000 JavaThread "C1 CompilerThread3" daemon [_thread_blocked, id=20739, stack(0x000070000ef1e000,0x000070000f01e000)]
  0x00007ffeb1823000 JavaThread "C2 CompilerThread2" daemon [_thread_blocked, id=20227, stack(0x000070000ee1b000,0x000070000ef1b000)]
  0x00007ffeb2030800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=19715, stack(0x000070000ed18000,0x000070000ee18000)]
  0x00007ffeb0840000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=19203, stack(0x000070000ec15000,0x000070000ed15000)]
  0x00007ffeb0813000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=18691, stack(0x000070000eb12000,0x000070000ec12000)]
  0x00007ffeb2028800 JavaThread "Finalizer" daemon [_thread_blocked, id=14595, stack(0x000070000ea0f000,0x000070000eb0f000)]
  0x00007ffeb2026000 JavaThread "Reference Handler" daemon [_thread_blocked, id=14083, stack(0x000070000e90c000,0x000070000ea0c000)]
  0x00007ffeb1801800 JavaThread "main" [_thread_in_Java, id=7171, stack(0x000070000deee000,0x000070000dfee000)]

Other Threads:
=>0x00007ffeb0837800 VMThread [stack: 0x000070000e809000,0x000070000e909000] [id=13571]
  0x00007ffeb186d000 WatcherThread [stack: 0x000070000f124000,0x000070000f224000] [id=21763]

VM state:synchronizing (normal execution)

VM Mutex/Monitor currently owned by a thread:  ([mutex/lock_event])
[0x00007ffeafd03010] Safepoint_lock - owner thread: 0x00007ffeb0837800
[0x00007ffeafd03090] Threads_lock - owner thread: 0x00007ffeb0837800

Heap:
 PSYoungGen      total 76288K, used 2621K [0x000000076ab00000, 0x0000000770000000, 0x00000007c0000000)
  eden space 65536K, 4% used [0x000000076ab00000,0x000000076ad8f5e8,0x000000076eb00000)
  from space 10752K, 0% used [0x000000076f580000,0x000000076f580000,0x0000000770000000)
  to   space 10752K, 0% used [0x000000076eb00000,0x000000076eb00000,0x000000076f580000)
 ParOldGen       total 175104K, used 0K [0x00000006c0000000, 0x00000006cab00000, 0x000000076ab00000)
  object space 175104K, 0% used [0x00000006c0000000,0x00000006c0000000,0x00000006cab00000)
 Metaspace       used 2615K, capacity 4486K, committed 4864K, reserved 1056768K
  class space    used 285K, capacity 386K, committed 512K, reserved 1048576K

Card table byte_map: [0x000000010cf57000,0x000000010d758000] byte_map_base: 0x0000000109957000

Marking Bits: (ParMarkBitMap*) 0x000000010c4e8bd0
 Begin Bits: [0x000000010dcae000, 0x0000000111cae000)
 End Bits:   [0x0000000111cae000, 0x0000000115cae000)

Polling page: 0x000000010ab0a000

CodeCache: size=245760Kb used=1117Kb max_used=1128Kb free=244642Kb
 bounds [0x0000000119de9000, 0x000000011a059000, 0x0000000128de9000]
 total_blobs=250 nmethods=20 adapters=145
 compilation: enabled

Compilation events (10 events):
Event: 0.089 Thread 0x00007ffeb184a000   16 %     3       M::main @ 12 (209 bytes)
Event: 0.090 Thread 0x00007ffeb184a000 nmethod 16% 0x0000000119ef8510 code [0x0000000119ef88c0, 0x0000000119efa2c8]
Event: 0.090 Thread 0x00007ffeb184a000   17       3       M::main (209 bytes)
Event: 0.091 Thread 0x00007ffeb184a000 nmethod 17 0x0000000119efadd0 code [0x0000000119efb180, 0x0000000119efcb48]
Event: 0.091 Thread 0x00007ffeb0840000   18 %     4       M::main @ 12 (209 bytes)
Event: 0.093 Thread 0x00007ffeb0840000 nmethod 18% 0x0000000119f00450 code [0x0000000119f005a0, 0x0000000119f00798]
Event: 0.793 Thread 0x00007ffeb184a000   19 %     3       M::main @ 12 (209 bytes)
Event: 0.794 Thread 0x00007ffeb184a000 nmethod 19% 0x0000000119efdb90 code [0x0000000119efdf40, 0x0000000119eff948]
Event: 0.794 Thread 0x00007ffeb2030800   20 %     4       M::main @ 12 (209 bytes)
Event: 0.796 Thread 0x00007ffeb2030800 nmethod 20% 0x0000000119efd650 code [0x0000000119efd7a0, 0x0000000119efda18]

GC Heap History (0 events):
No events

Deoptimization events (1 events):
Event: 0.793 Thread 0x00007ffeb1801800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x0000000119f00738 method=M.main([Ljava/lang/String;)V @ 15

Internal exceptions (2 events):
Event: 0.032 Thread 0x00007ffeb1801800 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.defineClass(Ljava/lang/String;[BII)Ljava/lang/Class; name or signature does not match> (0x000000076ab07cc0) thrown at [/Users/java_re/workspace/8-2-build-macosx-x86_64/jdk8u92/6642/hotspot
Event: 0.032 Thread 0x00007ffeb1801800 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.prefetchRead(Ljava/lang/Object;J)V name or signature does not match> (0x000000076ab07fa8) thrown at [/Users/java_re/workspace/8-2-build-macosx-x86_64/jdk8u92/6642/hotspot/src/share/vm/prim

Events (10 events):
Event: 0.088 loading class java/lang/Void
Event: 0.088 loading class java/lang/Void done
Event: 0.093 Thread 0x00007ffeb1801800 DEOPT PACKING pc=0x0000000119ef9d3d sp=0x000070000dfed880
Event: 0.093 Thread 0x00007ffeb1801800 DEOPT UNPACKING pc=0x0000000119e30633 sp=0x000070000dfed638 mode 0
Event: 0.793 Thread 0x00007ffeb1801800 Uncommon trap: trap_request=0xffffff65 fr.pc=0x0000000119f00738
Event: 0.793 Thread 0x00007ffeb1801800 DEOPT PACKING pc=0x0000000119f00738 sp=0x000070000dfed910
Event: 0.793 Thread 0x00007ffeb1801800 DEOPT UNPACKING pc=0x0000000119dee229 sp=0x000070000dfed8b8 mode 2
Event: 0.796 Thread 0x00007ffeb1801800 DEOPT PACKING pc=0x0000000119eff3bd sp=0x000070000dfed880
Event: 0.796 Thread 0x00007ffeb1801800 DEOPT UNPACKING pc=0x0000000119e30633 sp=0x000070000dfed638 mode 0
Event: 4.110 Executing VM operation: EnableBiasedLocking


Dynamic libraries:
0x0000000034066000 	/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
0x0000000034066000 	/System/Library/Frameworks/Security.framework/Versions/A/Security
0x0000000034066000 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
0x0000000034066000 	/usr/lib/libz.1.dylib
0x0000000034066000 	/usr/lib/libSystem.B.dylib
0x0000000034066000 	/usr/lib/libobjc.A.dylib
0x0000000034066000 	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x0000000034066000 	/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x0000000034066000 	/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x0000000034066000 	/System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
0x0000000034066000 	/System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices
0x0000000034066000 	/System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation
0x0000000034066000 	/usr/lib/libenergytrace.dylib
0x0000000034066000 	/System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/SkyLight
0x0000000034066000 	/System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x0000000034066000 	/usr/lib/libScreenReader.dylib
0x0000000034066000 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x0000000034066000 	/System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
0x0000000034066000 	/System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x0000000034066000 	/System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x0000000034066000 	/System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore
0x0000000034066000 	/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x0000000034066000 	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x0000000034066000 	/usr/lib/libicucore.A.dylib
0x0000000034066000 	/System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x0000000034066000 	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
0x0000000034066000 	/usr/lib/libauto.dylib
0x0000000034066000 	/usr/lib/libxml2.2.dylib
0x0000000034066000 	/System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
0x0000000034066000 	/System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x0000000034066000 	/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x0000000034066000 	/usr/lib/liblangid.dylib
0x0000000034066000 	/System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport
0x0000000034066000 	/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x0000000034066000 	/usr/lib/libDiagnosticMessagesClient.dylib
0x0000000034066000 	/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x0000000034066000 	/System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis
0x0000000034066000 	/System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage
0x0000000034066000 	/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
0x0000000034066000 	/System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage
0x0000000034066000 	/System/Library/Frameworks/CoreText.framework/Versions/A/CoreText
0x0000000034066000 	/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
0x0000000034066000 	/System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup
0x0000000034066000 	/usr/lib/libarchive.2.dylib
0x0000000034066000 	/System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x0000000034066000 	/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x0000000034066000 	/usr/lib/libCRFSuite.dylib
0x0000000034066000 	/usr/lib/libc++.1.dylib
0x0000000034066000 	/usr/lib/libc++abi.dylib
0x0000000034066000 	/usr/lib/system/libcache.dylib
0x0000000034066000 	/usr/lib/system/libcommonCrypto.dylib
0x0000000034066000 	/usr/lib/system/libcompiler_rt.dylib
0x0000000034066000 	/usr/lib/system/libcopyfile.dylib
0x0000000034066000 	/usr/lib/system/libcorecrypto.dylib
0x0000000034066000 	/usr/lib/system/libdispatch.dylib
0x0000000034066000 	/usr/lib/system/libdyld.dylib
0x0000000034066000 	/usr/lib/system/libkeymgr.dylib
0x0000000034066000 	/usr/lib/system/liblaunch.dylib
0x0000000034066000 	/usr/lib/system/libmacho.dylib
0x0000000034066000 	/usr/lib/system/libquarantine.dylib
0x0000000034066000 	/usr/lib/system/libremovefile.dylib
0x0000000034066000 	/usr/lib/system/libsystem_asl.dylib
0x0000000034066000 	/usr/lib/system/libsystem_blocks.dylib
0x0000000034066000 	/usr/lib/system/libsystem_c.dylib
0x0000000034066000 	/usr/lib/system/libsystem_configuration.dylib
0x0000000034066000 	/usr/lib/system/libsystem_coreservices.dylib
0x0000000034066000 	/usr/lib/system/libsystem_coretls.dylib
0x0000000034066000 	/usr/lib/system/libsystem_dnssd.dylib
0x0000000034066000 	/usr/lib/system/libsystem_info.dylib
0x0000000034066000 	/usr/lib/system/libsystem_kernel.dylib
0x0000000034066000 	/usr/lib/system/libsystem_m.dylib
0x0000000034066000 	/usr/lib/system/libsystem_malloc.dylib
0x0000000034066000 	/usr/lib/system/libsystem_network.dylib
0x0000000034066000 	/usr/lib/system/libsystem_networkextension.dylib
0x0000000034066000 	/usr/lib/system/libsystem_notify.dylib
0x0000000034066000 	/usr/lib/system/libsystem_platform.dylib
0x0000000034066000 	/usr/lib/system/libsystem_pthread.dylib
0x0000000034066000 	/usr/lib/system/libsystem_sandbox.dylib
0x0000000034066000 	/usr/lib/system/libsystem_secinit.dylib
0x0000000034066000 	/usr/lib/system/libsystem_symptoms.dylib
0x0000000034066000 	/usr/lib/system/libsystem_trace.dylib
0x0000000034066000 	/usr/lib/system/libunwind.dylib
0x0000000034066000 	/usr/lib/system/libxpc.dylib
0x0000000034066000 	/usr/lib/libbsm.0.dylib
0x0000000034066000 	/usr/lib/system/libkxld.dylib
0x0000000034066000 	/usr/lib/libcoretls.dylib
0x0000000034066000 	/usr/lib/libcoretls_cfhelpers.dylib
0x0000000034066000 	/usr/lib/libxar.1.dylib
0x0000000034066000 	/usr/lib/libsqlite3.dylib
0x0000000034066000 	/usr/lib/libpam.2.dylib
0x0000000034066000 	/usr/lib/libOpenScriptingUtil.dylib
0x0000000034066000 	/usr/lib/libbz2.1.0.dylib
0x0000000034066000 	/usr/lib/liblzma.5.dylib
0x0000000034066000 	/usr/lib/libnetwork.dylib
0x0000000034066000 	/usr/lib/libpcap.A.dylib
0x0000000034066000 	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents
0x0000000034066000 	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x0000000034066000 	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x0000000034066000 	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x0000000034066000 	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x0000000034066000 	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x0000000034066000 	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x0000000034066000 	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
0x0000000034066000 	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList
0x0000000034066000 	/System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
0x0000000034066000 	/System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth
0x0000000034066000 	/System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport
0x0000000034066000 	/System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
0x0000000034066000 	/usr/lib/libmecabra.dylib
0x0000000034066000 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x0000000034066000 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x0000000034066000 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x0000000034066000 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x0000000034066000 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x0000000034066000 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x0000000034066000 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x0000000034066000 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x0000000034066000 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
0x0000000034066000 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x0000000034066000 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBNNS.dylib
0x0000000034066000 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libQuadrature.dylib
0x0000000034066000 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x0000000034066000 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x0000000034066000 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x0000000034066000 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib
0x0000000034066000 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib
0x0000000034066000 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib
0x0000000034066000 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib
0x0000000034066000 	/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x0000000034066000 	/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x0000000034066000 	/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
0x0000000034066000 	/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x0000000034066000 	/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
0x0000000034066000 	/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
0x0000000034066000 	/usr/lib/libcompression.dylib
0x0000000034066000 	/System/Library/PrivateFrameworks/AppleJPEG.framework/Versions/A/AppleJPEG
0x0000000034066000 	/usr/lib/libcups.2.dylib
0x0000000034066000 	/System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
0x0000000034066000 	/System/Library/Frameworks/GSS.framework/Versions/A/GSS
0x0000000034066000 	/usr/lib/libresolv.9.dylib
0x0000000034066000 	/usr/lib/libiconv.2.dylib
0x0000000034066000 	/System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal
0x0000000034066000 	/usr/lib/libheimdal-asn1.dylib
0x0000000034066000 	/System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
0x0000000034066000 	/System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth
0x0000000034066000 	/System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
0x0000000034066000 	/System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
0x0000000034066000 	/System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling
0x0000000034066000 	/usr/lib/libmarisa.dylib
0x0000000034066000 	/usr/lib/libChineseTokenizer.dylib
0x0000000034066000 	/usr/lib/libcmph.dylib
0x0000000034066000 	/System/Library/PrivateFrameworks/CoreEmoji.framework/Versions/A/CoreEmoji
0x0000000034066000 	/System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement
0x0000000034066000 	/usr/lib/libxslt.1.dylib
0x0000000034066000 	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
0x0000000034066000 	/System/Library/PrivateFrameworks/TextureIO.framework/Versions/A/TextureIO
0x0000000034066000 	/System/Library/Frameworks/Metal.framework/Versions/A/Metal
0x0000000034066000 	/usr/lib/libate.dylib
0x0000000034066000 	/System/Library/PrivateFrameworks/GPUCompiler.framework/libmetal_timestamp.dylib
0x0000000034066000 	/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreFSCache.dylib
0x0000000034066000 	/System/Library/PrivateFrameworks/IOAccelerator.framework/Versions/A/IOAccelerator
0x0000000034066000 	/System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
0x0000000034066000 	/usr/lib/libFosl_dynamic.dylib
0x0000000034066000 	/System/Library/PrivateFrameworks/MetalPerformanceShaders.framework/Versions/A/MetalPerformanceShaders
0x0000000034066000 	/System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore
0x0000000034066000 	/System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
0x0000000034066000 	/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x0000000034066000 	/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib
0x0000000034066000 	/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x0000000034066000 	/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
0x0000000034066000 	/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib
0x0000000034066000 	/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib
0x0000000034066000 	/System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport
0x0000000034066000 	/System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing
0x0000000034066000 	/System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices
0x0000000034066000 	/System/Library/PrivateFrameworks/ProtocolBuffer.framework/Versions/A/ProtocolBuffer
0x0000000034066000 	/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211
0x0000000034066000 	/System/Library/Frameworks/CoreWLAN.framework/Versions/A/CoreWLAN
0x0000000034066000 	/System/Library/PrivateFrameworks/CoreUtils.framework/Versions/A/CoreUtils
0x0000000034066000 	/System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth
0x0000000034066000 	/System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFi
0x0000000034066000 	/System/Library/Frameworks/CoreBluetooth.framework/Versions/A/CoreBluetooth
0x0000000034066000 	/System/Library/Frameworks/CoreDisplay.framework/Versions/A/CoreDisplay
0x0000000034066000 	/System/Library/PrivateFrameworks/IOPresentment.framework/Versions/A/IOPresentment
0x0000000034066000 	/System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols
0x0000000034066000 	/System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication
0x0000000034066000 	/System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication
0x0000000034066000 	/System/Library/PrivateFrameworks/AppleFSCompression.framework/Versions/A/AppleFSCompression
0x0000000034066000 	/System/Library/PrivateFrameworks/SpeechRecognitionCore.framework/Versions/A/SpeechRecognitionCore
0x0000000034066000 	/System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary
0x000000010bc00000 	/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/jre/lib/server/libjvm.dylib
0x0000000034066000 	/usr/lib/libstdc++.6.dylib
0x000000010aac7000 	/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/jre/lib/libverify.dylib
0x000000010aad5000 	/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/jre/lib/libjava.dylib
0x000000010ab14000 	/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/jre/lib/libzip.dylib
0x0000000118b79000 	/System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/JavaRuntimeSupport
0x0000000118b93000 	/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation
0x000000010abf1000 	/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM
0x0000000034066000 	/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x0000000118ba8000 	/System/Library/PrivateFrameworks/JavaLaunching.framework/Versions/A/JavaLaunching
0x0000000034066000 	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
0x0000000034066000 	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
0x0000000034066000 	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
0x0000000034066000 	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
0x0000000034066000 	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
0x0000000034066000 	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI

VM Arguments:
java_command: M
java_class_path (initial): :/Users/tmuldner/Dropbox/T.M. stuff/cont ed/2113/0763710792
Launcher Type: SUN_STANDARD

Environment Variables:
CLASSPATH=:/Users/tmuldner/Dropbox/T.M. stuff/cont ed/2113/0763710792
PATH=/opt/book/deploy:/opt/book/deploy:/opt/book/deploy:/Library/Frameworks/Python.framework/Versions/3.5/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/texbin:/Users/tmuldner/bin
SHELL=/bin/bash
DISPLAY=/private/tmp/com.apple.launchd.qlJiWJAc61/org.macosforge.xquartz:0

Signal Handlers:
SIGSEGV: [libjvm.dylib+0x5aa779], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_ONSTACK|SA_RESTART|SA_SIGINFO
SIGBUS: [libjvm.dylib+0x5aa779], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO
SIGFPE: [libjvm.dylib+0x4831d0], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO
SIGPIPE: [libjvm.dylib+0x4831d0], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO
SIGXFSZ: [libjvm.dylib+0x4831d0], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO
SIGILL: [libjvm.dylib+0x4831d0], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO
SIGUSR1: SIG_DFL, sa_mask[0]=11011111011111100000000111000110, sa_flags=none
SIGUSR2: [libjvm.dylib+0x482cee], sa_mask[0]=00000000000000000000000000000000, sa_flags=SA_RESTART|SA_SIGINFO
SIGHUP: [libjvm.dylib+0x4812c5], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO
SIGINT: [libjvm.dylib+0x4812c5], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO
SIGTERM: [libjvm.dylib+0x4812c5], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO
SIGQUIT: [libjvm.dylib+0x4812c5], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO


---------------  S Y S T E M  ---------------

OS:Bsduname:Darwin 16.1.0 Darwin Kernel Version 16.1.0: Thu Oct 13 21:26:57 PDT 2016; root:xnu-3789.21.3~60/RELEASE_X86_64 x86_64
rlimit: STACK 8192k, CORE 0k, NPROC 709, NOFILE 10240, AS infinity
load average:2.93 2.76 2.40

CPU:total 8 (4 cores per cpu, 2 threads per core) family 6 model 58 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, aes, clmul, erms, ht, tsc, tscinvbit, tscinv

Memory: 4k page, physical 16777216k(2624844k free)

/proc/meminfo:


vm_info: Java HotSpot(TM) 64-Bit Server VM (25.92-b14) for bsd-amd64 JRE (1.8.0_92-b14), built on Mar 31 2016 21:23:14 by "java_re" with gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)

time: Tue Nov  8 16:54:53 2016
elapsed time: 422 seconds (0d 0h 7m 2s)

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
public class M {
       public static void main(String[] args) {
	int i =0;
	int j =0;
        boolean diff = false;
	while (i < Integer.MAX_VALUE) {
		while (j < Integer.MAX_VALUE) {
		  if( ( (i == j) && ((double)i != (double)j )) ){
				diff = true;
				System.out.println(" Different at: " + i + " " + j);
				System.out.println(" Different at double: " + (double)i + " " + (double)j);
				break;
			}
			if(j < Integer.MAX_VALUE)
				j++;
		}
		if ( i > 1000 )  {
			System.out.println("i = " + i);
			break;
		}
		if ( diff )
			break;
		j = 0;
		if(i < Integer.MAX_VALUE)
                                i++;
	}
        if (diff) 
		System.out.println("found " + diff + " different");
	}
}
---------- END SOURCE ----------


Comments
My assumption was (see my comment) above, that we don't hit this problem with JDK 9 because execution is faster than with JDK 7 and therefore the program exits before 'iterations' overflows to DeferPollingPageLoopCount (-1) and the guarantee is triggered. Modifying the test to increase execution time might trigger this problem with JDK 9 as well but I haven't tried that.
27-02-2018

Do we know why this passes on 9 and later? Is there a flag I can use to get 9 (or later) behave similarly to 8u? Thanks.
27-02-2018

I was able to reproduce this with JDK 7 as well, so it's not a recent regression. The problem is that we don't hit a safepoint because C2 removes safepoint polls from a long running counted loop. This does not reproduce with JDK 9 because execution is faster and we therefore never hit the guarantee (the problem still exists and causes the application to be non-responsive, i.e., CTRL-C does not work). -XX:+UseCountedLoopSafepoints fixes the problem. Closing this as duplicate of JDK-6869327.
02-05-2017

Try running with -XX:+UseCountedLoopSafepoints
07-12-2016

This issue is reproducible on 8u and test passes fine on 9 == BAVAIDYA-Mac:9045209 dcsuser$ /Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/bin/javac M.java BAVAIDYA-Mac:9045209 dcsuser$ /Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/bin/java M # # A fatal error has been detected by the Java Runtime Environment: # # Internal Error (safepoint.cpp:310), pid=78833, tid=0x0000000000002d03 # guarantee(PageArmed == 0) failed: invariant # # JRE version: Java(TM) SE Runtime Environment (8.0_112-b16) (build 1.8.0_112-b16) # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.112-b16 mixed mode bsd-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: # /Users/dcsuser/fairoz/9045209/hs_err_pid78833.log # # If you would like to submit a bug report, please visit: # http://bugreport.java.com/bugreport/crash.jsp # Abort trap: 6 BAVAIDYA-Mac:9045209 dcsuser$
09-11-2016

Java thread Main "0x00007ffeb1801800 JavaThread "main" [_thread_in_Java, id=7171, stack(0x000070000deee000,0x000070000dfee000)] " is unable to reach to safepoint
09-11-2016