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

7u40_b35: Crash while testing netbeans debugger: apply code changes

    XMLWordPrintable

    Details

    • Subcomponent:
    • OS:
      windows_8

      Description

      See source to reproduce at end of Description.

      FULL PRODUCT VERSION :
      java version " 1.7.0_40-ea "
      Java(TM) SE Runtime Environment (build 1.7.0_40-ea-b35)
      Java HotSpot(TM) 64-Bit Server VM (build 24.0-b54, mixed mode)

      FULL OS VERSION :
      Microsoft Windows [Version 6.2.9200]

      A DESCRIPTION OF THE PROBLEM :
      crash while trying to execute test case
      http://wiki.netbeans.org/TS_74_JPDAdbg_Functionality#Test_suite:_Apply_Code_Changes

      Add line [step 7]

      THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: Did not try

      THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Did not try

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      follow the testcase

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000061045fca, pid=2108, tid=2680
      #
      # JRE version: Java(TM) SE Runtime Environment (7.0_40-b35) (build 1.7.0_40-ea-b35)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.0-b54 mixed mode windows-amd64 compressed oops)
      # Problematic frame:
      # V [jvm.dll+0x115fca]
      #
      # Core dump written. Default location: C:\Users\Administrator\Documents\NetBeansProjects\MemoryView\hs_err_pid2108.mdmp
      #
      # If you would like to submit a bug report, please visit:
      # http://bugreport.sun.com/bugreport/crash.jsp
      #

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

      Current thread (0x00000000024a2800): JavaThread " main " [_thread_in_vm, id=2680, stack(0x00000000023a0000,0x00000000024a0000)]

      siginfo: ExceptionCode=0xc0000005, reading address 0x0000000000000008

      Registers:
      RAX=0x00000000000003d8, RBX=0x0000000002338410, RCX=0x0000000000000000, RDX=0x0000000000000000
      RSP=0x000000000249ef90, RBP=0x000000000249f0c0, RSI=0x000000000233d750, RDI=0x00000000024e3f50
      R8 =0x00000000db062878, R9 =0x0000000000000000, R10=0x00000000db062878, R11=0x0000000006f7c400
      R12=0x0000000000000000, R13=0x00000000024a2800, R14=0x000000000233d760, R15=0x000000000233db38
      RIP=0x0000000061045fca, EFLAGS=0x0000000000010206

        Top of Stack: (sp=0x000000000249ef90)
      0x000000000249ef90: 0000000000000001 00000000024a2800
      0x000000000249efa0: 0000000000000000 00000000000000b2
      0x000000000249efb0: 00000000024e3f50 0000000060fd0303
      0x000000000249efc0: 0000000002338410 00000000000000b2
      0x000000000249efd0: 00000000023378a0 00000000609ea640
      0x000000000249efe0: 00000000024a2800 0000000006f97070
      0x000000000249eff0: 00000000024a29e8 00000000023378a0
      0x000000000249f000: 0000000006f97000 00000000000003d8
      0x000000000249f010: 000000000249f250 00000000024a29e8
      0x000000000249f020: 0000000006fb1ab0 0000000000000000
      0x000000000249f030: 000000000233c6d0 00000000610fcf85
      0x000000000249f040: 00000000024a2800 0000000006f2dde0
      0x000000000249f050: 0000000006f97070 0000000060fb0367
      0x000000000249f060: 0000000000000001 0000000006f2dde0
      0x000000000249f070: 0000000006f2dde8 0000000006f97070
      0x000000000249f080: 0000000000000000 00000000610ae105

      Instructions: (pc=0x0000000061045fca)
      0x0000000061045faa: ff ca 88 41 ff 75 ef 43 c6 04 10 00 49 8b c2 c3
      0x0000000061045fba: cc cc cc cc cc cc 48 89 5c 24 08 57 48 83 ec 20
      0x0000000061045fca: 0f b7 79 08 48 8b d9 33 d2 ff c7 48 63 cf e8 f3
      0x0000000061045fda: 0c fb ff 4c 8b d8 85 ff 7e 44 44 0f b7 43 08 8d


      Register to memory mapping:

      RAX=0x00000000000003d8 is an unknown value
      RBX=0x0000000002338410 is an unknown value
      RCX=0x0000000000000000 is an unknown value
      RDX=0x0000000000000000 is an unknown value
      RSP=0x000000000249ef90 is pointing into the stack for thread: 0x00000000024a2800
      RBP=0x000000000249f0c0 is pointing into the stack for thread: 0x00000000024a2800
      RSI=0x000000000233d750 is an unknown value
      RDI=0x00000000024e3f50 is an unknown value
      R8 =0x00000000db062878 is an oop
      {constant pool}
       - klass: {other class}
       - holder: 0x00000000db061090
       - cache: 0x00000000db062a90
       - 1 : : klass_index=10 name_and_type_index=28
       - 2 : : 'tests/FixAndContinue'
       - 3 : : klass_index=2 name_and_type_index=28
       - 4 : : klass_index=2 name_and_type_index=30
       - 5 : : klass_index=2 name_and_type_index=31
       - 6 : : klass_index=32 name_and_type_index=33
       - 7 : : " Before code changes " {0xf5553e40}
       - 8 : : klass_index=35 name_and_type_index=36
       - 9 : : " After code changes " {0xf5554150}
       - 10 : : 'java/lang/Object'
       - 11 : : '<init>'
       - 12 : : '()V'
       - 13 : : 'Code'
       - 14 : : 'LineNumberTable'
       - 15 : : 'LocalVariableTable'
       - 16 : : 'this'
       - 17 : : 'Ltests/FixAndContinue;'
       - 18 : : 'main'
       - 19 : : '([Ljava/lang/String;)V'
       - 20 : : 'args'
       - 21 : : '[Ljava/lang/String;'
       - 22 : : 'fc'
       - 23 : : 'method'
       - 24 : : 'beforeFix'
       - 25 : : 'afterFix'
       - 26 : : 'SourceFile'
       - 27 : : 'FixAndContinue.java'
       - 28 : : name_index=11 signature_index=12
       - 29 : : 'tests/FixAndContinue'
       - 30 : : name_index=23 signature_index=12
       - 31 : : name_index=24 signature_index=12
       - 32 : : 'java/lang/System'
       - 33 : : name_index=40 signature_index=41
       - 34 : : 'Before code changes'
       - 35 : : 'java/io/PrintStream'
       - 36 : : name_index=43 signature_index=44
       - 37 : : 'After code changes'
       - 38 : : 'java/lang/Object'
       - 39 : : 'java/lang/System'
       - 40 : : 'out'
       - 41 : : 'Ljava/io/PrintStream;'
       - 42 : : 'java/io/PrintStream'
       - 43 : : 'println'
       - 44 : : '(Ljava/lang/String;)V'
       - 45 : : " Added line " {0xf55541a0}
       - 46 : : name_index=25 signature_index=12
       - 47 : : klass_index=2 name_and_type_index=46
       - 48 : : " Before code changes " {0xf5553e40}
       - 49 : : 'Added line'

      R9 =0x0000000000000000 is an unknown value
      R10=0x00000000db062878 is an oop
      {constant pool}
       - klass: {other class}
       - holder: 0x00000000db061090
       - cache: 0x00000000db062a90
       - 1 : : klass_index=10 name_and_type_index=28
       - 2 : : 'tests/FixAndContinue'
       - 3 : : klass_index=2 name_and_type_index=28
       - 4 : : klass_index=2 name_and_type_index=30
       - 5 : : klass_index=2 name_and_type_index=31
       - 6 : : klass_index=32 name_and_type_index=33
       - 7 : : " Before code changes " {0xf5553e40}
       - 8 : : klass_index=35 name_and_type_index=36
       - 9 : : " After code changes " {0xf5554150}
       - 10 : : 'java/lang/Object'
       - 11 : : '<init>'
       - 12 : : '()V'
       - 13 : : 'Code'
       - 14 : : 'LineNumberTable'
       - 15 : : 'LocalVariableTable'
       - 16 : : 'this'
       - 17 : : 'Ltests/FixAndContinue;'
       - 18 : : 'main'
       - 19 : : '([Ljava/lang/String;)V'
       - 20 : : 'args'
       - 21 : : '[Ljava/lang/String;'
       - 22 : : 'fc'
       - 23 : : 'method'
       - 24 : : 'beforeFix'
       - 25 : : 'afterFix'
       - 26 : : 'SourceFile'
       - 27 : : 'FixAndContinue.java'
       - 28 : : name_index=11 signature_index=12
       - 29 : : 'tests/FixAndContinue'
       - 30 : : name_index=23 signature_index=12
       - 31 : : name_index=24 signature_index=12
       - 32 : : 'java/lang/System'
       - 33 : : name_index=40 signature_index=41
       - 34 : : 'Before code changes'
       - 35 : : 'java/io/PrintStream'
       - 36 : : name_index=43 signature_index=44
       - 37 : : 'After code changes'
       - 38 : : 'java/lang/Object'
       - 39 : : 'java/lang/System'
       - 40 : : 'out'
       - 41 : : 'Ljava/io/PrintStream;'
       - 42 : : 'java/io/PrintStream'
       - 43 : : 'println'
       - 44 : : '(Ljava/lang/String;)V'
       - 45 : : " Added line " {0xf55541a0}
       - 46 : : name_index=25 signature_index=12
       - 47 : : klass_index=2 name_and_type_index=46
       - 48 : : " Before code changes " {0xf5553e40}
       - 49 : : 'Added line'

      R11=0x0000000006f7c400 is an unknown value
      R12=0x0000000000000000 is an unknown value
      R13=0x00000000024a2800 is a thread
      R14=0x000000000233d760 is an unknown value
      R15=0x000000000233db38 is an unknown value


      Stack: [0x00000000023a0000,0x00000000024a0000], sp=0x000000000249ef90, free space=1019k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [jvm.dll+0x115fca]

      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      j tests.FixAndContinue.method()V+0
      j tests.FixAndContinue.main([Ljava/lang/String;)V+13
      v ~StubRoutines::call_stub

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

      Java Threads: ( => current thread )
        0x0000000006fa6000 JavaThread " Service Thread " daemon [_thread_blocked, id=2796, stack(0x00000000086a0000,0x00000000087a0000)]
        0x0000000006fa5000 JavaThread " C2 CompilerThread1 " daemon [_thread_blocked, id=2908, stack(0x00000000085a0000,0x00000000086a0000)]
        0x0000000006f94800 JavaThread " C2 CompilerThread0 " daemon [_thread_blocked, id=2976, stack(0x00000000084a0000,0x00000000085a0000)]
        0x0000000006f85800 JavaThread " JDWP Command Reader " daemon [_thread_in_native, id=664, stack(0x00000000083a0000,0x00000000084a0000)]
        0x0000000006f7f800 JavaThread " JDWP Event Helper Thread " daemon [_thread_blocked, id=1176, stack(0x00000000082a0000,0x00000000083a0000)]
        0x0000000006f71000 JavaThread " JDWP Transport Listener: dt_socket " daemon [_thread_blocked, id=1484, stack(0x00000000081a0000,0x00000000082a0000)]
        0x0000000006f6d800 JavaThread " Attach Listener " daemon [_thread_blocked, id=2308, stack(0x0000000007dc0000,0x0000000007ec0000)]
        0x0000000006f6c000 JavaThread " Signal Dispatcher " daemon [_thread_blocked, id=896, stack(0x0000000007cc0000,0x0000000007dc0000)]
        0x0000000006f32800 JavaThread " Finalizer " daemon [_thread_blocked, id=2612, stack(0x0000000007bc0000,0x0000000007cc0000)]
        0x0000000006f2f000 JavaThread " Reference Handler " daemon [_thread_blocked, id=2852, stack(0x0000000007ac0000,0x0000000007bc0000)]
      =>0x00000000024a2800 JavaThread " main " [_thread_in_vm, id=2680, stack(0x00000000023a0000,0x00000000024a0000)]

      Other Threads:
        0x0000000006f2b800 VMThread [stack: 0x00000000079c0000,0x0000000007ac0000] [id=2692]
        0x0000000006f95000 WatcherThread [stack: 0x00000000087a0000,0x00000000088a0000] [id=3000]

      VM state:synchronizing (normal execution)

      VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
      [0x000000000233d220] Threads_lock - owner thread: 0x0000000006f2b800

      Heap
       PSYoungGen total 10240K, used 569K [0x00000000f5500000, 0x00000000f6000000, 0x0000000100000000)
        eden space 9216K, 6% used [0x00000000f5500000,0x00000000f558e4c8,0x00000000f5e00000)
        from space 1024K, 0% used [0x00000000f5f00000,0x00000000f5f00000,0x00000000f6000000)
        to space 1024K, 0% used [0x00000000f5e00000,0x00000000f5e00000,0x00000000f5f00000)
       ParOldGen total 21504K, used 0K [0x00000000e0000000, 0x00000000e1500000, 0x00000000f5500000)
        object space 21504K, 0% used [0x00000000e0000000,0x00000000e0000000,0x00000000e1500000)
       PSPermGen total 21504K, used 2442K [0x00000000dae00000, 0x00000000dc300000, 0x00000000e0000000)
        object space 21504K, 11% used [0x00000000dae00000,0x00000000db062b90,0x00000000dc300000)

      Card table byte_map: [0x0000000005660000,0x0000000005790000] byte_map_base: 0x0000000004f89000

      Polling page: 0x0000000002340000

      Code Cache [0x00000000025a0000, 0x0000000002810000, 0x00000000055a0000)
       total_blobs=156 nmethods=0 adapters=133 free_code_cache=48777Kb largest_free_block=49948160

      Compilation events (0 events):
      No events

      GC Heap History (0 events):
      No events

      Deoptimization events (0 events):
      No events

      Internal exceptions (2 events):
      Event: 0.081 Thread 0x00000000024a2800 Threw 0x00000000f550b328 at C:\jdk7u2_64p\jdk7u40\hotspot\src\share\vm\prims\jni.cpp:3991
      Event: 0.377 Thread 0x00000000024a2800 Threw 0x00000000f554e3f8 at C:\jdk7u2_64p\jdk7u40\hotspot\src\share\vm\prims\jvm.cpp:1244

      Events (10 events):
      Event: 47.166 Executing VM operation: GetOrSetLocal
      Event: 47.166 Executing VM operation: GetOrSetLocal done
      Event: 47.463 Executing VM operation: ChangeBreakpoints
      Event: 47.463 Executing VM operation: ChangeBreakpoints done
      Event: 47.466 Executing VM operation: EnterInterpOnlyMode
      Event: 47.466 Executing VM operation: EnterInterpOnlyMode done
      Event: 47.466 Executing VM operation: GetCurrentLocation
      Event: 47.466 Executing VM operation: GetCurrentLocation done
      Event: 47.467 Executing VM operation: ChangeSingleStep
      Event: 47.467 Executing VM operation: ChangeSingleStep done


      Dynamic libraries:
      0x000007f789530000 - 0x000007f789563000 C:\Program Files\Java\jdk1.7.0_40\jre\bin\java.exe
      0x000007fb18750000 - 0x000007fb1890e000 C:\Windows\SYSTEM32
      tdll.dll
      0x000007fb15d20000 - 0x000007fb15e56000 C:\Windows\system32\KERNEL32.DLL
      0x000007fb157a0000 - 0x000007fb15893000 C:\Windows\system32\KERNELBASE.dll
      0x000007fb17920000 - 0x000007fb179fe000 C:\Windows\system32\ADVAPI32.dll
      0x000007fb15e60000 - 0x000007fb15fac000 C:\Windows\system32\USER32.dll
      0x000007fb123b0000 - 0x000007fb12619000 C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9200.16384_none_418c2a697189c07f\COMCTL32.dll
      0x000007fb15fb0000 - 0x000007fb16055000 C:\Windows\system32\msvcrt.dll
      0x000007fb17cb0000 - 0x000007fb17cf8000 C:\Windows\SYSTEM32\sechost.dll
      0x000007fb17db0000 - 0x000007fb17ef0000 C:\Windows\system32\RPCRT4.dll
      0x000007fb177e0000 - 0x000007fb17920000 C:\Windows\system32\GDI32.dll
      0x000007fb15ce0000 - 0x000007fb15d19000 C:\Windows\system32\IMM32.DLL
      0x000007fb15bc0000 - 0x000007fb15cd4000 C:\Windows\system32\MSCTF.dll
      0x0000000060e50000 - 0x0000000060f21000 C:\Program Files\Java\jdk1.7.0_40\jre\bin\msvcr100.dll
      0x0000000060f30000 - 0x00000000616f9000 C:\Program Files\Java\jdk1.7.0_40\jre\bin\server\jvm.dll
      0x000007fb12660000 - 0x000007fb12669000 C:\Windows\SYSTEM32\WSOCK32.dll
      0x000007fb14060000 - 0x000007fb14080000 C:\Windows\SYSTEM32\WINMM.dll
      0x000007fb18510000 - 0x000007fb18517000 C:\Windows\system32\PSAPI.DLL
      0x000007fb17f10000 - 0x000007fb17f68000 C:\Windows\system32\WS2_32.dll
      0x000007fb14020000 - 0x000007fb14052000 C:\Windows\SYSTEM32\WINMMBASE.dll
      0x000007fb17fd0000 - 0x000007fb17fd9000 C:\Windows\system32\NSI.dll
      0x0000000060e00000 - 0x0000000060e0f000 C:\Program Files\Java\jdk1.7.0_40\jre\bin\verify.dll
      0x0000000060dd0000 - 0x0000000060df8000 C:\Program Files\Java\jdk1.7.0_40\jre\bin\java.dll
      0x00000000609c0000 - 0x00000000609f5000 C:\Program Files\Java\jdk1.7.0_40\jre\bin\jdwp.dll
      0x00000000609b0000 - 0x00000000609b8000 C:\Program Files\Java\jdk1.7.0_40\jre\bin
      pt.dll
      0x0000000060db0000 - 0x0000000060dc5000 C:\Program Files\Java\jdk1.7.0_40\jre\bin\zip.dll
      0x00000000609a0000 - 0x00000000609a9000 C:\Program Files\Java\jdk1.7.0_40\jre\bin\dt_socket.dll
      0x000007fb14ed0000 - 0x000007fb14f2c000 C:\Windows\system32\mswsock.dll
      0x000007fb02df0000 - 0x000007fb02f53000 C:\Windows\system32\DBGHELP.DLL

      VM Arguments:
      jvm_args: -Xdebug -Xrunjdwp:transport=dt_socket,address=127.0.0.1:2176
      java_command: tests.FixAndContinue
      Launcher Type: SUN_STANDARD

      Environment Variables:
      PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\BinnUSERNAME=Administrator
      OS=Windows_NT
      PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 15 Stepping 10, GenuineIntel



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

      OS: Windows Server 2012 , 64 bit Build 9200

      CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 15 stepping 10, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, tsc

      Memory: 4k page, physical 2095524k(377644k free), swap 4192676k(2381800k free)

      vm_info: Java HotSpot(TM) 64-Bit Server VM (24.0-b54) for windows-amd64 JRE (1.7.0_40-ea-b35), built on Jul 24 2013 18:38:08 by " java_re " with unknown MS VC++:1600

      time: Mon Aug 05 22:43:02 2013
      elapsed time: 61 seconds



      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      /*
       * FixAndContinue.java
       *
       * Created on April 26, 2005, 2:58 PM
       *
       * To change this template, choose Tools | Options and locate the template under
       * the Source Creation and Management node. Right-click the template and choose
       * Open. You can then make changes to the template in the Source Editor.
       */

      package tests;

      /**
       *
       * @author lolo
       */
      public class FixAndContinue {
          
          /** Creates a new instance of FixAndContinue */
          public FixAndContinue() {
          }
          
          public static void main(String args[]) {
              FixAndContinue fc = new FixAndContinue();
              fc.method();
              fc.method();
          }
          
          public void method() {
              System.out.println( " Added line " );
              afterFix();
          }
          
          public void beforeFix() {
              System.out.println( " Before code changes " );
          }
          
          public void afterFix() {
              System.out.println( " After code changes " );
          }
          
          /*public void newMethod() {
              for (int i = 10; i > 0; i--)
                  System.out.println(i);
          }*/
      }

      ---------- END SOURCE ----------

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: