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 64114 - [tests] An error during profiling with sampled instrumentation
Summary: [tests] An error during profiling with sampled instrumentation
Status: CLOSED FIXED
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-09-12 13:24 UTC by ehucka
Modified: 2006-10-09 10:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ehucka 2005-09-12 13:24:14 UTC
build 050912

An automated test for sampled instrumentation is always blocked by:

[jvmTestRunner] *** Profiler engine warning: critical: stack integrity violation
on method exit.
[jvmTestRunner] *** methodId on simulated stack top: 7, received methodId
(should match) = 14182
[jvmTestRunner] *** Please report this problem to feedback@profiler.netbeans.org
[jvmTestRunner] *** Thread stack dump:
[jvmTestRunner] simple.cpu.CPU1.main([Ljava/lang/String;)V
[jvmTestRunner] *** Profiler engine warning: critical: stack state on methodExit
is like at rootMethodExit
[jvmTestRunner] *** Please report this problem to feedback@profiler.netbeans.org
[jvmTestRunner] Exception in thread "Thread-10"
java.lang.ArrayIndexOutOfBoundsException: -1
[jvmTestRunner]         at
com.sun.tools.profiler.results.cpu.SampledInstrCPUCallGraphBuilder.doMethodExitUnstamped(SampledInstrCPUCallGraphBuilder.java:124)
[jvmTestRunner]         at
com.sun.tools.profiler.results.cpu.SampledInstrCPUCallGraphBuilder.updateCallGraphs(SampledInstrCPUCallGraphBuilder.java:34)
[jvmTestRunner]         at
com.sun.tools.profiler.results.cpu.CPUCallGraphBuilder.readDataFromBuffer(CPUCallGraphBuilder.java:44)
[jvmTestRunner]         at
com.sun.tools.profiler.ProfilerClient.processProfilingResults(ProfilerClient.java:792)
[jvmTestRunner]         at
com.sun.tools.profiler.ProfilerClient.readAndProcessProfilingResults(ProfilerClient.java:783)
[jvmTestRunner]         at
com.sun.tools.profiler.ProfilerClient.access$2200(ProfilerClient.java:44)
[jvmTestRunner]         at
com.sun.tools.profiler.ProfilerClient$ServerListener.handleServerCommand(ProfilerClient.java:1315)
[jvmTestRunner]         at
com.sun.tools.profiler.ProfilerClient$ServerListener.run(ProfilerClient.java:1258)
Comment 1 ehucka 2005-09-13 10:00:57 UTC
another log from sampled progfiling, maybe the same problem:

*** Profiler engine warning: critical: got unknown event type in
CallGraphBuilder: 126 at 4357
*** Please report this problem to feedback@profiler.netbeans.org
*** Profiler engine warning: critical: got unknown event type in
CallGraphBuilder: 85 at 4360
*** Please report this problem to feedback@profiler.netbeans.org
*** Profiler engine warning: critical: got unknown event type in
CallGraphBuilder: 127 at 51
*** Please report this problem to feedback@profiler.netbeans.org
*** Profiler engine warning: critical: got unknown event type in
CallGraphBuilder: 14 at 61
*** Please report this problem to feedback@profiler.netbeans.org
*** Profiler engine warning: critical: got unknown event type in
CallGraphBuilder: 42 at 71
*** Please report this problem to feedback@profiler.netbeans.org
*** Profiler engine warning: critical: stack integrity violation on method exit.
*** methodId on simulated stack top: 1728, received methodId (should match) = 838
*** Please report this problem to feedback@profiler.netbeans.org
*** Thread stack dump:
java.lang.Thread.join(J)V
java.lang.Thread.join()V
simple.cpu.CPU1.main([Ljava/lang/String;)V
*** Profiler engine warning: critical: stack integrity violation on root method
exit.
*** Original method: java.lang.Thread.join()V, methodId = 1730
*** New method: simple.cpu.CPU1.main([Ljava/lang/String;)V, methodId = 5387
Comment 2 iformanek 2005-09-15 18:46:54 UTC
Part of this issue is fixed.
The sampling now fails at a different place with AIOOB:

java.lang.reflect.InvocationTargetException
        at java.awt.EventQueue.invokeAndWait(EventQueue.java:851)
        at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1257)
[catch] at 
org.netbeans.modules.profiler.utils.IDEUtils.runInEventDispatchThreadAndWait
(IDEUtils.java:87)
        at 
org.netbeans.modules.profiler.NetBeansProfiler$IDEAppStatusHandler.handleShutdow
n(NetBeansProfiler.java:1283)
        at com.sun.tools.profiler.ProfilerClient$ServerListener$1.run
(ProfilerClient.java:1290)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 250
        at com.sun.tools.profiler.results.cpu.CPUCCTContainer.store2Bytes
(CPUCCTContainer.java:556)
        at 
com.sun.tools.profiler.results.cpu.CPUCCTContainer.setNChildrenForNodeOfs
(CPUCCTContainer.java:154)
        at com.sun.tools.profiler.results.cpu.CPUCCTContainer.generateNodeBase
(CPUCCTContainer.java:261)
        at com.sun.tools.profiler.results.cpu.CPUCCTContainer.generateMirrorNode
(CPUCCTContainer.java:184)
        at com.sun.tools.profiler.results.cpu.CPUCCTContainer.generateMirrorNode
(CPUCCTContainer.java:194)
        at 
com.sun.tools.profiler.results.cpu.CPUCCTContainer.generateCompactData
(CPUCCTContainer.java:172)
        at com.sun.tools.profiler.results.cpu.CPUCCTContainer.<init>
(CPUCCTContainer.java:100)
        at 
com.sun.tools.profiler.results.cpu.CPUCallGraphBuilder.createPresentationCCTs
(CPUCallGraphBuilder.java:87)
        at com.sun.tools.profiler.results.cpu.CPUResultsSnapshot.<init>
(CPUResultsSnapshot.java:72)
        at com.sun.tools.profiler.ProfilerClient.getCPUProfilingResultsSnapshot
(ProfilerClient.java:450)
        at org.netbeans.modules.profiler.ResultsManager.takeSnapshot
(ResultsManager.java:110)
        at 
org.netbeans.modules.profiler.NetBeansProfiler$IDEAppStatusHandler$1.run
(NetBeansProfiler.java:1306)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
==>
java.lang.ArrayIndexOutOfBoundsException: 250
        at com.sun.tools.profiler.results.cpu.CPUCCTContainer.store2Bytes
(CPUCCTContainer.java:556)
        at 
com.sun.tools.profiler.results.cpu.CPUCCTContainer.setNChildrenForNodeOfs
(CPUCCTContainer.java:154)
        at com.sun.tools.profiler.results.cpu.CPUCCTContainer.generateNodeBase
(CPUCCTContainer.java:261)
        at com.sun.tools.profiler.results.cpu.CPUCCTContainer.generateMirrorNode
(CPUCCTContainer.java:184)
        at com.sun.tools.profiler.results.cpu.CPUCCTContainer.generateMirrorNode
(CPUCCTContainer.java:194)
        at 
com.sun.tools.profiler.results.cpu.CPUCCTContainer.generateCompactData
(CPUCCTContainer.java:172)
        at com.sun.tools.profiler.results.cpu.CPUCCTContainer.<init>
(CPUCCTContainer.java:100)
        at 
com.sun.tools.profiler.results.cpu.CPUCallGraphBuilder.createPresentationCCTs
(CPUCallGraphBuilder.java:87)
        at com.sun.tools.profiler.results.cpu.CPUResultsSnapshot.<init>
(CPUResultsSnapshot.java:72)
        at com.sun.tools.profiler.ProfilerClient.getCPUProfilingResultsSnapshot
(ProfilerClient.java:450)
        at org.netbeans.modules.profiler.ResultsManager.takeSnapshot
(ResultsManager.java:110)
        at 
org.netbeans.modules.profiler.NetBeansProfiler$IDEAppStatusHandler$1.run
(NetBeansProfiler.java:1306)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
[catch] at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 3 iformanek 2005-09-15 18:49:43 UTC
And since the remaining part is already filed as issue 64177, closing this one 
as fixed.
Comment 4 iformanek 2005-09-19 13:14:15 UTC
*** Issue 64214 has been marked as a duplicate of this issue. ***
Comment 5 ehucka 2005-11-10 11:24:17 UTC
v