Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8233030

assert(inv * n[0] == -1UL) failed: broken inverse in Montgomery multiply

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3
    • None
    • 14
    • hotspot
    • None

    Description

      Test crashed with
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (open/src/hotspot/cpu/x86/sharedRuntime_x86_64.cpp:3764), pid=22290, tid=23339
      # assert(inv * n[0] == -1UL) failed: broken inverse in Montgomery multiply
      #
      # JRE version: Java(TM) SE Runtime Environment (14.0+21) (fastdebug build 14-ea+21-896)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 14-ea+21-896, mixed mode, sharing, tiered, compressed oops, serial gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x1594bbb] montgomery_multiply(unsigned long*, unsigned long*, unsigned long*, unsigned long*, unsigned long, int)+0x5b
      #
      # Core dump will be written. Default location: Core dumps may be processed with "/opt/core.sh %p" (or dumping to /opt/mach5/mesos/work_dir/slaves/6e54f4af-e606-43b0-80ce-0a482a5988b6-S202/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/71d379fd-7520-4f77-8e05-664ae8f4b624/runs/47b959a6-e62b-4f13-b900-1c750624ee59/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_kitchensink_Kitchensink_java/scratch/0/core.22290)
      #
      # 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: -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:MaxRAMPercentage=6 -XX:+CreateCoredumpOnCrash -XX:+UseSerialGC -XX:MaxRAMPercentage=50 -XX:MaxMetaspaceSize=256m -XX:+HeapDumpOnOutOfMemoryError -XX:+CrashOnOutOfMemoryError -Djava.net.preferIPv6Addresses=false -XX:+DisplayVMOutputToStderr -Xlog:gc*,gc+heap=debug:gc.log:uptime,timemillis,level,tags -XX:+DisableExplicitGC -XX:+StartAttachListener --add-exports=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-exports=java.xml/com.sun.org.apache.xerces.internal.parsers=ALL-UNNAMED --add-exports=java.xml/com.sun.org.apache.xerces.internal.util=ALL-UNNAMED -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/6e54f4af-e606-43b0-80ce-0a482a5988b6-S202/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/71d379fd-7520-4f77-8e05-664ae8f4b624/runs/47b959a6-e62b-4f13-b900-1c750624ee59/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_kitchensink_Kitchensink_java/scratch/0/java.io.tmpdir -Duser.home=/opt/mach5/mesos/work_dir/slaves/6e54f4af-e606-43b0-80ce-0a482a5988b6-S202/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/71d379fd-7520-4f77-8e05-664ae8f4b624/runs/47b959a6-e62b-4f13-b900-1c750624ee59/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_kitchensink_Kitchensink_java/scratch/0/user.home -agentpath:/opt/mach5/mesos/work_dir/jib-master/install/jdk-14+21-896/linux-x64-debug.test/hotspot/jtreg/native/libJvmtiStressModule.so -XX:NativeMemoryTracking=detail applications.kitchensink.process.stress.Main /opt/mach5/mesos/work_dir/slaves/6e54f4af-e606-43b0-80ce-0a482a5988b6-S202/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/71d379fd-7520-4f77-8e05-664ae8f4b624/runs/47b959a6-e62b-4f13-b900-1c750624ee59/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_kitchensink_Kitchensink_java/scratch/0/kitchensink.final.properties

      Host: , Intel(R) Xeon(R) Platinum 8167M CPU @ 2.00GHz, 8 cores, 58G, Oracle Linux Server release 7.6
      Time: Fri Oct 25 08:23:29 2019 UTC elapsed time: 248 seconds (0d 0h 4m 8s)

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

      Current thread (0x00007ff92452d800): JavaThread "BenchmarkThread crypto.rsa 1" [_thread_in_vm, id=23339, stack(0x00007ff8c5217000,0x00007ff8c5318000)]

      Stack: [0x00007ff8c5217000,0x00007ff8c5318000], sp=0x00007ff8c5315cf0, free space=1019k
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x1594bbb] montgomery_multiply(unsigned long*, unsigned long*, unsigned long*, unsigned long*, unsigned long, int)+0x5b
      V [libjvm.so+0x15a4028] SharedRuntime::montgomery_square(int*, int*, int, long, int*)+0x268

      Register to memory mapping:

      RAX=0x00007ff9ce077000 points into unknown readable memory: 58 00 00 00 00 00 00 00
      RBX=0x0000000000000008 is an unknown value
      RCX=0x00007ff9ccf47160: <offset 0x00000000019d5160> in /opt/mach5/mesos/work_dir/jib-master/install/jdk-14+21-896/linux-x64-debug.jdk/jdk-14/fastdebug/lib/server/libjvm.so at 0x00007ff9cb572000
      RDX=0x00007ff9ccf47188: <offset 0x00000000019d5188> in /opt/mach5/mesos/work_dir/jib-master/install/jdk-14+21-896/linux-x64-debug.jdk/jdk-14/fastdebug/lib/server/libjvm.so at 0x00007ff9cb572000
      RSP=0x00007ff8c5315cf0 is pointing into the stack for thread: 0x00007ff92452d800
      RBP=0x00007ff8c5315d60 is pointing into the stack for thread: 0x00007ff92452d800
      RSI=0x0000000000000eb4 is an unknown value
      RDI=0x00007ff9ccf471b0: <offset 0x00000000019d51b0> in /opt/mach5/mesos/work_dir/jib-master/install/jdk-14+21-896/linux-x64-debug.jdk/jdk-14/fastdebug/lib/server/libjvm.so at 0x00007ff9cb572000
      R8 =0x31aa393866d7b93d is an unknown value
      R9 =0x0000000000000008 is an unknown value
      R10=0x31aa393866d7b93d is an unknown value
      R11=0x00007ff8c5315d70 is pointing into the stack for thread: 0x00007ff92452d800
      R12=0x0000000000000010 is an unknown value
      R13=0x00007ff8c5315df0 is pointing into the stack for thread: 0x00007ff92452d800
      R14=0x00007ff8c5315d70 is pointing into the stack for thread: 0x00007ff92452d800
      R15=0x00000000b8ee7350 is pointing into object:
      [error occurred during error reporting (printing register info), id 0xe0000000, Internal Error (open/src/hotspot/share/memory/resourceArea.inline.hpp:33)]

      Registers:
      RAX=0x00007ff9ce077000, RBX=0x0000000000000008, RCX=0x00007ff9ccf47160, RDX=0x00007ff9ccf47188
      RSP=0x00007ff8c5315cf0, RBP=0x00007ff8c5315d60, RSI=0x0000000000000eb4, RDI=0x00007ff9ccf471b0
      R8 =0x31aa393866d7b93d, R9 =0x0000000000000008, R10=0x31aa393866d7b93d, R11=0x00007ff8c5315d70
      R12=0x0000000000000010, R13=0x00007ff8c5315df0, R14=0x00007ff8c5315d70, R15=0x00000000b8ee7350
      RIP=0x00007ff9ccb06bbb, EFLAGS=0x0000000000010297, CSGSFS=0x002b000000000033, ERR=0x0000000000000006
        TRAPNO=0x000000000000000e

      Top of Stack: (sp=0x00007ff8c5315cf0)
      0x00007ff8c5315cf0: 0000000000000000 0000000000000000
      0x00007ff8c5315d00: 0000000000000000 0000000000000000
      0x00007ff8c5315d10: 00007ff8c5315db0 31aa393866d7b93d
      0x00007ff8c5315d20: 00007ff8c5315d70 0000000800000000

      Instructions: (pc=0x00007ff9ccb06bbb)
      0x00007ff9ccb06abb: 64 ff ff ff 00 00 00 00 48 c7 85 68 ff ff ff 00
      0x00007ff9ccb06acb: 00 00 00 c6 85 70 ff ff ff 00 e8 c6 09 0c ff b9
      0x00007ff9ccb06adb: 01 00 00 00 4c 89 f2 48 89 df be 05 00 00 00 e8
      0x00007ff9ccb06aeb: e1 c4 07 ff 4c 89 e2 4c 89 e6 48 89 df e8 53 77
      0x00007ff9ccb06afb: 0c ff 31 f6 48 89 df e8 b9 f8 07 ff 48 89 df 4c
      0x00007ff9ccb06b0b: 89 f6 e8 6e 67 07 ff 4c 89 f7 e8 a6 51 ec fe e9
      0x00007ff9ccb06b1b: 1a fe ff ff 90 48 8d 05 f9 57 84 00 49 89 f6 48
      0x00007ff9ccb06b2b: 8d 0d 69 4d 47 00 48 8d 15 e8 4c 31 00 be a9 00
      0x00007ff9ccb06b3b: 00 00 48 8d 3d fc 4c 31 00 48 8b 00 c6 00 58 31
      0x00007ff9ccb06b4b: c0 e8 7f d5 4f ff e8 7a 43 e7 ff 49 8b 46 08 e9
      0x00007ff9ccb06b5b: cf fd ff ff 90 55 49 89 f3 48 89 e5 41 57 41 56
      0x00007ff9ccb06b6b: 49 89 fe 41 55 49 89 cd 41 54 53 48 83 ec 48 48
      0x00007ff9ccb06b7b: 8b 02 48 89 55 b0 4c 89 45 b8 49 0f af c0 44 89
      0x00007ff9ccb06b8b: 4d cc 48 83 f8 ff 74 3b 48 8d 05 86 57 84 00 48
      0x00007ff9ccb06b9b: 89 75 c0 48 8d 0d bb 05 44 00 48 8d 15 dc 05 44
      0x00007ff9ccb06bab: 00 be b4 0e 00 00 48 8d 3d f8 05 44 00 48 8b 00
      0x00007ff9ccb06bbb: c6 00 58 31 c0 e8 0b d5 4f ff e8 06 43 e7 ff 4c
      0x00007ff9ccb06bcb: 8b 5d c0 8b 45 cc 8d 14 00 89 55 c8 85 c0 0f 8e
      0x00007ff9ccb06bdb: 6c 02 00 00 4c 8b 45 b0 31 db 4c 89 e8 41 bf 08
      0x00007ff9ccb06beb: 00 00 00 49 89 d9 45 31 d2 4c 89 f3 45 31 e4 4d
      0x00007ff9ccb06bfb: 89 c6 31 d2 4d 89 dd 49 89 c0 0f 1f 00 4a 8b 74
      0x00007ff9ccb06c0b: 3b f8 49 8b 03 48 89 d1 48 f7 e6 48 01 c1 49 11
      0x00007ff9ccb06c1b: d1 49 83 d4 00 48 8b 75 b8 48 8b 45 b0 48 0f af
      0x00007ff9ccb06c2b: f1 4b 89 74 38 f8 48 8b 00 48 f7 e6 48 01 c1 49
      0x00007ff9ccb06c3b: 11 d1 49 83 d4 00 48 85 c9 75 7a 41 83 c2 01 44
      0x00007ff9ccb06c4b: 39 55 cc 0f 84 cd 00 00 00 44 89 55 c0 31 f6 31
      0x00007ff9ccb06c5b: c9 0f 1f 40 00 48 89 f7 4c 8b 14 33 48 f7 df 49
      0x00007ff9ccb06c6b: 8b 44 3d 08 49 f7 e2 49 01 c1 49 11 d4 48 83 d1
      0x00007ff9ccb06c7b: 00 49 8b 44 3e 08 49 8b 3c 30 48 83 c6 08 48 f7
      0x00007ff9ccb06c8b: e7 49 01 c1 49 11 d4 48 83 d1 00 4c 39 fe 75 c5
      0x00007ff9ccb06c9b: 4c 89 ca 44 8b 55 c0 4d 89 e1 49 83 c5 08 49 83
      0x00007ff9ccb06cab: c6 08 49 83 c7 08 49 89 cc e9 4f ff ff ff 0f 1f


      Stack slot to memory mapping:
      stack at sp + 0 slots: 0x0 is NULL
      stack at sp + 1 slots: 0x0 is NULL
      stack at sp + 2 slots: 0x0 is NULL
      stack at sp + 3 slots: 0x0 is NULL
      stack at sp + 4 slots: 0x00007ff8c5315db0 is pointing into the stack for thread: 0x00007ff92452d800
      stack at sp + 5 slots: 0x31aa393866d7b93d is an unknown value
      stack at sp + 6 slots: 0x00007ff8c5315d70 is pointing into the stack for thread: 0x00007ff92452d800
      stack at sp + 7 slots: 0x0000000800000000 is pointing into metadata


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

      uid : 10668 euid : 10668 gid : 10668 egid : 10668

      umask: 0022 (----w--w-)

      Threads class SMR info:
      _java_thread_list=0x00007ff98850a530, length=45, elements={
      0x00007ff9c404a800, 0x00007ff9c41d5800, 0x00007ff9c41d8800, 0x00007ff9c41f2800,
      0x00007ff9c41f5800, 0x00007ff9c41f9800, 0x00007ff9c41fc800, 0x00007ff9c41ff800,
      0x00007ff9c42fd000, 0x00007ff9c4307000, 0x00007ff9c4309800, 0x00007ff9c4507800,
      0x00007ff9c4509800, 0x00007ff9c4542800, 0x00007ff9c4545000, 0x00007ff9c4547800,
      0x00007ff9c454a000, 0x00007ff9c454c000, 0x00007ff9c454e800, 0x00007ff9c4551000,
      0x00007ff9c4553000, 0x00007ff9c4555800, 0x00007ff9c4558000, 0x00007ff9c455a000,
      0x00007ff9c455c800, 0x00007ff9c455f000, 0x00007ff9c4561000, 0x00007ff9c4563800,
      0x00007ff9c4566000, 0x00007ff950001800, 0x00007ff948014000, 0x00007ff94801f800,
      0x00007ff948021800, 0x00007ff948023800, 0x00007ff964074000, 0x00007ff9640a3000,
      0x00007ff90c013000, 0x00007ff964147800, 0x00007ff93054b000, 0x00007ff930547800,
      0x00007ff9340c7000, 0x00007ff92452d800, 0x00007ff98d59f000, 0x00007ff92413e000,
      0x00007ff989113000
      }
      _java_thread_list_alloc_cnt=562, _java_thread_list_free_cnt=560, _java_thread_list_max=130, _nested_thread_list_max=1
      _tlh_cnt=158312, _tlh_times=30849, avg_tlh_time=0.19, _tlh_time_max=196
      _deleted_thread_cnt=258, _deleted_thread_times=1215, avg_deleted_thread_time=4.71, _deleted_thread_time_max=72
      _delete_lock_wait_cnt=0, _delete_lock_wait_max=7
      _to_delete_list_cnt=0, _to_delete_list_max=3

      Java Threads: ( => current thread )
        0x00007ff9c404a800 JavaThread "main" [_thread_blocked, id=22292, stack(0x00007ff9cdf57000,0x00007ff9ce058000)]
        0x00007ff9c41d5800 JavaThread "Reference Handler" daemon [_thread_blocked, id=22316, stack(0x00007ff9a8467000,0x00007ff9a8568000)]
        0x00007ff9c41d8800 JavaThread "Finalizer" daemon [_thread_blocked, id=22317, stack(0x00007ff9a8366000,0x00007ff9a8467000)]
        0x00007ff9c41f2800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=22318, stack(0x00007ff9a8265000,0x00007ff9a8366000)]
        0x00007ff9c41f5800 JavaThread "Attach Listener" daemon [_thread_blocked, id=22319, stack(0x00007ff9a8164000,0x00007ff9a8265000)]
        0x00007ff9c41f9800 JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=22320, stack(0x00007ff9a8063000,0x00007ff9a8164000)]
        0x00007ff9c41fc800 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=22321, stack(0x00007ff993eff000,0x00007ff994000000)]
        0x00007ff9c41ff800 JavaThread "Sweeper thread" daemon [_thread_blocked, id=22322, stack(0x00007ff993dfe000,0x00007ff993eff000)]
        0x00007ff9c42fd000 JavaThread "Common-Cleaner" daemon [_thread_blocked, id=22323, stack(0x00007ff993cfd000,0x00007ff993dfe000)]
        0x00007ff9c4307000 JavaThread "Service Thread" daemon [_thread_blocked, id=22324, stack(0x00007ff993bfc000,0x00007ff993cfd000)]
        0x00007ff9c4309800 JavaThread "Notification Thread" daemon [_thread_blocked, id=22325, stack(0x00007ff993afb000,0x00007ff993bfc000)]
        0x00007ff9c4507800 JavaThread "ModuleShudownListenerThread" [_thread_in_native, id=22327, stack(0x00007ff9938f8000,0x00007ff9939f9000)]
        0x00007ff9c4509800 JavaThread "AllocatorStressModule" [_thread_in_Java, id=22328, stack(0x00007ff9937f7000,0x00007ff9938f8000)]
        0x00007ff9c4542800 JavaThread "ExceptionStressModule" [_thread_in_Java, id=22329, stack(0x00007ff9936f6000,0x00007ff9937f7000)]
        0x00007ff9c4545000 JavaThread "JcmdStressModule" [_thread_blocked, id=22330, stack(0x00007ff9935f5000,0x00007ff9936f6000)]
        0x00007ff9c4547800 JavaThread "JfrStressModule" [_thread_blocked, id=22331, stack(0x00007ff9934f4000,0x00007ff9935f5000)]
        0x00007ff9c454a000 JavaThread "JniStressModule" [_thread_in_vm, id=22332, stack(0x00007ff9933f3000,0x00007ff9934f4000)]
        0x00007ff9c454c000 JavaThread "JstatStressModule" [_thread_blocked, id=22333, stack(0x00007ff9932f2000,0x00007ff9933f3000)]
        0x00007ff9c454e800 JavaThread "JvmtiStressModule" [_thread_blocked, id=22334, stack(0x00007ff9931f1000,0x00007ff9932f2000)]
        0x00007ff9c4551000 JavaThread "InflaterStressModule" [_thread_in_native, id=22335, stack(0x00007ff9930f0000,0x00007ff9931f1000)]
        0x00007ff9c4553000 JavaThread "LockDeflationStressModule" [_thread_blocked, id=22336, stack(0x00007ff992fef000,0x00007ff9930f0000)]
        0x00007ff9c4555800 JavaThread "MBeanStressModule" [_thread_blocked, id=22337, stack(0x00007ff992eee000,0x00007ff992fef000)]
        0x00007ff9c4558000 JavaThread "MonitorStressModule" [_thread_blocked, id=22338, stack(0x00007ff992ded000,0x00007ff992eee000)]
        0x00007ff9c455a000 JavaThread "NMTStressModule" [_thread_blocked, id=22339, stack(0x00007ff992cec000,0x00007ff992ded000)]
        0x00007ff9c455c800 JavaThread "PerfmonStressModule" [_thread_blocked, id=22340, stack(0x00007ff992beb000,0x00007ff992cec000)]
        0x00007ff9c455f000 JavaThread "ReferenceStressModule" [_thread_blocked, id=22341, stack(0x00007ff992aea000,0x00007ff992beb000)]
        0x00007ff9c4561000 JavaThread "SpecJbb2005StressModule" [_thread_blocked, id=22342, stack(0x00007ff9929e9000,0x00007ff992aea000)]
        0x00007ff9c4563800 JavaThread "SpecJvm2008BatchStressModule" [_thread_blocked, id=22343, stack(0x00007ff9928e8000,0x00007ff9929e9000)]
        0x00007ff9c4566000 JavaThread "ThreadDumperStressModule" [_thread_blocked, id=22344, stack(0x00007ff9927e7000,0x00007ff9928e8000)]
        0x00007ff950001800 JavaThread "Jvmti-AgentSampler" daemon [_thread_in_native, id=22345, stack(0x00007ff9926e6000,0x00007ff9927e7000)]
        0x00007ff948014000 JavaThread "pool-1-thread-1" [_thread_blocked, id=22349, stack(0x00007ff9923e3000,0x00007ff9924e4000)]
        0x00007ff94801f800 JavaThread "pool-1-thread-2" [_thread_blocked, id=22350, stack(0x00007ff9922e2000,0x00007ff9923e3000)]
        0x00007ff948021800 JavaThread "pool-1-thread-3" [_thread_blocked, id=22351, stack(0x00007ff9921e1000,0x00007ff9922e2000)]
        0x00007ff948023800 JavaThread "pool-1-thread-4" [_thread_blocked, id=22352, stack(0x00007ff9920e0000,0x00007ff9921e1000)]
        0x00007ff964074000 JavaThread "JFR Recorder Thread" daemon [_thread_blocked, id=22374, stack(0x00007ff8c7bfa000,0x00007ff8c7cfb000)]
        0x00007ff9640a3000 JavaThread "JFR Periodic Tasks" daemon [_thread_blocked, id=22451, stack(0x00007ff8c6429000,0x00007ff8c652a000)]
        0x00007ff90c013000 JavaThread "JFR Recording Scheduler" daemon [_thread_blocked, id=22454, stack(0x00007ff8c5c21000,0x00007ff8c5d22000)]
        0x00007ff964147800 JavaThread "Thread-18" [_thread_blocked, id=22456, stack(0x00007ff8c4005000,0x00007ff8c4106000)]
        0x00007ff93054b000 JavaThread "Thread-19" [_thread_in_Java, id=22545, stack(0x00007ff8ab2f5000,0x00007ff8ab3f6000)]
        0x00007ff930547800 JavaThread "Thread-20" [_thread_in_Java, id=22546, stack(0x00007ff8ab1f4000,0x00007ff8ab2f5000)]
        0x00007ff9340c7000 JavaThread "Program Runner for crypto.rsa" [_thread_blocked, id=23338, stack(0x00007ff8abbfc000,0x00007ff8abcfd000)]
      =>0x00007ff92452d800 JavaThread "BenchmarkThread crypto.rsa 1" [_thread_in_vm, id=23339, stack(0x00007ff8c5217000,0x00007ff8c5318000)]
        0x00007ff98d59f000 JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=23340, stack(0x00007ff8abeff000,0x00007ff8ac000000)]
        0x00007ff92413e000 JavaThread "BenchmarkThread crypto.rsa 2" [_thread_in_Java, id=23341, stack(0x00007ff9925e5000,0x00007ff9926e6000)]
        0x00007ff989113000 JavaThread "C2 CompilerThread2" daemon [_thread_in_native, id=23344, stack(0x00007ff9924e4000,0x00007ff9925e5000)]

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lmesnik Leonid Mesnik
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: