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

Stress test crashes with SEGV in Deoptimization::deoptimize_frame_internal(JavaThread*, long*, Deoptimization::DeoptReason)

XMLWordPrintable

    • b19

      Test crashes with
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x00007f43c4b81577, pid=3145843, tid=3145853
      #
      # JRE version: Java(TM) SE Runtime Environment (21.0+15) (build 21-ea+15-LTS-1201)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (21-ea+15-LTS-1201, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x684577] Deoptimization::deoptimize_frame_internal(JavaThread*, long*, Deoptimization::DeoptReason)+0x2e7

      ..
      Current thread (0x00007f43bc137430): VMThread "VM Thread" [stack: 0x00007f43c01d5000,0x00007f43c02d5000] [id=3145853]

      Stack: [0x00007f43c01d5000,0x00007f43c02d5000], sp=0x00007f43c02d25f0, free space=1013k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x684577] Deoptimization::deoptimize_frame_internal(JavaThread*, long*, Deoptimization::DeoptReason)+0x2e7 (frame_x86.inline.hpp:244)
      V [libjvm.so+0xf18165] VM_Operation::evaluate()+0x105 (vmOperations.cpp:71)
      V [libjvm.so+0xf1a878] VMThread::evaluate_operation(VM_Operation*)+0x278 (vmThread.cpp:281)
      V [libjvm.so+0xf1b347] VMThread::inner_execute(VM_Operation*)+0x3a7 (vmThread.cpp:428)
      V [libjvm.so+0xf1b5f7] VMThread::run()+0xb7 (vmThread.cpp:495)
      V [libjvm.so+0xe85a96] Thread::call_run()+0xa6 (thread.cpp:224)
      V [libjvm.so+0xcaebf8] thread_native_entry(Thread*)+0xd8 (os_linux.cpp:740)

      siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x0000000000000008

      Registers:
      RAX=0x0000000000000000, RBX=0x00007f4308b59510, RCX=0x00007f43ac1f6f80, RDX=0x0000000000000000
      RSP=0x00007f43c02d25f0, RBP=0x00007f43c02d3950, RSI=0x00007f43c02d2660, RDI=0x0000000000000000
      R8 =0x00007f43ac1dab90, R9 =0x00007f43ac1dab80, R10=0x00007f43c634c000, R11=0x0000000000000000
      R12=0x00007f43c02d2660, R13=0x00007f43c02d2620, R14=0x00007f43c02d26a0, R15=0x00007f42505357a0
      RIP=0x00007f43c4b81577, EFLAGS=0x0000000000010283, CSGSFS=0x002b000000000033, ERR=0x0000000000000004
        TRAPNO=0x000000000000000e


      Register to memory mapping:

      RAX=0x0 is nullptr
      RBX=0x00007f4308b59510 is pointing into the stack for thread: 0x00007f42505357a0
      RCX=0x00007f43ac1f6f80 is pointing into interpreter code (not bytecode specific)
      RDX=0x0 is nullptr
      RSP=0x00007f43c02d25f0 points into unknown readable memory: 0x00007f4308b59a80 | 80 9a b5 08 43 7f 00 00
      RBP=0x00007f43c02d3950 points into unknown readable memory: 0x00007f43c02d3a60 | 60 3a 2d c0 43 7f 00 00
      RSI=0x00007f43c02d2660 points into unknown readable memory: 0x0000000000000000 | 00 00 00 00 00 00 00 00
      RDI=0x0 is nullptr
      R8 =0x00007f43ac1dab90 is pointing to an (unnamed) stub routine
      R9 =0x00007f43ac1dab80 points into unknown readable memory: 0x00000000000000ee | ee 00 00 00 00 00 00 00
      R10=0x00007f43c634c000 points into unknown readable memory: 0x0100050403020100 | 00 01 02 03 04 05 00 01
      R11=0x0 is nullptr
      R12=0x00007f43c02d2660 points into unknown readable memory: 0x0000000000000000 | 00 00 00 00 00 00 00 00
      R13=0x00007f43c02d2620 points into unknown readable memory: 0x0000000000000000 | 00 00 00 00 00 00 00 00
      R14=0x00007f43c02d26a0 points into unknown readable memory: 0x0000000000000001 | 01 00 00 00 00 00 00 00
      R15=0x00007f42505357a0 is a thread


      Top of Stack: (sp=0x00007f43c02d25f0)
      0x00007f43c02d25f0: 00007f4308b59a80 00007f43ac1dacc6
      0x00007f43c02d2600: 000000000000000a 0000000e2f853f00
      0x00007f43c02d2610: 00007f4308b59a80 00007f43ac1dacc6
      0x00007f43c02d2620: 0000000000000000 0000000000000000
      0x00007f43c02d2630: 0000000000000000 0000000000000000
      0x00007f43c02d2640: 00007f0000000000 0000000000000000
      0x00007f43c02d2650: 0000000000000000 a6e428ab2f853f00
      0x00007f43c02d2660: 0000000000000000 0000000000000000
      0x00007f43c02d2670: 0000000000000000 0000000000000000
      0x00007f43c02d2680: 00007f0000000000 0000000000000000
      0x00007f43c02d2690: 0000000000000000 00007f43c51b77de
      0x00007f43c02d26a0: 0000000000000001 0000000000000001
      0x00007f43c02d26b0: 00007f43c02d37b0 00007f43c4a79c10
      0x00007f43c02d26c0: 0000000000000000 00007f4374584ac0
      0x00007f43c02d26d0: 00007f43c02d37cc 00007f43c54a6303
      0x00007f43c02d26e0: 00007f43c02d2720 00007f43c02d2720
      0x00007f43c02d26f0: 00007f43c580a790 0000004d00000000
      0x00007f43c02d2700: 0000000000000000 0000000000000000
      0x00007f43c02d2710: 0000000000000000 0000000000000000
      0x00007f43c02d2720: 00007f4374584ac0 000000000000004d
      0x00007f43c02d2730: 0000000000000060 00007f43c02d0000
      0x00007f43c02d2740: 0000000000000038 00007f43c54c04f8
      0x00007f43c02d2750: 00007f43c02d2830 00007f43c4e9d034
      0x00007f43c02d2760: 00007f43c02d2c4f 0000003000000018
      0x00007f43c02d2770: 000a303030303031 00007f43c02d2780
      0x00007f43c02d2780: 0000000000000000 0000000000000000
      0x00007f43c02d2790: 00007f43c02d2a50 0000000000000001
      0x00007f43c02d27a0: 00007f43c02d4700 000000000000000d
      0x00007f43c02d27b0: 0000000000000002 00007f43c5c6a0a0
      0x00007f43c02d27c0: ffffffffffffffff 0000000000000000
      0x00007f43c02d27d0: 00007f43c02d3700 00007f43c02d3610
      0x00007f43c02d27e0: 00000000ffffffff 0000003000000010

      Instructions: (pc=0x00007f43c4b81577)
      0x00007f43c4b81477: 8d c0 ec ff ff 4c 89 85 c8 ec ff ff e8 18 29 fd
      0x00007f43c4b81487: ff 4c 8b 85 c8 ec ff ff 48 8b 8d c0 ec ff ff 84
      0x00007f43c4b81497: c0 0f 84 3a 02 00 00 80 7d c6 00 0f 84 78 01 00
      0x00007f43c4b814a7: 00 4c 89 f2 4c 89 ee 4c 89 e7 e8 7a 2d fd ff e9
      0x00007f43c4b814b7: 53 fe ff ff 0f 1f 44 00 00 48 8d 05 11 b2 cc 00
      0x00007f43c4b814c7: 48 8b 00 48 85 c0 0f 84 9d 00 00 00 48 8b 48 08
      0x00007f43c4b814d7: 48 39 ca 0f 82 90 00 00 00 48 63 40 14 48 01 c1
      0x00007f43c4b814e7: 48 39 ca 0f 83 1b ff ff ff 4c 89 f2 4c 89 ee 4c
      0x00007f43c4b814f7: 89 e7 e8 92 ce 0c 00 e9 0b fe ff ff 0f 1f 44 00
      0x00007f43c4b81507: 00 48 83 ec 08 ff b5 00 ed ff ff 8b b5 bc ec ff
      0x00007f43c4b81517: ff 4c 89 ff ff b5 f8 ec ff ff ff b5 f0 ec ff ff
      0x00007f43c4b81527: ff b5 e8 ec ff ff ff b5 e0 ec ff ff ff b5 d8 ec
      0x00007f43c4b81537: ff ff ff b5 d0 ec ff ff e8 4c fc ff ff 48 8d 65
      0x00007f43c4b81547: d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 0f 1f 44 00
      0x00007f43c4b81557: 00 4c 89 f2 4c 89 ee 4c 89 e7 e8 7a cb 0c 00 e9
      0x00007f43c4b81567: a3 fd ff ff 0f 1f 44 00 00 48 8b 85 f8 ec ff ff
      0x00007f43c4b81577: 48 8b 78 08 f3 0f 7e 08 48 8d 48 10 48 c7 85 28
      0x00007f43c4b81587: ed ff ff 00 00 00 00 66 48 0f 6e c1 c6 85 34 ed
      0x00007f43c4b81597: ff ff 00 66 48 0f 6e ff 66 0f 6c c8 66 0f 6c c7
      0x00007f43c4b815a7: 0f 11 8d 38 ed ff ff 0f 29 85 10 ed ff ff e8 a6
      0x00007f43c4b815b7: 77 f7 ff 48 89 85 20 ed ff ff 48 89 c7 48 85 c0
      0x00007f43c4b815c7: 74 34 80 7f 5d 00 74 2e 48 8b 85 18 ed ff ff 48
      0x00007f43c4b815d7: 8b 97 80 00 00 00 48 39 d0 0f 84 c2 00 00 00 80
      0x00007f43c4b815e7: 7f 5e 03 0f 84 90 00 00 00 48 3b 87 88 00 00 00
      0x00007f43c4b815f7: 0f 84 ab 00 00 00 48 8d 05 f4 3f d0 00 48 39 38
      0x00007f43c4b81607: 0f 84 b6 00 00 00 c7 85 30 ed ff ff 00 00 00 00
      0x00007f43c4b81617: e9 f2 fc ff ff 0f 1f 40 00 48 8b 75 b0 4c 89 ea
      0x00007f43c4b81627: 4c 89 e7 e8 11 34 fd ff e9 da fc ff ff 0f 1f 40
      0x00007f43c4b81637: 00 0f b6 46 5c 48 8b bd e8 ec ff ff 88 45 a8 48
      0x00007f43c4b81647: 85 ff 0f 84 06 01 00 00 4c 89 f2 4c 89 ee 4c 89
      0x00007f43c4b81657: 85 c0 ec ff ff 48 89 8d c8 ec ff ff e8 28 5a 61
      0x00007f43c4b81667: 00 4c 8b 85 c0 ec ff ff 48 8b 8d c8 ec ff ff e9


      Stack slot to memory mapping:
      stack at sp + 0 slots: 0x00007f4308b59a80 is pointing into the stack for thread: 0x00007f42505357a0
      stack at sp + 1 slots: 0x00007f43ac1dacc6 is at begin+137 in a stub
      StubRoutines::call_stub [0x00007f43ac1dac3d, 0x00007f43ac1dad3e] (257 bytes)
      stack at sp + 2 slots: 0x000000000000000a is an unknown value
      stack at sp + 3 slots: 0x0000000e2f853f00 is an unknown value
      stack at sp + 4 slots: 0x00007f4308b59a80 is pointing into the stack for thread: 0x00007f42505357a0
      stack at sp + 5 slots: 0x00007f43ac1dacc6 is at begin+137 in a stub
      StubRoutines::call_stub [0x00007f43ac1dac3d, 0x00007f43ac1dad3e] (257 bytes)
      stack at sp + 6 slots: 0x0 is nullptr
      stack at sp + 7 slots: 0x0 is nullptr

      VM_Operation (0x00007f4394adc9f0): DeoptimizeFrame, mode: safepoint, requested by thread 0x00007f43bc2ffde0

        1. gdb.txt
          231 kB
        2. hs_err_pid3145843.log
          331 kB
        3. Repro.zip
          3 kB

            pchilanomate Patricio Chilano Mateo
            lmesnik Leonid Mesnik
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: