Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8132648

sun/tools/jhsdb/BasicLauncherTest fails with java.lang.RuntimeException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • core-svc
    • b79
    • generic
    • generic

        The sun/tools/jhsdb/BasicLauncherTest fails with java.lang.RuntimeException on windows-32 and linux-64. The failures on windows and linux are different. Please split this into two bugs if they indeed have different root cause after investigation.

        On linux-64, it fails with:

        sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process
        sun.jvm.hotspot.debugger.DebuggerException: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process
        at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$LinuxDebuggerLocalWorkerThread.execute(LinuxDebuggerLocal.java:163)
        at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.attach(LinuxDebuggerLocal.java:278)
        at sun.jvm.hotspot.HotSpotAgent.attachDebugger(HotSpotAgent.java:677)
        at sun.jvm.hotspot.HotSpotAgent.setupDebuggerLinux(HotSpotAgent.java:617)
        at sun.jvm.hotspot.HotSpotAgent.setupDebugger(HotSpotAgent.java:339)
        at sun.jvm.hotspot.HotSpotAgent.go(HotSpotAgent.java:306)
        at sun.jvm.hotspot.HotSpotAgent.attach(HotSpotAgent.java:142)
        at sun.jvm.hotspot.CLHSDB.attachDebugger(CLHSDB.java:180)
        at sun.jvm.hotspot.CLHSDB.run(CLHSDB.java:61)
        at sun.jvm.hotspot.CLHSDB.main(CLHSDB.java:40)
        at sun.jvm.hotspot.SALauncher.runCLHSDB(SALauncher.java:134)
        at sun.jvm.hotspot.SALauncher.main(SALauncher.java:334)
        Caused by: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process
        at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.attach0(Native Method)
        at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.access$100(LinuxDebuggerLocal.java:62)
        at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$1AttachTask.doit(LinuxDebuggerLocal.java:269)
        at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$LinuxDebuggerLocalWorkerThread.run(LinuxDebuggerLocal.java:138)
        Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process
        sun.jvm.hotspot.debugger.DebuggerException: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process
        at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$LinuxDebuggerLocalWorkerThread.execute(LinuxDebuggerLocal.java:163)
        at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.attach(LinuxDebuggerLocal.java:278)
        at sun.jvm.hotspot.HotSpotAgent.attachDebugger(HotSpotAgent.java:677)
        at sun.jvm.hotspot.HotSpotAgent.setupDebuggerLinux(HotSpotAgent.java:617)
        at sun.jvm.hotspot.HotSpotAgent.setupDebugger(HotSpotAgent.java:339)
        at sun.jvm.hotspot.HotSpotAgent.go(HotSpotAgent.java:306)
        at sun.jvm.hotspot.HotSpotAgent.attach(HotSpotAgent.java:142)
        at sun.jvm.hotspot.tools.Tool.start(Tool.java:185)
        at sun.jvm.hotspot.tools.Tool.execute(Tool.java:118)
        at sun.jvm.hotspot.tools.JStack.main(JStack.java:92)
        at sun.jvm.hotspot.SALauncher.runJSTACK(SALauncher.java:210)
        at sun.jvm.hotspot.SALauncher.main(SALauncher.java:345)
        Caused by: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process
        at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.attach0(Native Method)
        at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.access$100(LinuxDebuggerLocal.java:62)
        at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$1AttachTask.doit(LinuxDebuggerLocal.java:269)
        at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$LinuxDebuggerLocalWorkerThread.run(LinuxDebuggerLocal.java:138)

         stdout: [Attaching to process ID 21397, please wait...
        ];
         stderr: []
         exitValue = 1

        java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'No deadlocks found' missing from stdout/stderr

        at BasicLauncherTest.launch(BasicLauncherTest.java:119)
        at BasicLauncherTest.launch(BasicLauncherTest.java:128)
        at BasicLauncherTest.main(BasicLauncherTest.java:136)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:504)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
        at java.lang.Thread.run(Thread.java:746)
        Caused by: java.lang.RuntimeException: 'No deadlocks found' missing from stdout/stderr

        at jdk.testlibrary.OutputAnalyzer.shouldContain(OutputAnalyzer.java:100)
        at BasicLauncherTest.launch(BasicLauncherTest.java:115)
        ... 8 more

        On windows, the failure is:

        java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'Server compiler detected' missing from stdout/stderr

        at BasicLauncherTest.launch(BasicLauncherTest.java:119)
        at BasicLauncherTest.launch(BasicLauncherTest.java:128)
        at BasicLauncherTest.main(BasicLauncherTest.java:137)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:504)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
        at java.lang.Thread.run(Thread.java:746)
        Caused by: java.lang.RuntimeException: 'Server compiler detected' missing from stdout/stderr

        at jdk.testlibrary.OutputAnalyzer.shouldContain(OutputAnalyzer.java:100)
        at BasicLauncherTest.launch(BasicLauncherTest.java:115)
        ... 8 more

              dsamersoff Dmitriy Samersoff
              jiangli Jiangli Zhou
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: