code review request: 7104161: test/sun/tools/jinfo/Basic.sh fails on Ubuntu

Weijun Wang weijun.wang at oracle.com
Wed Oct 26 20:36:40 PDT 2011


Hi Alan/Dan

Please review:

   http://cr.openjdk.java.net/~weijun/7104161/webrev.00/

Thanks
Weijun

> -------- Original Message --------
> *Change Request ID*: 7104161
> *Synopsis*: test/sun/tools/jinfo/Basic.sh fails on Ubuntu
>
>
> === *Description* ============================================================
> This test fails in the TL nightly testing on Linux when run on systems that have non-child ptrace disabled (which seems to be all recent releases of Ubuntu).
>
> Attached is a sample results file. It's the same issue as 7050524 but that bug is closed as it was used to add release notes to jdk7.
>
> The new bug asks that the test be modified so that the test is modified to only use jinfo -flag (this is the only option to jinfo that uses the attach mechanism rather than SA), or the test be modified to check /proc/sys/kernel/yama/ptrace_scope before it uses options that require SA. If the test is fixed in a timely manner then we will add to the jdk/ProblemList.txt file so that it is excluded by the Makefile. Changing all test machines isn't really an approach here as the tests should pass on newly installed systems.
>
>
> #Test Results (version 2)
> #Sun Oct 23 22:00:10 PDT 2011
> #checksum:57e99cf9cd9cee89
> #-----testdescription-----
> $file=/home/aurora/sandbox/testbase/test/sun/tools/jinfo/Basic.sh
> $root=/home/aurora/sandbox/testbase/test
> keywords=bug6402766 shell
> library=../common
> run=USER_SPECIFIED build SimpleApplication ShutdownSimpleApplication\nUSER_SPECIFIED shell Basic.sh\n
> source=Basic.sh
> title=Unit test for jinfo utility
>
> #-----environment-----
>
> #-----testresult-----
> description=file:/home/aurora/sandbox/testbase/test/sun/tools/jinfo/Basic.sh
> elapsed=2407 0:00:02.407
> end=Sun Oct 23 22:00:10 PDT 2011
> environment=regtest
> execStatus=Failed. Execution failed: exit code 1
> hostname=jsn-sfx2200-4.us.oracle.com
> javatestOS=Linux 2.6.38-8-generic (amd64)
> javatestVersion=4.1.4
> script=com.sun.javatest.regtest.RegressionScript
> sections=script_messages build compile shell
> start=Sun Oct 23 22:00:07 PDT 2011
> test=sun/tools/jinfo/Basic.sh
> work=/home/aurora/sandbox/gresults/testoutput/jdk_tools2/JTwork/sun/tools/jinfo
>
> #section:script_messages
> ----------messages:(4/185)----------
> JDK under test: (/home/aurora/sandbox/jdk)
> java version "1.8.0-ea"
> Java(TM) SE Runtime Environment (build 1.8.0-ea-b9296)
> Java HotSpot(TM) 64-Bit Server VM (build 22.0-b03, mixed mode)
>
> #section:build
> ----------messages:(3/175)----------
> command: build SimpleApplication ShutdownSimpleApplication
> reason: User specified action: run build SimpleApplication ShutdownSimpleApplication
> elapsed time (seconds): 0.061
> result: Passed. Build successful
>
> #section:compile
> ----------messages:(3/272)----------
> command: compile /home/aurora/sandbox/testbase/test/sun/tools/jinfo/../common/SimpleApplication.java /home/aurora/sandbox/testbase/test/sun/tools/jinfo/../common/ShutdownSimpleApplication.java
> reason: .class file out of date or does not exist
> elapsed time (seconds): 0.06
> result: Passed. Compilation successful
>
> #section:shell
> ----------messages:(3/108)----------
> command: shell Basic.sh []
> reason: User specified action: run shell Basic.sh
> elapsed time (seconds): 2.345
> ----------System.out:(8/420)----------
> INFO: waiting for SimpleApplication to initialize...
> INFO: SimpleApplication is process 9458
> INFO: SimpleApplication output is in /home/aurora/sandbox/gresults/testoutput/jdk_tools2/JTwork/classes/sun/tools/jinfo/Application.out
> -XX:-PrintGC
> INFO: Port number of SimpleApplication: 53003
> INFO: Connecting to port 53003 to shutdown SimpleApplication ...
> INFO: done connecting to SimpleApplication.
> INFO: waiting for 9458
> ----------System.err:(6/435)----------
> Attaching to process ID 9458, please wait...
> Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process
> Attaching to process ID 9458, please wait...
> Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process
> Attaching to process ID 9458, please wait...
> Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process
> result: Failed. Execution failed: exit code 1
>
>
> test result: Failed. Execution failed: exit code 1


More information about the serviceability-dev mailing list