This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 67784 - The profiling should fail more gracefully when the VM is started with both debugging and profiling agents
Summary: The profiling should fail more gracefully when the VM is started with both de...
Status: NEW
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-30 09:49 UTC by iformanek
Modified: 2009-05-25 21:03 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description iformanek 2005-10-30 09:49:39 UTC
If the VM is started with both debugging and profiling agents, it crashes with 
EXCEPTION_ACCESS_VIOLATION. We should preeempt this and warn the user.

Using CATALINA_BASE:   C:\Dokumente und Einstellungen\Mueller\.netbeans\4.1
\jakarta-tomcat-5.5.7_base
Using CATALINA_HOME:   D:\tools\netbeans-4.1\enterprise1\jakarta-tomcat-5.5.7
Using CATALINA_TMPDIR: C:\Dokumente und Einstellungen\Mueller\.netbeans\4.1
\jakarta-tomcat-5.5.7_base\temp
Using JAVA_HOME:       D:\jdk1.5.0_04
Profiler Engine: waiting for connection on port 5140
Profiler Engine: local connection with the tool
Listening for transport dt_socket at address: 11555
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x1000435b, pid=2412, tid=2264
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_04-b05 mixed mode)
# Problematic frame:
# C  [profilerinterface.dll+0x435b]
#
# An error report file with more information is saved as hs_err_pid2412.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Agent_OnLoad called...
Agent_OnLoad completed successfully.

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x1000435b, pid=2412, tid=2264
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_04-b05 mixed mode)
# Problematic frame:
# C  [profilerinterface.dll+0x435b]
#

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

Current thread (0x00239898):  JavaThread "main" [_thread_in_native, id=2264]

siginfo: ExceptionCode=0xc0000005, writing address 0x00fc308c

Registers:
EAX=0x007e16d0, EBX=0x007e0650, ECX=0x007e178c, EDX=0x007e1904
ESP=0x0006d664, EBP=0x0006d684, ESI=0x0000003f, EDI=0x007f700c
EIP=0x1000435b, EFLAGS=0x00010202

Top of Stack: (sp=0x0006d664)
0x0006d664:   007f56fd 00000167 000000a6 fffffffd
0x0006d674:   00000170 007e1814 007e178c 00000000
0x0006d684:   00000167 10003030 007e0650 0b3baf05
0x0006d694:   10003001 00000167 10002fee 00000167
0x0006d6a4:   00000000 10002b36 00000167 00239954
0x0006d6b4:   0b072434 0006d788 0b3baec8 10002d47
0x0006d6c4:   00239954 0b3baec8 0b072434 00000167
0x0006d6d4:   0b05cf20 00238488 00239898 00000167

Instructions: (pc=0x1000435b)
0x1000434b:   00 00 80 d3 ee 09 37 8b 4d f8 85 c9 74 0b 89 0a
0x1000435b:   89 4c 11 fc eb 03 8b 4d f8 8b 75 f0 03 d1 8d 4e


Stack: [0x00030000,0x00070000),  sp=0x0006d664,  free space=245k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [profilerinterface.dll+0x435b]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  java.lang.ClassLoader.defineClass1(Ljava/lang/String;
[BIILjava/security/ProtectionDomain;Ljava/lang/String;)Ljava/lang/Class;+0
j  java.lang.ClassLoader.defineClass(Ljava/lang/String;
[BIILjava/security/ProtectionDomain;)Ljava/lang/Class;+34
j  java.security.SecureClassLoader.defineClass(Ljava/lang/String;
[BIILjava/security/CodeSource;)Ljava/lang/Class;+27
j  java.net.URLClassLoader.defineClass(Ljava/lang/String;Lsun/misc/Resource;)
Ljava/lang/Class;+253
j  java.net.URLClassLoader.access$100
(Ljava/net/URLClassLoader;Ljava/lang/String;Lsun/misc/Resource;)
Ljava/lang/Class;+3
j  java.net.URLClassLoader$1.run()Ljava/lang/Object;+43
v  ~StubRoutines::call_stub
j  java.security.AccessController.doPrivileged
(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)
Ljava/lang/Object;+0
j  java.net.URLClassLoader.findClass(Ljava/lang/String;)Ljava/lang/Class;+13
j  java.lang.ClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+43
j  java.lang.ClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class;+3
j  java.lang.ClassLoader.loadClassInternal(Ljava/lang/String;)
Ljava/lang/Class;+2
v  ~StubRoutines::call_stub
j  java.lang.Class.forName0(Ljava/lang/String;ZLjava/lang/ClassLoader;)
Ljava/lang/Class;+0
j  java.lang.Class.forName(Ljava/lang/String;)Ljava/lang/Class;+5
j  org.apache.catalina.connector.Connector.<init>(Ljava/lang/String;)V+175
j  org.apache.catalina.startup.ConnectorCreateRule.begin
(Lorg/xml/sax/Attributes;)V+16
j  org.apache.tomcat.util.digester.Rule.begin
(Ljava/lang/String;Ljava/lang/String;Lorg/xml/sax/Attributes;)V+2
j  org.apache.tomcat.util.digester.Digester.startElement
(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lorg/xml/sax/Attributes;)
V+369
j
org.apache.xerces.parsers.AbstractSAXParser.startElement
(Lorg/apache/xerces/xni/QName;Lorg/apache/xerces/xni/XMLAttributes;Lorg/apache/x
erces/xni/Augmentations;)V+256

j
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement
(Lorg/apache/xerces/xni/QName;Lorg/apache/xerces/xni/XMLAttributes;Lorg/apache/x
erces/xni/Augmentations;)V+4
J  org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement()Z
j  
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.
dispatch(Z)Z+416
j  org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Z)Z+24
j  org.apache.xerces.parsers.XML11Configuration.parse(Z)Z+122
j  org.apache.xerces.parsers.XML11Configuration.parse
(Lorg/apache/xerces/xni/parser/XMLInputSource;)V+29
j  org.apache.xerces.parsers.XMLParser.parse
(Lorg/apache/xerces/xni/parser/XMLInputSource;)V+9
j  org.apache.xerces.parsers.AbstractSAXParser.parse(Lorg/xml/sax/InputSource;)
V+43
j  org.apache.tomcat.util.digester.Digester.parse(Lorg/xml/sax/InputSource;)
Ljava/lang/Object;+9
j  org.apache.catalina.startup.Catalina.load()V+163
j  org.apache.catalina.startup.Catalina.load([Ljava/lang/String;)V+9
v  ~StubRoutines::call_stub
j  sun.reflect.NativeMethodAccessorImpl.invoke0
(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)
Ljava/lang/Object;+0
j  sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;
[Ljava/lang/Object;)Ljava/lang/Object;+87
j  sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;
[Ljava/lang/Object;)Ljava/lang/Object;+6
j  java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)
Ljava/lang/Object;+111
j  org.apache.catalina.startup.Bootstrap.load([Ljava/lang/String;)V+104
j  org.apache.catalina.startup.Bootstrap.main([Ljava/lang/String;)V+152
v  ~StubRoutines::call_stub

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

Java Threads: ( => current thread )
  0x009f2680 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2428]
  0x009f0e98 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2372]
  0x009e3160 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2452]
  0x009eec78 JavaThread "JDWP Event Helper Thread" daemon [_thread_blocked, 
id=2316]
  0x009e4b90 JavaThread "JDWP Transport Listener: dt_socket" daemon 
[_thread_in_native, id=2260]
  0x009df420 JavaThread "*** Profiler Agent Special Execution Thread ***" 
[_thread_blocked, id=1964]
  0x009de780 JavaThread "*** JFluid Monitor thread ***" [_thread_blocked, 
id=2040]
  0x009d0a00 JavaThread "*** Profiler Agent Communication Thread ***" 
[_thread_in_native, id=2376]
  0x009c4b98 JavaThread "Finalizer" daemon [_thread_blocked, id=1744]
  0x009c36a8 JavaThread "Reference Handler" daemon [_thread_blocked, id=1320]
=>0x00239898 JavaThread "main" [_thread_in_native, id=2264]

Other Threads:
  0x009c0db8 VMThread [id=1576]
  0x009f3c68 WatcherThread [id=868]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation   total 576K, used 524K [0x02a80000, 0x02b20000, 0x02f60000)
  eden space 512K,  89% used [0x02a80000, 0x02af30e8, 0x02b00000)
  from space 64K,  99% used [0x02b00000, 0x02b0fff8, 0x02b10000)
  to   space 64K,   0% used [0x02b10000, 0x02b10000, 0x02b20000)
 tenured generation   total 1848K, used 1176K [0x02f60000, 0x0312e000, 
0x06a80000)
   the space 1848K,  63% used [0x02f60000, 0x03086208, 0x03086400, 0x0312e000)
 compacting perm gen  total 8192K, used 4607K [0x06a80000, 0x07280000, 
0x0aa80000)
   the space 8192K,  56% used [0x06a80000, 0x06effef0, 0x06f00000, 0x07280000)
No shared spaces configured.

Dynamic libraries:
0x00400000 - 0x0040c000  D:\jdk1.5.0_04\bin\java.exe
0x77880000 - 0x77902000  C:\WINNT\system32\ntdll.dll
0x79350000 - 0x793b5000  C:\WINNT\system32\ADVAPI32.dll
0x77e70000 - 0x77f30000  C:\WINNT\system32\KERNEL32.dll
0x77d20000 - 0x77d98000  C:\WINNT\system32\RPCRT4.dll
0x78000000 - 0x78045000  C:\WINNT\system32\MSVCRT.dll
0x6d6b0000 - 0x6d839000  D:\jdk1.5.0_04\jre\bin\client\jvm.dll
0x77e00000 - 0x77e69000  C:\WINNT\system32\USER32.dll
0x77f40000 - 0x77f7f000  C:\WINNT\system32\GDI32.dll
0x77540000 - 0x77571000  C:\WINNT\system32\WINMM.dll
0x75df0000 - 0x75e0a000  C:\WINNT\system32\IMM32.DLL
0x6c920000 - 0x6c928000  C:\WINNT\system32\LPK.DLL
0x664b0000 - 0x66504000  C:\WINNT\system32\USP10.dll
0x6bd00000 - 0x6bd0d000  C:\WINNT\system32\SYNCOR11.DLL
0x6d2f0000 - 0x6d2f8000  D:\jdk1.5.0_04\jre\bin\hpi.dll
0x68f30000 - 0x68f3b000  C:\WINNT\system32\PSAPI.DLL
0x6d3f0000 - 0x6d425000  D:\jdk1.5.0_04\jre\bin\jdwp.dll
0x10000000 - 0x1000f000  D:\tools\netbeans-4.1\profiler1\lib\deployed\jdk15
\windows\profilerinterface.dll
0x6d680000 - 0x6d68c000  D:\jdk1.5.0_04\jre\bin\verify.dll
0x6d370000 - 0x6d38d000  D:\jdk1.5.0_04\jre\bin\java.dll
0x6d6a0000 - 0x6d6af000  D:\jdk1.5.0_04\jre\bin\zip.dll
0x6d530000 - 0x6d543000  D:\jdk1.5.0_04\jre\bin\net.dll
0x74fa0000 - 0x74fb4000  C:\WINNT\system32\WS2_32.dll
0x74f90000 - 0x74f98000  C:\WINNT\system32\WS2HELP.DLL
0x74f40000 - 0x74f5e000  C:\WINNT\system32\msafd.dll
0x74f80000 - 0x74f87000  C:\WINNT\System32\wshtcpip.dll
0x6d520000 - 0x6d528000  D:\jdk1.5.0_04\jre\bin\management.dll
0x6d290000 - 0x6d297000  D:\jdk1.5.0_04\jre\bin\dt_socket.dll

VM Arguments:
jvm_args: -agentpath:D:\tools\netbeans-4.1\profiler1\lib\deployed\jdk15
\windows\profilerinterface.dll=D:\tools\netbeans-4.1\profiler1\lib,5140 -Xdebug
 -Xrunjdwp:transport=dt_socket,address=11555,server=y,suspend=n -
Djava.endorsed.dirs=D:
\tools\netbeans-4.1\enterprise1\jakarta-tomcat-5.5.7\common\endorsed -
Dcatalina.base=C:\Dokumente und
Einstellungen\Mueller\.netbeans\4.1\jakarta-tomcat-5.5.7_base -
Dcatalina.home=D:\tools\netbeans-4.1\enterprise1\jakarta-tomcat-5.5.7
-Djava.io.tmpdir=C:\Dokumente und Einstellungen\Mueller\.netbeans\4.1\jakarta-
tomcat-5.5.7_base\temp
java_command: org.apache.catalina.startup.Bootstrap start

Environment Variables:
JAVA_HOME=D:\jdk1.5.0_04
CLASSPATH=D:\jdk1.5.0_04\lib\tools.jar;D:\tools\netbeans-4.1\enterprise1
\jakarta-tomcat-5.5.7\bin\bootstrap.jar
PATH=D:\jdk1.5.0_01\bin;D:\oracle\9i\jre\1.4.2\bin\client;D:\oracle\9i\jre\1.4.2
\bin;D:\tools\Gupta\team developer 3.1;D:\oracle\9i\bin;C:
\Programme\Oracle\jre\1.3.1\bin;C:\Programme\Oracle\jre\1.1.8\bin;D:\jdk1.5.0_01
\bin;D:\tools\apache-ant-1.6.2\bin;D:\oracle\10g\bin;D:
\oracle\10g\jre\1.4.2\bin\client;D:\oracle\10g\jre\1.4.2
\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Programme\Resource 
Kit\;C:
\SFU\common\;C:\Programme\Gemeinsame Dateien\GTK\2.0\bin;D:\appserver\jwsdp-1.6
\jwsdp-shared\bin;D:\appserver\sun8\bin;;C:\Programme\Microsoft Visual
Studio\Common\Tools\WinNT;C:\Programme\Microsoft Visual Studio\Common\MSDev98
\Bin;C:\Programme\Microsoft Visual Studio\Common\Tools;C:
\Programme\Microsoft Visual Studio\VC98\bin;D:\tools\Gupta\team developer 3.1
USERNAME=Mueller
LD_LIBRARY_PATH=/usr/lib:/usr/X11R6/lib
DISPLAY=localhost:0.0
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 1, GenuineIntel



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

OS: Windows 2000 Build 2195 Service Pack 4

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

Memory: 4k page, physical 1039804k(286092k free), swap 1716312k(896228k free)

vm_info: Java HotSpot(TM) Client VM (1.5.0_04-b05) for windows-x86, built on 
Jun  3 2005 02:10:41 by "java_re" with MS VC++ 6.0
Comment 1 iformanek 2005-12-02 16:07:46 UTC
Changing to enhancement and removing from 1.0
Comment 2 Tomas Hurka 2009-04-08 12:50:33 UTC
Milestone cleanup: future->next