JDK-6210845 : Occasional non-zero exit status errors 0xC0000005 on windows hprof/jvmti demo tests
  • Type: Bug
  • Component: tools
  • Sub-Component: hprof
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: generic
  • CPU: generic
  • Submitted: 2004-12-20
  • Updated: 2013-12-12
  • Resolved: 2006-09-27
Related Reports
Relates :  
Description
On Windows the hprof and jvmti demo tests in the j2se workspace will 
occasionally fail with an exit code value of -1073741819 (0xC0000005, an
access violation?).  The exit code is coming from java.lang.Process.waitFor(),
which gets it from GetExitCodeProcess.

It's possible that the process really is getting an access code violation
but the VM doesn't see it.  Could be happening after the VM is done and
shuts down?   Or GetExitCodeProcess is flakey...

I did notice that java.lang.Process.waitFor() does not check for
the value STILL_ALIVE, which says the process hasn't exited yet, but
experiments show that this isn't happening, just the 0xC0000005 exit
status.

To reproduce, use a windows machine (X86 or AMD64) and:

cd j2se/tests/demo/jvmti
runregress .

Repeat until a test fails.

Here is an example failure:


#Test Results (version 2)
#Mon Dec 20 12:37:19 PST 2004
#checksum:1bea3867b46acd74
#-----testdescription-----
$file=E:\\users\\ohair\\Build04_12_20\\jmaster_wscopy\\test\\demo\\jvmti\\hprof\\CpuSamplesTest.java
$root=E:\\users\\ohair\\Build04_12_20\\jmaster_wscopy\\test
keywords=bug5012882
run=USER_SPECIFIED compile -source 1.5 -g:lines HelloWorld.java ../DemoRun.java\r\nUSER_SPECIFIED build CpuSamplesTest\r\nUSER_SPECIFIED main CpuSamplesTest HelloWorld\r\n
source=CpuSamplesTest.java
title=Test jvmti hprof

#-----environment-----

#-----testresult-----
description=file:///E:/users/ohair/Build04_12_20/jmaster_wscopy/test/demo/jvmti/hprof/CpuSamplesTest.java
end=Mon Dec 20 12:37:19 PST 2004
environment=regtest
execStatus=Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Test failed - exit return code non-zero(exitStatus==-1073741819)
javatestOS=Windows 2000 5.0 (x86)
javatestVersion=3.1.2
script=com.sun.javatest.regtest.RegressionScript 
sections=script_messages compile build compile build main
start=Mon Dec 20 12:37:16 PST 2004
test=demo/jvmti/hprof/CpuSamplesTest.java
work=E:\\users\\ohair\\Build04_12_20\\jbuild_TMI_jmaster_windows_i586_04-12-20T11-27_1\\regress_1.windows-i586\\JTwork\\demo\\jvmti\\hprof

#section:script_messages
----------messages:(4/263)----------
JDK under test: (E:/users/ohair/Build04_12_20/jmaster_wscopy/build/windows-i586/j2sdk-image)
java version "1.6.0-internal"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-internal-b99)
Java HotSpot(TM) Client VM (build 1.6.0-ea-b16, mixed mode)

#section:compile
----------messages:(3/240)*----------
command: compile E:\\users\\ohair\\Build04_12_20\\jmaster_wscopy\\test\\demo\\jvmti\\hprof\\..\\DemoRun.java 
reason: User specified action: run compile -source 1.5 -g:lines HelloWorld.java ../DemoRun.java 
elapsed time (seconds): 1.375
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful

#section:build
----------messages:(3/121)----------
command: build CpuSamplesTest 
reason: User specified action: run build CpuSamplesTest 
elapsed time (seconds): 1.125
result: Passed. Compilation successful

#section:compile
----------messages:(3/196)*----------
command: compile E:\\users\\ohair\\Build04_12_20\\jmaster_wscopy\\test\\demo\\jvmti\\hprof\\CpuSamplesTest.java 
reason: .class file out of date or does not exist
elapsed time (seconds): 1.125
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful

#section:build
----------messages:(3/101)----------
command: build CpuSamplesTest 
reason: Named class compiled on demand
elapsed time (seconds): 0.0
result: Passed. No need to compile: CpuSamplesTest.java

#section:main
----------messages:(3/139)----------
command: main CpuSamplesTestHelloWorld
reason: User specified action: run main CpuSamplesTest HelloWorld 
elapsed time (seconds): 0.656
----------System.out:(2/321)*----------
Starting: E:\\users\\ohair\\Build04_12_20\\jmaster_wscopy\\build\\windows-i586\\j2sdk-image\\jre\\bin\\java -Dtest.classes=E:\\users\\ohair\\Build04_12_20\\jbuild_TMI_jmaster_windows_i586_04-12-20T11-27_1\\regress_1.windows-i586\\JTwork\\classes\\demo\\jvmti\\hprof -agentlib:hprof=cpu=samples HelloWorld
Hello, world!
----------System.err:(14/900)----------
java.lang.RuntimeException: Test failed - exit return code non-zero(exitStatus==-1073741819)
	at DemoRun.runit(Unknown Source)
	at CpuSamplesTest.main(CpuSamplesTest.java:18)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:82)
	at java.lang.Thread.run(Thread.java:595)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Test failed - exit return code non-zero(exitStatus==-1073741819)
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test failed - exit return code non-zero(exitStatus==-1073741819)
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Test failed - exit return code non-zero(exitStatus==-1073741819)


test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Test failed - exit return code non-zero(exitStatus==-1073741819)

###@###.### 2004-12-20 21:52:02 GMT

Comments
EVALUATION This failure mode hasn't been seen in more than one year. I'm closing this bug as "not reproducible"
27-09-2006

EVALUATION Doesn't need to be fixed for Mustang.
08-12-2005