JDK-6434843 : NetBeans 5.0 crashed while pasting
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: windows_2003
  • CPU: x86
  • Submitted: 2006-06-06
  • Updated: 2010-08-06
  • Resolved: 2006-07-26
Related Reports
Relates :  
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.6.0-beta2"
Java(TM) SE Runtime Environment (build 1.6.0-beta2-b83)
Java HotSpot(TM) Client VM (build 1.6.0-beta2-b83, mixed mode, sharing)


FULL OS VERSION :
Microsoft Windows [Version 5.2.3790]


A DESCRIPTION OF THE PROBLEM :
While editing code in NetBeans 5.0, pasting a block of code made the Java VM crash. From the crash dump, it appears that syntax highlighting or code annotation was taking place.


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 :
In NetBeans 5.0, copy a block of code.
Move cursor to a different position.
Paste block of code.

EXPECTED VERSUS ACTUAL BEHAVIOR :
Expected: code is pasted. Annotation and syntax highlighting takes place.
Actual: NetBeans window disappeared. Java application crashed.

ERROR MESSAGES/STACK TRACES THAT OCCUR :
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x009b53c1, pid=4068, tid=3056
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0-beta2-b83 mixed mode)
# Problematic frame:
# v  ~BufferBlob::vtable chunks
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

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

Current thread (0x1fba9400):  JavaThread "Error Annotation Queue" daemon [_thread_in_Java, id=3056]

siginfo: ExceptionCode=0xc0000005, reading address 0xf8000048

Registers:
EAX=0x0f2add19, EBX=0xf8000000, ECX=0x0f2b4998, EDX=0x0f2b4998
ESP=0x1d96f47c, EBP=0x1d96f4b8, ESI=0x118f43a0, EDI=0x00000000
EIP=0x009b53c1, EFLAGS=0x00010202

  Top of Stack: (sp=0x1d96f47c)
0x1d96f47c:   009f18b8 0000002e 02c804f8 0000000b
0x1d96f48c:   00000000 7c34218f 1fba9400 1d96f4b8
0x1d96f49c:   00e8275c 118f43a0 0f2b4998 0000002a
0x1d96f4ac:   0d5e6298 0f47e7d0 0000002e 1d96f528
0x1d96f4bc:   012a26a0 00000e44 0c69ba80 1d96f528
0x1d96f4cc:   00e68e7c 0c69ba80 0003a385 0000000b
0x1d96f4dc:   00e80548 02c804dc 00000016 1d96f528
0x1d96f4ec:   6d83d039 02c804dc 02c7f83c 0c69ba80

Instructions: (pc=0x009b53c1)
0x009b53b1:   00 09 00 00 00 00 00 8b 41 04 8b 98 28 01 00 00
0x009b53c1:   ff 63 48 00 00 00 00 00 00 00 00 16 00 00 00 01


