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 112853 - Profiled NetBeans crashes in allocation memory profiling if CMS GC enabled
Summary: Profiled NetBeans crashes in allocation memory profiling if CMS GC enabled
Status: VERIFIED WONTFIX
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-15 09:54 UTC by Alexander Kouznetsov
Modified: 2007-11-16 17:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Profiled NetBeans messages.log (40.82 KB, text/plain)
2007-08-15 09:55 UTC, Alexander Kouznetsov
Details
hs_err_pid2924.log (9.65 KB, text/plain)
2007-08-15 09:57 UTC, Alexander Kouznetsov
Details
Profiled NetBeans output (10.24 KB, text/plain)
2007-08-28 17:50 UTC, Alexander Kouznetsov
Details
Error report (9.64 KB, text/plain)
2007-08-28 17:50 UTC, Alexander Kouznetsov
Details
Error report (11.82 KB, text/plain)
2007-09-28 15:29 UTC, Alexander Kouznetsov
Details
One more error report (8.41 KB, text/plain)
2007-11-02 15:09 UTC, Alexander Kouznetsov
Details
One more error report (8.42 KB, text/plain)
2007-11-02 15:10 UTC, Alexander Kouznetsov
Details
One more error report (8.42 KB, text/plain)
2007-11-02 15:10 UTC, Alexander Kouznetsov
Details
Error report for JDK 1.6.0_03 (8.47 KB, text/plain)
2007-11-07 16:48 UTC, Alexander Kouznetsov
Details
Error report for JDK 1.6.0_05 (13.74 KB, text/plain)
2007-11-07 16:48 UTC, Alexander Kouznetsov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kouznetsov 2007-08-15 09:54:41 UTC
Product Version: NetBeans IDE Dev (Build 200708130000) 
Java: 1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105 
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)

Performed steps:
- Profiled NetBeans was started with the customized userdir and agentpath parameters for direct attach
- Memory Task was chosen for profiling
- On Take Heap Dump action profiled application was crashed with the following message:

#
# An unexpected error has been detected by Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c3429c1, pid=2924, tid=5460
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0-b105 mixed mode)
# Problematic frame:
# C  [msvcr71.dll+0x29c1]
#
# An error report file with more information is saved as hs_err_pid2924.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Comment 1 Alexander Kouznetsov 2007-08-15 09:55:23 UTC
Created attachment 46653 [details]
Profiled NetBeans messages.log
Comment 2 Alexander Kouznetsov 2007-08-15 09:57:22 UTC
Created attachment 46654 [details]
hs_err_pid2924.log
Comment 3 Alexander Kouznetsov 2007-08-15 09:58:17 UTC
Low reproducibility.
Comment 4 Alexander Kouznetsov 2007-08-28 17:49:45 UTC
Reproduced this crash. No heap dump action were invoked. Profiled NetBeans was just starting when it crashed. The
following task of profiling was selected: Memory Allocation, each 50 object, record allocation stack traces.
Comment 5 Alexander Kouznetsov 2007-08-28 17:50:17 UTC
Created attachment 47647 [details]
Profiled NetBeans output
Comment 6 Alexander Kouznetsov 2007-08-28 17:50:59 UTC
Created attachment 47648 [details]
Error report
Comment 7 Alexander Kouznetsov 2007-08-28 17:56:38 UTC
Reproduced two more times
Comment 8 Tomas Hurka 2007-08-29 09:54:20 UTC
This does not seem to bug in profiler. The JVm crash happen while doing GC and is probably related to the fact that NetBeans now uses CMS 
(Concurrent-Mark-Sweep GC). Please try to reproduce it with disabled CMS or use latest >=18 build of JDK7.
Comment 9 Alexander Kouznetsov 2007-09-28 15:22:13 UTC
This crash was reproduced during JavaFX plugin profiling in allocation memory profiling mode with enabled allocation
stack traces. No exact steps are available yet.
Comment 10 Alexander Kouznetsov 2007-09-28 15:29:32 UTC
Created attachment 49747 [details]
Error report
Comment 11 Alexander Kouznetsov 2007-11-02 15:02:57 UTC
It seems that the crash happens only when CMS GC is enabled. Reproduced the crash 3 times with CMS GC enabled. Was not
able to reproduce it with the same scenario having CMS GC disabled, performed 3 attempts.
Comment 12 Alexander Kouznetsov 2007-11-02 15:09:50 UTC
Created attachment 52373 [details]
One more error report
Comment 13 Alexander Kouznetsov 2007-11-02 15:10:20 UTC
Created attachment 52374 [details]
One more error report
Comment 14 Alexander Kouznetsov 2007-11-02 15:10:42 UTC
Created attachment 52375 [details]
One more error report
Comment 15 Tomas Hurka 2007-11-02 18:02:58 UTC
Please try latest JDK 1.6.0_04. 
Comment 16 Alexander Kouznetsov 2007-11-06 18:02:06 UTC
JDK 1.6.0_04 is not yet available. Will it make sense to check this issue with JDK 1.6.0_03?
Comment 17 Tomas Hurka 2007-11-06 19:04:39 UTC
Try https://jdk6.dev.java.net/
Comment 18 Alexander Kouznetsov 2007-11-07 16:47:09 UTC
Reproduced with JDK 1.6.0_03 and 1.6.0_05. Please also note that NetBeans 6.0 target JDK is 1.6.0_03 according to
http://wiki.netbeans.org/wiki/view/NB6TestedPlatformsAndRuntimes .
Comment 19 Alexander Kouznetsov 2007-11-07 16:48:08 UTC
Created attachment 52669 [details]
Error report for JDK 1.6.0_03
Comment 20 Alexander Kouznetsov 2007-11-07 16:48:38 UTC
Created attachment 52670 [details]
Error report for JDK 1.6.0_05
Comment 21 Alexander Kouznetsov 2007-11-16 12:58:34 UTC
Filed JDK issue 
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6630863
Comment 22 Alexander Kouznetsov 2007-11-16 17:57:19 UTC
Verified wontfix