JDK-6512128 : Cannot profile glassfish server using netbeans profiler
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jvmti
  • Affected Version: 5.0u11
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2007-01-11
  • Updated: 2023-12-13
  • Resolved: 2016-11-03
Related Reports
Relates :  
Description
After attach to a glassfish server configured for profiling with NetBeans profiler a java error occures.


NetBeans profiler m6
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)
Glassfish V1 UR1 P01 Build 02

Error log:
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  Internal Error (455843455054494F4E530E4350500112), pid=5384, tid=4764
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode)

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

Current thread (0x0003c858):  JavaThread "main" [_thread_in_vm, id=4764]

Stack: [0x00040000,0x00080000),  sp=0x0007faf0,  free space=254k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [jvm.dll+0x12430d]
V  [jvm.dll+0x6366e]
V  [jvm.dll+0x691fb]
V  [jvm.dll+0xdb8e2]
V  [jvm.dll+0x11270b]
V  [jvm.dll+0x919fc]
C  [java.exe+0x2120]
C  [java.exe+0x11bb]
C  [java.exe+0x69cd]
C  [kernel32.dll+0x16fd7]


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

Java Threads: ( => current thread )
  0x02d6a160 JavaThread "*** Profiler Agent Special Execution Thread 6" daemon [_thread_blocked, id=5904]
  0x02d66170 JavaThread "*** JFluid Monitor thread ***" daemon [_thread_blocked, id=4936]
  0x02d54ac8 JavaThread "*** Profiler Agent Communication Thread" daemon [_thread_blocked, id=2304]
  0x009770c0 JavaThread "Finalizer" daemon [_thread_blocked, id=4884]
  0x00963ef0 JavaThread "Reference Handler" daemon [_thread_blocked, id=3932]
=>0x0003c858 JavaThread "main" [_thread_in_vm, id=4764]

Other Threads:
  0x0095f5e8 VMThread [id=4312]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation   total 576K, used 320K [0x10010000, 0x100b0000, 0x1aab0000)
  eden space 512K,  50% used [0x10010000, 0x100501b0, 0x10090000)
  from space 64K,  99% used [0x100a0000, 0x100afff8, 0x100b0000)
  to   space 64K,   0% used [0x10090000, 0x10090000, 0x100a0000)
 tenured generation   total 1408K, used 129K [0x1aab0000, 0x1ac10000, 0x30010000)
   the space 1408K,   9% used [0x1aab0000, 0x1aad0750, 0x1aad0800, 0x1ac10000)
 compacting perm gen  total 8192K, used 2585K [0x30010000, 0x30810000, 0x34010000)
   the space 8192K,  31% used [0x30010000, 0x30296740, 0x30296800, 0x30810000)
No shared spaces configured.

Dynamic libraries:
0x00400000 - 0x0040d000 	C:\jdks\jdk1.5.0\bin\java.exe
0x7c900000 - 0x7c9b0000 	C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c8f4000 	C:\WINDOWS\system32\kernel32.dll
0x77dd0000 - 0x77e6b000 	C:\WINDOWS\system32\ADVAPI32.dll
0x77e70000 - 0x77f01000 	C:\WINDOWS\system32\RPCRT4.dll
0x77c10000 - 0x77c68000 	C:\WINDOWS\system32\MSVCRT.dll
0x6d740000 - 0x6d8dd000 	C:\jdks\jdk1.5.0\jre\bin\client\jvm.dll
0x77d40000 - 0x77dd0000 	C:\WINDOWS\system32\USER32.dll
0x77f10000 - 0x77f57000 	C:\WINDOWS\system32\GDI32.dll
0x76b40000 - 0x76b6d000 	C:\WINDOWS\system32\WINMM.dll
0x76390000 - 0x763ad000 	C:\WINDOWS\system32\IMM32.DLL
0x6d300000 - 0x6d308000 	C:\jdks\jdk1.5.0\jre\bin\hpi.dll
0x76bf0000 - 0x76bfb000 	C:\WINDOWS\system32\PSAPI.DLL
0x10000000 - 0x10008000 	E:\Builds\dev\NetBeans m6\profiler1\lib\deployed\jdk15\windows\profilerinterface.dll
0x6d710000 - 0x6d71c000 	C:\jdks\jdk1.5.0\jre\bin\verify.dll
0x6d380000 - 0x6d39d000 	C:\jdks\jdk1.5.0\jre\bin\java.dll
0x6d730000 - 0x6d73f000 	C:\jdks\jdk1.5.0\jre\bin\zip.dll
0x6d540000 - 0x6d553000 	C:\jdks\jdk1.5.0\jre\bin\net.dll
0x71ab0000 - 0x71ac7000 	C:\WINDOWS\system32\WS2_32.dll
0x71aa0000 - 0x71aa8000 	C:\WINDOWS\system32\WS2HELP.dll
0x71a50000 - 0x71a8f000 	C:\WINDOWS\system32\mswsock.dll
0x662b0000 - 0x66308000 	C:\WINDOWS\system32\hnetcfg.dll
0x71a90000 - 0x71a98000 	C:\WINDOWS\System32\wshtcpip.dll
0x6d530000 - 0x6d538000 	C:\jdks\jdk1.5.0\jre\bin\management.dll