Stack: [0x1d920000,0x1d970000),  sp=0x1d96f47c,  free space=317k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
v  ~BufferBlob::vtable chunks
J  com.sun.tools.javac.jvm.ClassReader.enterClass(Lcom/sun/tools/javac/util/Name;Lcom/sun/tools/javac/code/Symbol$TypeSymbol;)Lcom/sun/tools/javac/code/Symbol$ClassSymbol;
J  com.sun.tools.javac.jvm.ClassReader.includeClassFile(Lcom/sun/tools/javac/code/Symbol$PackageSymbol;Lcom/sun/tools/javac/util/FileEntry;)V
J  org.netbeans.lib.gjast.ASClassReader.includeClassFile(Lcom/sun/tools/javac/code/Symbol$PackageSymbol;Lcom/sun/tools/javac/util/FileEntry;)V
J  com.sun.tools.javac.jvm.ClassReader.list(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Lcom/sun/tools/javac/code/Symbol$PackageSymbol;)V
J  com.sun.tools.javac.jvm.ClassReader.listAll(Ljava/util/Collection;Ljava/lang/String;[Ljava/lang/String;Lcom/sun/tools/javac/code/Symbol$PackageSymbol;)V
j  com.sun.tools.javac.jvm.ClassReader.fillIn(Lcom/sun/tools/javac/code/Symbol$PackageSymbol;)V+113
J  com.sun.tools.javac.jvm.ClassReader.complete(Lcom/sun/tools/javac/code/Symbol;)V
J  com.sun.tools.javac.code.Symbol.complete()V
j  com.sun.tools.javac.comp.Enter.visitTopLevel(Lcom/sun/tools/javac/tree/Tree$TopLevel;)V+132
j  com.sun.tools.javac.tree.Tree$TopLevel.accept(Lcom/sun/tools/javac/tree/Tree$Visitor;)V+2
J  com.sun.tools.javac.comp.Enter.classEnter(Lcom/sun/tools/javac/tree/Tree;Lcom/sun/tools/javac/comp/Env;)Lcom/sun/tools/javac/code/Type;
J  com.sun.tools.javac.comp.Enter.classEnter(Lcom/sun/tools/javac/util/List;Lcom/sun/tools/javac/comp/Env;)Lcom/sun/tools/javac/util/List;
J  com.sun.tools.javac.comp.Enter.complete(Lcom/sun/tools/javac/util/List;Lcom/sun/tools/javac/code/Symbol$ClassSymbol;)V
J  org.netbeans.lib.gjast.ASErrorChecker.compile(Ljava/lang/String;Ljava/io/Reader;)V
j  org.netbeans.lib.gjast.ASErrorChecker.parse()I+95
j  org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl$ErrorList.initCheck()V+105
j  org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl$ErrorList.size()I+1
j  org.netbeans.modules.java.JavaEditor.refreshAnnotations()V+36
j  org.netbeans.modules.java.JavaEditor.access$400(Lorg/netbeans/modules/java/JavaEditor;)V+1
j  org.netbeans.modules.java.JavaEditor$2.run()V+103
j  org.openide.util.RequestProcessor$Task.run()V+15
J  org.openide.util.RequestProcessor$Processor.run()V
v  ~StubRoutines::call_stub


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

Java Threads: ( => current thread )
  0x1fdf1c00 JavaThread "Inactive RequestProcessor thread [Was:Default RequestProcessor/org.netbeans.modules.editor.errorstripe.AnnotationView$RepaintTask]" daemon [_thread_blocked, id=3692]
  0x1fab8400 JavaThread "Java Node State Updater" daemon [_thread_blocked, id=984]
  0x1faea800 JavaThread "Hints RP" daemon [_thread_blocked, id=1036]
=>0x1fba9400 JavaThread "Error Annotation Queue" daemon [_thread_in_Java, id=3056]
  0x1d20a400 JavaThread "Source hierarchy bridge" daemon [_thread_blocked, id=3124]
  0x1fc5bc00 JavaThread "Overriddens Queue" daemon [_thread_blocked, id=3388]
  0x1d4aa400 JavaThread "VCS Command Tasks Starter Loop" daemon [_thread_blocked, id=2796]
  0x1d281400 JavaThread "External Command Output Grabber Processor" daemon [_thread_blocked, id=3856]
  0x1c1c5400 JavaThread "MDR event dispatcher" daemon [_thread_blocked, id=3724]
  0x00288000 JavaThread "DestroyJavaVM" [_thread_blocked, id=1452]
  0x1c4b8800 JavaThread "Collaboration Notification" daemon [_thread_blocked, id=3520]
  0x1c4b7400 JavaThread "AWT-EventQueue-1" [_thread_blocked, id=3896]
  0x1c1d8c00 JavaThread "TimerQueue" daemon [_thread_blocked, id=3920]
  0x1c2e2400 JavaThread "AWT-Windows" daemon [_thread_in_native, id=1924]
  0x1c2e1800 JavaThread "AWT-Shutdown" [_thread_blocked, id=1832]
  0x1c2cd000 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=3904]
  0x1c2ac000 JavaThread "Timer-0" daemon [_thread_blocked, id=2876]
  0x1c2a8400 JavaThread "CLI Requests Server" daemon [_thread_in_native, id=924]
  0x1c048400 JavaThread "Active Reference Queue Daemon" daemon [_thread_blocked, id=520]
  0x1abdcc00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=1720]
  0x1abdb400 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2884]
  0x1abd9000 JavaThread "Attach Listener" daemon [_thread_blocked, id=3804]
  0x1abd8000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=708]
  0x1abd7000 JavaThread "Surrogate Locker Thread (CMS)" daemon [_thread_blocked, id=1936]
  0x1abc1400 JavaThread "Finalizer" daemon [_thread_blocked, id=3064]
  0x1abbd000 JavaThread "Reference Handler" daemon [_thread_blocked, id=3776]

