JDK-6685095 : NPE in test/closed/compiler/5098422/Test.java under fastdebug
  • Type: Bug
  • Status: Resolved
  • Resolution: Fixed
  • Component: hotspot
  • Sub-Component: test
  • Priority: P3
  • Affected Version: hs11,hs12,hs13
  • OS: windows,windows_xp
  • CPU: generic,x86
  • Submit Date: 2008-04-07
  • Updated Date: 2011-01-19
  • Resolved Date: 2008-12-23
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 Availabitlity Release.

To download the current JDK release, click here.
JDK 6 JDK 7
6u14Resolved 7Resolved
Description
test/closed/compiler/5098422/Test.java under fastdebug mode fails with:
----------System.out:(8/347)----------
Exception in thread "main" java.lang.NullPointerException
	at java.lang.System.arraycopy(Native Method)
	at Test.t(Test.java:27)
	at Test.main(Test.java:21)
VM option '-OmitStackTraceInFastThrow'
VM option '-OmitStackTraceInFastThrow'
Exception in thread "main" java.lang.NullPointerException
	at java.lang.System.arraycopy(Native Method)
----------System.err:(1/44)----------
java full version "1.7.0-ea-fastdebug-b24"
result: Failed. Execution failed: exit code 1


Reproduced with both
/net/sqenfs-1.sfbay/export1/comp/vm/jdk/7/nightly/fastdebug/main_baseline/
and jdk7b24: /java/re/jdk/7/promoted/all/b24/binaries/  
Haven't tried to reproduce with versions older than hs12
Proper test name for known_fail list is
closed/compiler/5098422/Test.java

Comments
EVALUATION That's right, I fixed the test to add -XX:-PrintVMOptions so it didn't report that the test failed because it printed out the option it was checking for.
2008-12-11

EVALUATION This test is from HotSpot regression workspace. So, if you think this is test bug and test needs to be updated then it is still HS engineers responsibility to fix this test. Transfer this bug under 'test' sub_category.
2008-12-10

EVALUATION This test is supposed to throw a NPE. The test probably fails because the output includes printing the VM Option. It's testing that the VM option OmitStackTraceInFastThrow is recognized, which it is. crocker% gamma -Xcomp -XX:-OmitStackTraceInFastThrow Test VM option '-OmitStackTraceInFastThrow' Exception in thread "main" java.lang.NullPointerException at java.lang.System.arraycopy(Native Method) at Test.t(Test.java:27) at Test.main(Test.java:21) Should I close as not a bug, or reassign to hotspot-test (can never remember product and category for that). thanks.
2008-12-10