JDK-4497237 : profiler "prof" crashes Server VM
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2001-08-28
  • Updated: 2002-05-13
  • Resolved: 2002-02-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.1 hopperFixed
Related Reports
Relates :  
Relates :  
Description

Name: elR10090			Date: 08/28/2001



Java HotSpot Server VM 1.4.0-beta2-b77 fails to pass the following tests from
tesbase_nsk

    nsk/coverage/resourcearea/resourcearea001
    nsk/coverage/runtime/runtime009
    nsk/regression/b4254544
    nsk/regression/b4298656
    nsk/stress/stack/stack003
    nsk/stress/stack/stack004
    nsk/stress/stack/stack005
    nsk/stress/stack/stack006
    nsk/stress/stack/stack008
    nsk/stress/stack/stack009
    nsk/stress/stack/stack010
    nsk/stress/stack/stack011
    nsk/stress/stack/stack012
    nsk/stress/stack/stack013
    nsk/stress/stack/stack016
    nsk/stress/stack/stack019
    
These tests crash Server VM with ErrorID 

    4F530E43505002D7 (os.cpp, 727) 

on Windows in profiling mode with standard profiler "prof".

The Server debug VM is crashed with Error ID

    D:/jdk1.4/hotspot\src\share\vm\opto\runtime.cpp, 1572
    
on Windows in profiling mode with standard profiler "prof".

The tests do not crash VM in other modes and on other platforms.

See the bug:

    4489842 profiler "prof" crashes VM with assert(i < len, "oopmap not found")
    
that describes VM crash with the same Error ID (4F530E43505002D7) with profiler 
"prof", and that was closed as duplicate of the bug 

    4478223 "oopmap not found" assertion failure in jvmpi heap dump collection
    
To reproduce the failure with java HotSpot VM please use 'doit.sh' script,
to reproduce the failure with java_g HotSpot VM please use 'doit_g.sh' script. Both
scripts could be found in the directory:

    /net/sqesvr.eng/export/vsn/GammaBase/Bugs/<this bug number>

Use:
    doit.sh $JAVA_HOME
or    
    doit_g.sh $JAVA_HOME
    
where JAVA_HOME should point to jdk1.4    
        
Output on Server java VM on Windows2000 with HS 1.4.0-b77:

Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D63269B
Function=JVM_RegisterUnsafeMethods+0xC6F9B
Library=h:\ld59\java\dest\jdk1.4.0beta-b77\win\jre\bin\server\jvm.dll

Current Java thread:
	at stack003.recurse(stack003.java:40)
	at stack003.recurse(stack003.java:41)
	
	.........
        (last line repeated 1023 times)
        
Dynamic libraries:
0x00400000 - 0x00406000 	h:\ld59\java\dest\jdk1.4.0beta-b77\win\bin\java.exe
0x77F80000 - 0x77FF9000 	D:\WINNT\System32\ntdll.dll
0x77DB0000 - 0x77E0A000 	D:\WINNT\system32\ADVAPI32.dll
0x77E80000 - 0x77F36000 	D:\WINNT\system32\KERNEL32.DLL
0x77D40000 - 0x77DAF000 	D:\WINNT\system32\RPCRT4.DLL
0x78000000 - 0x78046000 	D:\WINNT\system32\MSVCRT.dll
0x6D450000 - 0x6D6E4000 	h:\ld59\java\dest\jdk1.4.0beta-b77\win\jre\bin\server\jvm.dll
0x77E10000 - 0x77E75000 	D:\WINNT\system32\USER32.dll
0x77F40000 - 0x77F7C000 	D:\WINNT\system32\GDI32.DLL
0x77570000 - 0x775A0000 	D:\WINNT\System32\WINMM.dll
0x6D1D0000 - 0x6D1D7000 	h:\ld59\java\dest\jdk1.4.0beta-b77\win\jre\bin\hpi.dll
0x6D300000 - 0x6D30D000 	h:\ld59\java\dest\jdk1.4.0beta-b77\win\jre\bin\verify.dll
0x6D210000 - 0x6D227000 	h:\ld59\java\dest\jdk1.4.0beta-b77\win\jre\bin\java.dll
0x6D320000 - 0x6D32D000 	h:\ld59\java\dest\jdk1.4.0beta-b77\win\jre\bin\zip.dll
0x6D1E0000 - 0x6D1EB000 	h:\ld59\java\dest\jdk1.4.0beta-b77\win\jre\bin\hprof.dll
0x75050000 - 0x75058000 	D:\WINNT\System32\WSOCK32.dll
0x75030000 - 0x75044000 	D:\WINNT\System32\WS2_32.DLL
0x75020000 - 0x75028000 	D:\WINNT\System32\WS2HELP.DLL
0x77920000 - 0x77942000 	D:\WINNT\system32\imagehlp.dll
0x72A00000 - 0x72A2D000 	D:\WINNT\system32\DBGHELP.dll
0x690A0000 - 0x690AB000 	D:\WINNT\System32\PSAPI.DLL

Local Time = Mon Aug 27 17:41:19 2001
Elapsed Time = 8
#
# HotSpot Virtual Machine Error : EXCEPTION_ACCESS_VIOLATION
# Error ID : 4F530E43505002D7
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Server VM (1.4.0-beta2-b77 mixed mode)
#
# An error report file has been saved as hs_err_pid936.log.
# Please refer to the file for further information.
#



Output on Server java_g VM on Windows2000 with HS 1.4.0-b77:

HPROF ERROR: thread local table NULL in method exit 0024F7A0
HPROF ERROR: thread local table NULL in method exit 0024F7A0
HPROF ERROR: thread local table NULL in method exit 00250F40
HPROF ERROR : stack underflow in method exit
HPROF ERROR : stack underflow in method exit
java version "1.4.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta2-b77)
Java HotSpot(TM) Server VM (build 1.4.0-beta2-b77-debug, mixed mode)
Dumping CPU usage in old prof format ... done.
VM option '-ShowMessageBoxOnError'
HPROF ERROR: thread local table NULL in method exit 0024F280
HPROF ERROR: thread local table NULL in method exit 0024F280
HPROF ERROR: thread local table NULL in method exit 002508B0
HPROF ERROR : stack underflow in method exit
HPROF ERROR : stack underflow in method exit
MISSING EXCEPTION HANDLER for pc 0x00A8C9F6 and handler bci -1
   Exception:
java.lang.StackOverflowError
 - klass: 'java/lang/StackOverflowError'
fields:
   - private transient 'backtrace' 'Ljava/lang/Object;' @8  NULL (0)
   - private 'detailMessage' 'Ljava/lang/String;' @12  NULL (0)
   - private 'cause' 'Ljava/lang/Throwable;' @16  NULL (0)
   - private 'stackTrace' '[Ljava/lang/StackTraceElement;' @20  NULL (0)

 Compiled exception table :
ExceptionHandlerTable (size = 16 bytes)
catch_pco = 51 (1 entries)
  bci -1 -> pco 72
Decoding compiled method 0xa8c908:
Code:
Could not load disassembler
#
# HotSpot Virtual Machine Error, assertion failure
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Server VM (1.4.0-beta2-b77-debug mixed mode)
#
# assert(t, "missing exception handler")
#
# Error ID: D:/jdk1.4/hotspot\src\share\vm\opto\runtime.cpp, 1572
#
# Problematic Thread: prio=5 tid=0x00244EA8 nid=0x500 runnable
#

======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: generic FIXED IN: hopper INTEGRATED IN: hopper VERIFIED IN: hopper
14-06-2004

EVALUATION This has already been fixed for SPARC by Mike. The bug id is 4468289. Porting the SPARC code fixes this one. ###@###.### 2001-11-05
05-11-2001