JDK-6461635 : [TEST_BUG] BasicTests.sh test fails intermittently.
  • Type: Bug
  • Component: core-svc
  • Sub-Component: tools
  • Affected Version: 6,6u2,6u6-crev,6u23-crev,7,7u6,8
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS:
    generic,linux,linux_oracle_5.6,solaris,windows_vista generic,linux,linux_oracle_5.6,solaris,windows_vista
  • CPU: generic,x86,sparc,ppc
  • Submitted: 2006-08-18
  • Updated: 2015-02-02
  • Resolved: 2013-12-04
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.
JDK 6 JDK 7 JDK 8
6u91Fixed 7u75Fixed 8 b120Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
TESTFAIL:com/sun/tools/attach/BasicTests.sh

The test above fails intermittently on all platforms. 


Failure info:

Caused by: java.lang.Exception: RedefineAgent Error(6439234): no transform call for clas
s java.math.BigInteger
        at RedefineAgent.testRedefine(RedefineAgent.java:66)
        at RedefineAgent.agentmain(RedefineAgent.java:87)


The agent register the "transformer()" method and then calls loadClass("java.lang.BigInteger"). The transformer() method
should get called for this loadClass.

Comments
EVALUATION It is failing more frequently on nightly tests but the individual test ran in loop continuously did not fail. The class file load hook enabling, registering transformer method, loading class, class file load hook event and execution of transformer method all happens in a same thread. So there is no synchronization or timing issue. It is not clear why it failing. We need to add some debug code in the tests to catch this problem.
18-08-2006