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 61208 - EXCEPTION_ACCESS_VIOLATION in profilerinterface.dll: during classLoadHook of Xalan generated bytecode
Summary: EXCEPTION_ACCESS_VIOLATION in profilerinterface.dll: during classLoadHook of ...
Status: CLOSED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: iformanek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-20 23:24 UTC by Nam Nguyen
Modified: 2006-10-09 10:49 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
hotspot error log (15.29 KB, text/plain)
2005-07-20 23:37 UTC, Nam Nguyen
Details
Fatal Error Log - SIGSEGV on Linux (55.67 KB, text/plain)
2005-08-09 12:46 UTC, iformanek
Details
Still get access violation with Milestone 8 build. (17.87 KB, text/plain)
2005-08-17 15:22 UTC, Nam Nguyen
Details
Ayub note: I made some progress as far as taking some snapshot, but before UML web report generation (while profiling) could end, JSE8 crashed. (3.39 KB, text/plain)
2005-08-17 16:41 UTC, Nam Nguyen
Details
JSE8 crash log with classLoadHook debug (282.32 KB, text/plain)
2005-08-17 17:58 UTC, iformanek
Details
Patch for Profiler Milestone 8 (442.56 KB, application/x-compressed)
2005-08-18 14:38 UTC, iformanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nam Nguyen 2005-07-20 23:24:35 UTC
I am using JFluid M7 on NB4.1 to profile JSE 8 (NB4.1-based) with the following
details:
 JDK 1.5.0_04-b05
 direct attachment
I got the following Hotspot error:

JFluid: waiting for connection on port 5140
JFluid: local connection with the tool
-------------------------------------------------------------------------------
>Log Session: Wednesday, July 20, 2005 2:32:43 PM PDT
>System Info: 
  Product Version       = Sun Java(TM) Studio Enterprise 8 (Build 200505031930)
  Operating System      = Windows XP version 5.1 running on x86
  Java; VM; Vendor      = 1.5.0_04; Java HotSpot(TM) Client VM 1.5.0_04-b05; Sun
Microsystems Inc.
  Java Home             = C:\Program Files\Java\jdk1.5.0_04\jre
  System Locale; Encod. = en_US (jse); Cp1252
  Home Dir; Current Dir = C:\Documents and Settings\nn136682;
C:\cygwin\home\nam\buz\jse_all\nbbuild
  IDE Install; User Dir =
C:\cygwin\home\nam\buz\jse_all\nbbuild\netbeans\platform5;
C:\home\nam\tmp\userdirs\5
  CLASSPATH             =
C:\cygwin\home\nam\buz\jse_all\nbbuild\netbeans\platform5\lib\boot.jar;C:\Program
Files\Java\jdk1.5.0_04\lib\dt.jar;C:\Program Files\Java\jdk1.5.0_04\lib\tools.jar
  Boot & ext classpath  = C:\Program
Files\Java\jdk1.5.0_04\jre\lib\rt.jar;C:\Program
Files\Java\jdk1.5.0_04\jre\lib\i18n.jar;C:\Program
Files\Java\jdk1.5.0_04\jre\lib\sunrsasign.jar;C:\Program
Files\Java\jdk1.5.0_04\jre\lib\jsse.jar;C:\Program
Files\Java\jdk1.5.0_04\jre\lib\jce.jar;C:\Program
Files\Java\jdk1.5.0_04\jre\lib\charsets.jar;C:\Program
Files\Java\jdk1.5.0_04\jre\classes;C:\tools\netbeans\profiler1\modules\profiler-ea-libs/jfluid-server.jar;C:\tools\netbeans\profiler1\modules\profiler-ea-libs/jfluid-server-15.jar;C:\Program
Files\Java\jdk1.5.0_04\jre\lib\ext\dnsns.jar;C:\Program
Files\Java\jdk1.5.0_04\jre\lib\ext\localedata.jar;C:\Program
Files\Java\jdk1.5.0_04\jre\lib\ext\sunjce_provider.jar;C:\Program
Files\Java\jdk1.5.0_04\jre\lib\ext\sunpkcs11.jar
  Dynamic classpath     =
C:\cygwin\home\nam\buz\jse_all\nbbuild\netbeans\platform5\core\core.jar;C:\cygwin\home\nam\buz\jse_all\nbbuild\netbeans\platform5\core\openide-loaders.jar;C:\cygwin\home\nam\buz\jse_all\nbbuild\netbeans\platform5\core\openide.jar;C:\cygwin\home\nam\buz\jse_all\nbbuild\netbeans\platform5\core\org-netbeans-swing-plaf.jar;C:\cygwin\home\nam\buz\jse_all\nbbuild\netbeans\platform5\core\updater.jar;C:\cygwin\home\nam\buz\jse_all\nbbuild\netbeans\jse8\core\com-sun-tools-ide-upgrade.jar;C:\cygwin\home\nam\buz\jse_all\nbbuild\netbeans\jse8\core\locale\core_jse.jar;C:\cygwin\home\nam\buz\jse_all\nbbuild\netbeans\jse8\core\locale\openide_jse.jar;C:\cygwin\home\nam\buz\jse_all\nbbuild\netbeans\jse8\core\locale\updater_jse.jar;C:\cygwin\home\nam\buz\jse_all\nbbuild\netbeans\ide5\core\org-netbeans-modules-utilities-cli.jar
-------------------------------------------------------------------------------
QuantumAutoupdateModule 1121895241343 starting check
QuantumAutoupdateModule 1121895245048 finish check
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x1000288f, pid=3764, tid=3336
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_04-b05 mixed mode)
# Problematic frame:
# C  [profilerinterface.dll+0x288f]
#
# An error report file with more information is saved as hs_err_pid3764.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.
       !!! try_removing_bytes_for_unloaded_classes called!
Comment 1 Nam Nguyen 2005-07-20 23:37:31 UTC
Created attachment 23193 [details]
hotspot error log
Comment 2 iformanek 2005-08-09 10:32:22 UTC
Adjusted summary
Comment 3 iformanek 2005-08-09 12:45:57 UTC
There was a similar bugreport on linux. WIll attach the Linux Fatal Error Log.
Comment 4 iformanek 2005-08-09 12:46:59 UTC
Created attachment 23603 [details]
Fatal Error Log - SIGSEGV on Linux
Comment 5 iformanek 2005-08-12 08:55:18 UTC
I cannot seem to be able to reproduce this in M8, can you please try again when 
M8 is out?
Comment 6 Nam Nguyen 2005-08-12 15:07:29 UTC
Will do.
Comment 7 Nam Nguyen 2005-08-17 15:22:37 UTC
Created attachment 23998 [details]
Still get access violation with Milestone 8 build.
Comment 8 Nam Nguyen 2005-08-17 16:41:58 UTC
Created attachment 24002 [details]
Ayub note: I made some progress as far as taking some snapshot, but before UML web report  generation (while profiling) could end, JSE8 crashed.
Comment 9 iformanek 2005-08-17 17:53:43 UTC
I am able to reproduce now.

The profiling crashes with those settings (likely not only those):

Profiler.attachToApp: ***************************************************
Profiler.attachToApp: profiling settings --------------------------------
name: Preset: Allocations
profilingType =2
overrideGlobalSettings =false
workingDir =
jvmArgs:
portNo =5140
javaPlatform =<project>
threadsMonitoringEnabled =false
cpuProfilingType =0
instrScheme =1
threadCPUTimerOn =false
instrumentGetterSetterMethods =false
instrumentEmptyMethods =false
instrumentMethodInvoke =true
instrumentSpawnedThreads =false
nProfiledThreadsLimit =32
sortResultsByThreadCPUTime =false
samplingInterval =10
instrumentationRootMethods =[]
codeFragmentSelection =null
codeRegionCPUResBufSize =1000
runGCOnGetResultsInMemoryProfiling =true
allocTrackEvery =10
allocStackTraceLimit =0
selectedInstrFilter =

Profiler.attachToApp: attach settings ----------------------------------
remote =false
direct =true
ctrlBreak =true
pid =-1
workingDir =
host =
transient port =-1

Profiler.attachToApp: ***************************************************
Instrumentation filter:
  Filter type: None
  Filter value:

-Xcheck:jni does not provide any more info about the problem.
I will attach classLoadHook debug output.
Comment 10 iformanek 2005-08-17 17:54:40 UTC
The crash is both on JDK 5.0 update and JDK 6.0 b45
Comment 11 iformanek 2005-08-17 17:56:27 UTC
The crash is both on JDK 5.0 update 4 and JDK 6.0 b45
Comment 12 iformanek 2005-08-17 17:58:32 UTC
Created attachment 24005 [details]
JSE8 crash log with classLoadHook debug
Comment 13 iformanek 2005-08-18 11:35:35 UTC
The bug is caused by the fact that JVMTI can pass null classname to 
classFileLoadHook in some strange cases.

Fixed in M9.

I will attach the binaries to this issue to allow patching M8 with the fix. I'd 
appreciate if people try the patch and report problems if any (not expected).
Comment 14 iformanek 2005-08-18 14:38:55 UTC
Created attachment 24043 [details]
Patch for Profiler Milestone 8
Comment 15 Nam Nguyen 2005-08-19 15:30:04 UTC
Ayub has used the patch successfully.  Thanks.