Other Threads:
  0x1abb9c00 VMThread [id=2808]
  0x1abdf000 WatcherThread [id=692]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 par new generation   total 8128K, used 2500K [0x02a30000, 0x03230000, 0x03230000)
  eden space 8064K,  31% used [0x02a30000, 0x02ca1360, 0x03210000)
  from space 64K,   0% used [0x03220000, 0x03220000, 0x03230000)
  to   space 64K,   0% used [0x03210000, 0x03210000, 0x03220000)
 concurrent mark-sweep generation total 253952K, used 177183K [0x03230000, 0x12a30000, 0x12a30000)
 concurrent-mark-sweep perm gen total 93420K, used 53478K [0x12a30000, 0x1856b000, 0x1aa30000)

Dynamic libraries:
0x00400000 - 0x00423000 	C:\Program Files\Java\jdk1.6.0\jre\bin\java.exe
0x7c800000 - 0x7c8c0000 	C:\WINDOWS\system32\ntdll.dll
0x77e40000 - 0x77f42000 	C:\WINDOWS\system32\kernel32.dll
0x77f50000 - 0x77fec000 	C:\WINDOWS\system32\ADVAPI32.dll
0x77c50000 - 0x77cef000 	C:\WINDOWS\system32\RPCRT4.dll
0x7c340000 - 0x7c396000 	C:\Program Files\Java\jdk1.6.0\jre\bin\msvcr71.dll
0x6d7f0000 - 0x6da2d000 	C:\Program Files\Java\jdk1.6.0\jre\bin\client\jvm.dll
0x77380000 - 0x77412000 	C:\WINDOWS\system32\USER32.dll
0x77c00000 - 0x77c48000 	C:\WINDOWS\system32\GDI32.dll
0x76aa0000 - 0x76acd000 	C:\WINDOWS\system32\WINMM.dll
0x76290000 - 0x762ad000 	C:\WINDOWS\system32\IMM32.DLL
0x62d80000 - 0x62d89000 	C:\WINDOWS\system32\LPK.DLL
0x75490000 - 0x754f1000 	C:\WINDOWS\system32\USP10.dll
0x77ba0000 - 0x77bfa000 	C:\WINDOWS\system32\msvcrt.dll
0x6d310000 - 0x6d318000 	C:\Program Files\Java\jdk1.6.0\jre\bin\hpi.dll
0x76b70000 - 0x76b7b000 	C:\WINDOWS\system32\PSAPI.DLL
0x6d7a0000 - 0x6d7ac000 	C:\Program Files\Java\jdk1.6.0\jre\bin\verify.dll
0x6d3a0000 - 0x6d3bf000 	C:\Program Files\Java\jdk1.6.0\jre\bin\java.dll
0x6d7e0000 - 0x6d7ef000 	C:\Program Files\Java\jdk1.6.0\jre\bin\zip.dll
0x6d560000 - 0x6d573000 	C:\Program Files\Java\jdk1.6.0\jre\bin\net.dll
0x71c00000 - 0x71c17000 	C:\WINDOWS\system32\WS2_32.dll
0x71bf0000 - 0x71bf8000 	C:\WINDOWS\system32\WS2HELP.dll
0x76cf0000 - 0x76d0a000 	C:\WINDOWS\system32\iphlpapi.dll
0x76cd0000 - 0x76ce9000 	C:\WINDOWS\system32\MPRAPI.dll
0x76df0000 - 0x76e23000 	C:\WINDOWS\system32\ACTIVEDS.dll
0x76dc0000 - 0x76de7000 	C:\WINDOWS\system32\adsldpc.dll
0x76b80000 - 0x76bae000 	C:\WINDOWS\system32\credui.dll
0x7c8d0000 - 0x7d0d3000 	C:\WINDOWS\system32\SHELL32.dll
0x77da0000 - 0x77df2000 	C:\WINDOWS\system32\SHLWAPI.dll
0x71c40000 - 0x71c98000 	C:\WINDOWS\system32\NETAPI32.dll
0x76f10000 - 0x76f3e000 	C:\WINDOWS\system32\WLDAP32.dll
0x76a80000 - 0x76a98000 	C:\WINDOWS\system32\ATL.DLL
0x77670000 - 0x777a4000 	C:\WINDOWS\system32\ole32.dll
0x77d00000 - 0x77d8c000 	C:\WINDOWS\system32\OLEAUT32.dll
0x76e30000 - 0x76e3c000 	C:\WINDOWS\system32\rtutils.dll
0x5ccf0000 - 0x5ccff000 	C:\WINDOWS\system32\SAMLIB.dll
0x770e0000 - 0x771ea000 	C:\WINDOWS\system32\SETUPAPI.dll
0x77420000 - 0x77523000 	C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.3790.1830_x-ww_7AE38CCF\comctl32.dll
0x71b20000 - 0x71b61000 	C:\WINDOWS\system32\mswsock.dll
0x5f270000 - 0x5f2c9000 	C:\WINDOWS\system32\hnetcfg.dll
0x71ae0000 - 0x71ae8000 	C:\WINDOWS\System32\wshtcpip.dll
0x76ed0000 - 0x76ef9000 	C:\WINDOWS\system32\DNSAPI.dll
0x76f70000 - 0x76f77000 	C:\WINDOWS\System32\winrnr.dll
0x76f80000 - 0x76f85000 	C:\WINDOWS\system32\rasadhlp.dll
0x68000000 - 0x6802f000 	C:\WINDOWS\system32\rsaenh.dll
0x76920000 - 0x769e4000 	C:\WINDOWS\system32\USERENV.dll
0x6d000000 - 0x6d1c1000 	C:\Program Files\Java\jdk1.6.0\jre\bin\awt.dll
0x73070000 - 0x73097000 	C:\WINDOWS\system32\WINSPOOL.DRV
0x73860000 - 0x738ac000 	C:\WINDOWS\system32\ddraw.dll
0x73b30000 - 0x73b36000 	C:\WINDOWS\system32\DCIMAN32.dll
0x75e60000 - 0x75e87000 	C:\WINDOWS\system32\apphelp.dll
0x4dc30000 - 0x4dc5e000 	C:\WINDOWS\system32\msctfime.ime
0x6d2b0000 - 0x6d302000 	C:\Program Files\Java\jdk1.6.0\jre\bin\fontmanager.dll
0x6d580000 - 0x6d589000 	C:\Program Files\Java\jdk1.6.0\jre\bin\nio.dll
0x77530000 - 0x775c7000 	C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_5.82.3790.1830_x-ww_1B6F474A\comctl32.dll
0x6d220000 - 0x6d243000 	C:\Program Files\Java\jdk1.6.0\jre\bin\dcpr.dll
0x6d1f0000 - 0x6d21f000 	C:\Program Files\Java\jdk1.6.0\jre\bin\cmm.dll
0x1dac0000 - 0x1dd85000 	C:\WINDOWS\system32\xpsp2res.dll
0x60300000 - 0x60307000 	C:\Program Files\Yahoo!\Messenger\idle.dll

