JDK-4614956 : enablev006: JVMPI_EVENT_OBJECT_ALLOC request crashes Server VM
  • Type: Bug
  • Component: vm-legacy
  • Sub-Component: jvmpi
  • Affected Version: 1.4.0,1.4.2,5.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris_8
  • CPU: sparc
  • Submitted: 2001-12-18
  • Updated: 2004-06-25
  • Resolved: 2003-11-06
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.2_06 06Fixed
Related Reports
Duplicate :  
Relates :  
Description
Name: elR10090			Date: 12/17/2001


The following test from testbase_nsk crashes Server VM
(build 1.4.0-rc-b89) for Sparc/Sparcv9:

    nsk/jvmpi/EnableEvent/enablev006

The test passes with -Xcomp and  Client VM in all modes.
The test passes Server VM for Windows, Linux and Solaris-Intel.
The test also crashes with assertion with java_g both server and client
for all platforms.

The test is aimed to check if JVMPI_EVENT_METHOD_ENTRY2 event is sent
properly for user defined static and non-static methods.
The test crashes while requesting JVMPI_EVENT_OBJECT_ALLOC on
the target object from instance method event.

To reproduce the bug run in GammaBase/Bugs/<this bug number> directory:

    sh doit.sh <JAVA_HOME> -server

and to run with java_g:

    sh doit.sh <JAVA_HOME> -g

Running with Server VM the test outputs:

java version "1.4.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-rc-b89)
Java HotSpot(TM) Server VM (build 1.4.0-rc-b89, mixed mode)

Unexpected Signal : 10 occurred at PC=0xFE458AEC
Function=[Unknown. Nearest: JVM_RaiseSignal+0x44ADC]
Library=/export/ld54/java/dest/jdk1.4.0beta-b89/solsparc/jre/lib/sparc/server/l
ibjvm.so

Current Java thread:
        at enablev006.meth02(enablev006.java:36)
        at enablev006.run(enablev006.java:26)
        at enablev006.main(enablev006.java:21)

Dynamic libraries:
0x10000         /home/vpn/merlin/solsparc/bin/java
0xff350000      /usr/lib/libthread.so.1
0xff390000      /usr/lib/libdl.so.1
0xff200000      /usr/lib/libc.so.1
0xff330000      /usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1
0xfe000000      
/export/ld54/java/dest/jdk1.4.0beta-b89/solsparc/jre/lib/sparc/server/libjvm.so
0xff2d0000      /usr/lib/libCrun.so.1
0xff1e0000      /usr/lib/libsocket.so.1
0xff100000      /usr/lib/libnsl.so.1
0xff0d0000      /usr/lib/libm.so.1
0xff300000      /usr/lib/libw.so.1
0xff0b0000      /usr/lib/libmp.so.2
0xff080000      
/export/ld54/java/dest/jdk1.4.0beta-b89/solsparc/jre/lib/sparc/native_threads/l
ibhpi.so
0xff050000      
/export/ld54/java/dest/jdk1.4.0beta-b89/solsparc/jre/lib/sparc/libverify.so
0xff020000      
/export/ld54/java/dest/jdk1.4.0beta-b89/solsparc/jre/lib/sparc/libjava.so
0xfe7e0000      
/export/ld54/java/dest/jdk1.4.0beta-b89/solsparc/jre/lib/sparc/libzip.so
0xfe660000      ./sparc/libenablev006.so

Local Time = Mon Dec 17 11:52:09 2001
Elapsed Time = 0
#
# HotSpot Virtual Machine Error : 10
# Error ID : 4F530E43505002D3 01
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Server VM (1.4.0-rc-b89 mixed mode)
#
# An error report file has been saved as hs_err_pid14741.log.
# Please refer to the file for further information.
#
Abort
Exit Code: 134

(Error ID: os.cpp, 723)

Running with java_g the test outputs:

java version "1.4.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-rc-b89)
Java HotSpot(TM) Client VM (build 1.4.0-rc-b89-debug, mixed mode)
#
# HotSpot Virtual Machine Error, assertion failure
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Client VM (1.4.0-rc-b89-debug mixed mode)
#
# assert(!thread->owns_locks(), "must release all locks when leaving VM")
#
# Error ID: 
/export/home3/jdk/jdk1.4/ws/hotspot/src/share/vm/runtime/interfaceSupport.hpp, 
168 [ Patched ]
#
# Problematic Thread: prio=5 tid=0x3d2c8 nid=0x1 runnable 
#
Dumping core....
Abort
Exit Code: 134
======================================================================

Name: ipR10196			Date: 03/21/2002


This bug affects also the following testbase_nsk test:

    nsk/jvmpi/events/mentry2001

Ivan Popov <###@###.###>

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

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: 1.4.2_06 generic tiger-beta FIXED IN: 1.4.2_06 tiger-beta INTEGRATED IN: 1.4.2_06 tiger-beta VERIFIED IN: tiger-beta
08-07-2004

EVALUATION For server the notify method_entry code was passing I0 as the receiver and it was really the locals pointer. For c1 I0 did have the receiver so client was ok. Fix is to make the notify code simply dereference Llocals since that will be correct for both compilers. ###@###.### 2003-04-22 Fix putback April 28, 2003. ###@###.### 2003-10-30
22-04-2003