VM Arguments:
jvm_args: -agentpath:E:\Builds\dev\NetBeans m6\profiler1\lib\deployed\jdk15\windows\profilerinterface.dll="E:\Builds\dev\NetBeans m6\profiler1\lib",5140 -Xmx512m -XX:NewRatio=2 -Dcom.sun.aas.defaultLogFile=E:/Builds/j2ees/glassfish/domains/domain1/logs/server.log -Dcom.sun.aas.verboseMode=true -Djava.endorsed.dirs=E:/Builds/j2ees/glassfish/lib/endorsed -Djava.security.policy=E:/Builds/j2ees/glassfish/domains/domain1/config/server.policy -Djava.security.auth.login.config=E:/Builds/j2ees/glassfish/domains/domain1/config/login.conf -Dsun.rmi.dgc.server.gcInterval=3600000 -Dsun.rmi.dgc.client.gcInterval=3600000 -Djavax.net.ssl.keyStore=E:/Builds/j2ees/glassfish/domains/domain1/config/keystore.jks -Djavax.net.ssl.trustStore=E:/Builds/j2ees/glassfish/domains/domain1/config/cacerts.jks -Djava.ext.dirs=C:/jdks/jdk1.5.0/jre/lib/ext;E:/Builds/j2ees/glassfish/domains/domain1/lib/ext;E:/Builds/j2ees/glassfish/javadb/lib -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver -Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory -Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar -Dcom.sun.enterprise.taglisteners=jsf-impl.jar -Dhttp.proxyHost=webcache.uk.sun.com -Dhttp.proxyPort=8080 -Dhttps.proxyHost=webcache.uk.sun.com -Dhttps.proxyPort=8080 -Dhttp.nonProxyHosts=czech.sun.com*|<local>*|localhost|127.0.0.1|ehucka-nb -Dcom.sun.aas.classloader.optionalOverrideableChain=appserv-ws.jar,commons-logging.jar,commons-launcher.jar -Dcom.sun.aas.classloader.appserverChainJars=admin-cli.jar,admin-cli-ee.jar,dbschema.jar,j2ee-svc.jar -Dcom.sun.aas.classloader.serverClassPath.ee=%HADB_HOME%/lib/hadbjdbc4.jar,E:/Builds/j2ees/glassfish/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,%HADB_HOME%/lib/dbstate.jar,%HADB_HOME%/lib/hadbm.jar,%HADB_HOME%/lib/hadbmgt.jar,%MFWK_HOME%/lib/mfwk_instrum_tk.jar -Dcom.sun.aas.configName=se
java_command: com.sun.enterprise.server.PELaunch start verbose
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=C:\jdks\jdk1.5.0
PATH=E:\Builds\j2ees\glassfish\lib;E:\Builds\j2ees\glassfish\bin;E:\Builds\j2ees\glassfish\bin;E:\Builds\j2ees\glassfish\lib;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\Wireless\Bin\;C:\Program Files\WinSCP3\;C:\Program Files\Reflection\;E:\Programs\mplayer\;E:\Programs\ssh;C:\WINDOWS\system32\unknown\
USERNAME=ehucka
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 13 Stepping 8, GenuineIntel



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

OS: Windows XP Build 2600 Service Pack 2

CPU:total 1 (cores per cpu 1, threads per core 1) family 6 model 13 stepping 8, cmov, cx8, fxsr, mmx, sse, sse2

Memory: 4k page, physical 1046640k(302572k free), swap 1993484k(1238288k free)

vm_info: Java HotSpot(TM) Client VM (1.5.0_11-b03) for windows-x86, built on Dec 15 2006 01:16:12 by "java_re" with MS VC++ 6.0
With a version of com.sun.tools.profiler.server.ProfilerServer.activate()
modified to throw a NullPointerException, the following similar crashes
were generated:

;; Using jvm: /java/re/jdk/1.5.0_08/latest/binaries/solaris-i586/jre/lib/i386/client/libjvm.so
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  Internal Error (455843455054494F4E530E4350500112), pid=17502, tid=1;;
;; Error ID is exceptions.cpp, 274
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_08-b03 mixed mode)

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

Current thread (0x080746b8):  JavaThread "main" [_thread_in_vm, id=1]

Stack: [0x08007000,0x08048000),  sp=0x08046564,  free space=253k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x32b114];;  void VMError::report_and_die()+0x444
V  [libjvm.so+0x1c2dc9];;  void report_fatal(const char*,int,const char*)+0x39
V  [libjvm.so+0x407bb];;  ExceptionMark::ExceptionMark(Thread*&)+0x8b
V  [libjvm.so+0xcca84];;  void os::signal_init()+0x34
V  [libjvm.so+0x3712c];;  int Threads::create_vm(JavaVMInitArgs*,int*)+0x86c
V  [libjvm.so+0x3670f];;  JNI_CreateJavaVM+0x8f
C  [java+0x18f8]  main+0x565
C  [java+0x12fa]


;; Using jvm: /java/re/jdk/1.6.0/latest/binaries/solaris-i586/jre/lib/i386/client/libjvm.so
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  Internal Error (455843455054494F4E530E4350500129), pid=17554, tid=2;;
;; Error ID is exceptions.cpp, 297
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0-b105 mixed mode)
# 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 (0x08070000):  JavaThread "main" [_thread_in_vm, id=2]

Stack: [0xd174e000,0xd179e000),  sp=0xd179db48,  free space=318k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x35885d];;  void VMError::report_and_die()+0x531
V  [libjvm.so+0x1b58a3];;  void report_fatal(const char*,int,const char*)+0x3b
V  [libjvm.so+0x40ff3];;  ExceptionMark::ExceptionMark(Thread*&)+0x87
V  [libjvm.so+0xbc53d];;  void CompileBroker::init_compiler_threads(int)+0x29
V  [libjvm.so+0x19d13c];;  void CompileBroker::compilation_init()+0x90
V  [libjvm.so+0x32737b];;  int Threads::create_vm(JavaVMInitArgs*,bool*)+0x74f
V  [libjvm.so+0x3a11e];;  JNI_CreateJavaVM+0xa6
C  [java+0x23bf]
C  [libc.so.1+0x9f708];;  _thr_setup+0x4e
C  [libc.so.1+0x9f9f0];;  _lwp_start+0x0


;; Using jvm: /java/re/jdk/1.7.0/latest/binaries/solaris-i586/jre/lib/i386/client/libjvm.so
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  Internal Error (455843455054494F4E530E4350500129), pid=17581, tid=2;;
;; Error ID is exceptions.cpp, 297
#
# Java VM: Java HotSpot(TM) Client VM (1.7.0-ea-b05 mixed mode)
# 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 (0x08070000):  JavaThread "main" [_thread_in_vm, id=2]

Stack: [0xd176e000,0xd17be000),  sp=0xd17bdb58,  free space=318k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x357c51];;  void VMError::report_and_die()+0x531
V  [libjvm.so+0x1b779b];;  void report_fatal(const char*,int,const char*)+0x3b
V  [libjvm.so+0x414ab];;  ExceptionMark::ExceptionMark(Thread*&)+0x87
V  [libjvm.so+0xbcd31];;  void CompileBroker::init_compiler_threads(int)+0x29
V  [libjvm.so+0x19eb54];;  void CompileBroker::compilation_init()+0x90
V  [libjvm.so+0x325a6f];;  int Threads::create_vm(JavaVMInitArgs*,bool*)+0x747
V  [libjvm.so+0x3a783];;  JNI_CreateJavaVM+0x7b
C  [java+0x23bf]
C  [libc.so.1+0x9f708];;  _thr_setup+0x4e
C  [libc.so.1+0x9f9f0];;  _lwp_start+0x0

Comments
This is not on our list of current priorities, if this changes please re-open this issue.
03-11-2016

EVALUATION This particular failure has been tracked back to a bug in the agent's event handler. See the comments section for the gory details. However, the VM's handling of this failure mode is absolutely atrocious so this bug will be used to improve that situation.
06-04-2007

EVALUATION The same failure mode and call stack is also reported in the following bug: 5101823 4/4 1.5 HotSpot client VM crashes when used with OptimizeIt v4.02 profiling tool For 5101823 the problem is believed to be a bug in 3rd party code. Since this bug is using the NetBeans profiler and not OptimizeIt, it may not be the same bug, but the fingerprints certainly look the same. In any case, this looks like it needs more investigation at the JNI layer.
11-01-2007