VM Arguments:
jvm_args: -Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade -Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense -Xms32m -Xmx256m -XX:PermSize=32m -XX:MaxPermSize=128m -Xverify:none -Dapple.laf.useScreenMenuBar=true -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled -Dnetbeans.osenv=C:\DOCUME~1\schen\LOCALS~1\Temp\nbenv19 -Dnetbeans.osenv.nullsep=true -Djdk.home=C:\Program Files\Java\jdk1.6.0 -Dnetbeans.home=C:\Program Files\Java\netbeans-5.0\platform6 -Dnetbeans.dirs=C:\Program Files\Java\netbeans-5.0\nb5.0;C:\Program Files\Java\netbeans-5.0\ide6;C:\Program Files\Java\netbeans-5.0\enterprise2;C:\Program Files\Java\netbeans-5.0\harness -Dnetbeans.user=C:\Documents and Settings\schen\.netbeans\5.0 -Dnetbeans.system_http_proxy=DIRECT -Dsun.awt.keepWorkingSetOnMinimize=true
java_command: org/netbeans/Main --branding nb
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=C:\j2sdk1.4.2_06
CLASSPATH=.;D:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;D:\PROGRA~1\IBM\SQLLIB\java\db2jcc.jar;D:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cu.jar;D:\PROGRA~1\IBM\SQLLIB\bin
PATH=C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Perl\bin\;C:\ant\bin\;C:\mysql\bin\;C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin;C:\ZipLip\bin;C:\ZipLip\WEB-INF\zlbat;D:\Program Files\IBM\db2cmv8\inso;D:\Program Files\IBM\db2cmv8;D:\Program Files\IBM\db2cmv8\bin;D:\Program Files\IBM\db2cmv8\dll;D:\PROGRA~1\IBM\SQLLIB\BIN;D:\PROGRA~1\IBM\SQLLIB\FUNCTION
USERNAME=schen
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 9, GenuineIntel



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

OS: Windows Server 2003 family Build 3790 Service Pack 1

CPU:total 2 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht

Memory: 4k page, physical 1039312k(119488k free), swap 2528268k(1648320k free)

vm_info: Java HotSpot(TM) Client VM (1.6.0-beta2-b83) for windows-x86, built on May  4 2006 00:28:23 by "java_re" with unknown MS VC++:1310



REPRODUCIBILITY :
This bug can be reproduced rarely.