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 130812 - JVM Crash on Dump Heap button push
Summary: JVM Crash on Dump Heap button push
Status: CLOSED INVALID
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker with 1 vote (vote)
Assignee: J Bachorik
URL: http://pastebin.com/f1697bbca
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-21 17:36 UTC by drizzt321
Modified: 2009-09-18 09:21 UTC (History)
1 user (show)

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 drizzt321 2008-03-21 17:36:57 UTC
I have a multi-threaded application that fetches data from a remote source, and when I try and dump the heap to examine
it, the hot spot jvm crashes. As near as I can tell, it is not the threads that fetch the data that cause the crash, but
the threads (or the thread pool that is used) that are currently running to process the data fetched. It occurs
immediately after I hit the Dump Heap button. This happens constantly every single time I have attempted this. The URL
included is a pastebin with 3 of the crashes, and I am keeping the other logs around if needed.
Comment 1 J Bachorik 2008-03-25 11:57:39 UTC
Is it reproducible? Could you describe the type of profiling you use and attach messages.log?
Comment 2 Tomas Hurka 2008-03-25 15:46:15 UTC
The JDK crash, according to the URL you attached, looks to me like JDK bug. I do not see anything wrong on profiler side.
Comment 3 J Bachorik 2008-08-28 10:16:17 UTC
drizzt321, do you have any new information on this issue? Did you try running the target application with a different
JVM (1.5.0_16 or 1.6 eg.)
According to the crash log the crash happens inside JVM when taking the heapdump.
Comment 4 atamur 2008-09-03 09:59:54 UTC
I have a very similar (not to say duplicate) issue here: #128107

I'm able to consistently reproduce it on a clean install of jdk_1.5_16_netbeans_6.1 bundle.

It happens whenever I'm trying to make a memory heap dump. The funny thing is, when I ask for a memory heap dump (say in
the middle of cpu profiling session), netbeans starts to instrument my classes (i.e. outputs to console things like "100
classes instrumented"), though I didn't ask for class instrumentation, just memory heap dump would be ok .... and when
the IDE finishes instrumentation it crashes the jvm =(

This is really annoying .... if I can somehow help to diagnose/resolve the issue - I would be glad o help out.
Comment 5 Tomas Hurka 2008-09-03 10:48:09 UTC
There is no instrumentation needed to do the heap dump. Are you using "Profile-> Take Heap Dump" to take a heap dump?
Comment 6 atamur 2008-10-08 10:38:50 UTC
Yes, exactly, but for some reason NB starts instrumenting the classes at that same time 
Comment 7 J Bachorik 2009-03-24 13:03:45 UTC
Are you still able to reproduce it in the latest dev builds?

In case you can successfully reproduce the problem we would need the complete message.log to see what is happening.
Comment 8 Tomas Hurka 2009-04-08 10:12:03 UTC
Target milestone cleanup.
Comment 9 Tomas Hurka 2009-04-08 12:54:38 UTC
Milestone cleanup: future->next
Comment 10 matusdekanek 2009-09-18 09:20:37 UTC
Nothing happened with this issue for more than a year -> closing as invalid. Were it problem with jdk, it should not 
happen any more (there were 3 new versions of both jdk 1.5 and 1.6).