JDK-5049195 : Client VM misses exception events of ThreadDeath and InterruptedException
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jvmti
  • Affected Version: 5.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2004-05-18
  • Updated: 2012-10-01
  • Resolved: 2005-09-06
Related Reports
Duplicate :  
Description
Name: pvR10198			Date: 05/18/2004


---------------------------------------------------
Tests       : nsk/jvmti/scenarios/multienv/MA08/ma08t001
              nsk/jvmti/scenarios/multienv/MA08/ma08t001s
VM          : ClientVM
Mode        : -Xcomp
Platform    : generic
OS          : generic
JDK         : 1.5.0-beta2-b51
---------------------------------------------------

The ma08t001s test is a simplified version of the ma08t001 test which
starts a single JVMTI agent.

The test starts VM with agent which possesses capabilities can_signal_thread
and can_generate_exception_events and sets callback for Exception event.
Then the test kills a Java thread by StopThread call and interrupts another
Java thread by InterruptThread call, and finally checks if the expected
exception events of ThreadDeath and InterruptedException are received by
the agent.

The test fails with clientVM on all platforms in -Xcomp mode.
The test passes with clientVM on all platforms in all other modes.
The test passes with serverVM on all platforms in all modes.

To reproduce the test failure run doit.sh script in
GammaBase/Bugs/<this bug number> directory:

    sh doit.sh <JAVA_HOME> <java_options>

Running the test outputs:

$ sh doit.sh $JDK15/solsparc -Xcomp

java version "1.5.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta2-b51)
Java HotSpot(TM) Client VM (build 1.5.0-beta2-b51, compiled mode)

# ERROR: ma08t001s.c, 207: ThreadDeath event missed
# ERROR: ma08t001s.c, 214: InterruptedException event missed
Exit Code: 97
======================================================================

Comments
EVALUATION I'm closing this bug as a duplication of the 4627997: 4627997 JDI testcase crexreq001 failing with -client -Xcomp only, all platforms Tom R. has already prepared a fix for the bug 4627997. Both the original test nsk/jvmti/scenarios/multienv/MA08/ma08t001 and the minimized one in the GammaBase/Bugs/<this bug number> directory are passed with the Tom's builds on Solaris sparc/x86 and Linux x86 (with -client -Xcomp flags). However, the same tests are still failured with the Mustang promoted build b50.
06-09-2005

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: dragon
08-07-2004

EVALUATION If the InterruptedException or the async ThreadDeath exception is thrown in compiled code then C1's exception_handler_for_pc_helper doesn't post the exception to JVMTI. This handler will post an ExceptionCatch but not an Exception. As a test I ported the test case to JVMDI and the same issue arises with 1.4.2. So given that the issue also exists in 1.4.x and that we are so late in tiger I will commit this one to dragonfly. ###@###.### 2004-06-17
17-06-2004