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

jtreg test PopAsynchronousTest fails in build 85 with -Xcomp

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0_01
    • 1.4.0, 1.4.0_01, 5.0
    • vm-legacy
    • 01
    • generic, sparc
    • generic, solaris_2.6, solaris_7

        Note that in build 85, we ignore -Djava.compiler=NONE so
        jtreg tests now run in -Xmixed mode by default.

        With java_g, (and -Xcomp or -Xmixed) it gets the assert error shown below.
        With java, it gets a segv.
        With -Xint, it works ok.


        CLASSPATH=/java/re/jdk/1.4.0/promoted/latest/binaries/solsparc/classes:/java/re/jdk/1.4.0/promoted/latest/binaries/solsparc/lib/tools.jar:./scaffold:/net/mmm/export/mmm/ws/m/b2/service_sdk_baseline/test/com/sun/jdi/_jj1.solaris-sparc/JTwork/classes:/net/mmm/export/mmm/ws/m/b2/service_sdk_baseline/test/com/sun/jdi/_jj1.solaris-sparc/JTwork/classes/com/sun/jdi
        /java/re/jdk/1.4.0/promoted/latest/binaries/solsparc/bin/java_g -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=4571 -Dtest.classes=/net/mmm/export/mmm/ws/m/b2/service_sdk_baseline/test/com/sun/jdi/_jj1.solaris-sparc/JTwork/classes/com/sun/jdi PopAsynchronousTarg
        Howdy!
        #
        # HotSpot Virtual Machine Error, assertion failure
        # Please report this error at
        # http://java.sun.com/cgi-bin/bugreport.cgi
        #
        # Java VM: Java HotSpot(TM) Client VM (1.4.0-rc-b85-debug mixed mode)
        #
        # assert(vf != 0, "stale frames should have been caught above")
        #
        # Error ID: /export/home3/jdk/jdk1.4/ws/hotspot/src/share/vm/prims/jvmdi.cpp, 2048 [ Patched ]
        #
        # Problematic Thread: prio=5 tid=0xd4f68 nid=0x7 runnable
        #
        Dumping core....
        time: command terminated abnormally.

        real 1:21.5
        user 9.8
        sys 0.2
        .../service_sdk_baseline/test/com/sun/jdi:179 dbx $j4/solsparc/bin/java_g core
        # Loading shared-hotspot-dbxrc
        # Type 'setup' to reset breakpoints to standard list.
        dont forget p1 to print a method!
        Reading /java/re/jdk/1.4.0/promoted/latest/binaries/solsparc/bin/java_g
        core file header read successfully
        Reading /usr/lib/ld.so.1
        Reading /usr/lib/libthread.so.1
        Reading /usr/lib/libdl.so.1
        Reading /usr/lib/libc.so.1
        Reading /usr/platform/SUNW,Ultra-80/lib/libc_psr.so.1
        Reading /net/jdk.sfbay/export/disk6/promoted/jdk/1.4/rc/b85/binaries/solsparc/jre/lib/sparc/client/libjvm_g.so
        Reading /usr/lib/libCrun.so.1
        dbx: warning: cannot demangle '__1fH__CimplNex_unexpected6F_v1AIex_catch2T6M_v_'
        dbx: internal error: no variant information available
        Reading /usr/lib/libsocket.so.1
        Reading /usr/lib/libnsl.so.1
        Reading /usr/lib/libm.so.1
        Reading /usr/lib/libw.so.1
        Reading /usr/lib/libmp.so.2
        Reading /net/jdk.sfbay/export/disk6/promoted/jdk/1.4/rc/b85/binaries/solsparc/jre/lib/sparc/native_threads/libhpi_g.so
        Reading /net/jdk.sfbay/export/disk6/promoted/jdk/1.4/rc/b85/binaries/solsparc/jre/lib/sparc/libverify_g.so
        Reading /net/jdk.sfbay/export/disk6/promoted/jdk/1.4/rc/b85/binaries/solsparc/jre/lib/sparc/libjava_g.so
        Reading /net/jdk.sfbay/export/disk6/promoted/jdk/1.4/rc/b85/binaries/solsparc/jre/lib/sparc/libzip_g.so
        Reading /net/jdk.sfbay/export/disk6/promoted/jdk/1.4/rc/b85/binaries/solsparc/jre/lib/sparc/libjdwp_g.so
        Reading /net/jdk.sfbay/export/disk6/promoted/jdk/1.4/rc/b85/binaries/solsparc/jre/lib/sparc/libdt_socket_g.so
        Reading /usr/lib/nss_nis.so.1
        detected a multithreaded program
        t@7 (l@8) terminated by signal ABRT (Abort)
        dbx: warning: can't find file "/export/home3/jdk/jdk1.4/ws/control/build/solaris-sparc/tmp/java/java/obj_g/java.o"
        dbx: warning: see `help pathmap'
        dbx: warning: can't find file "/export/home3/jdk/jdk1.4/ws/control/build/solaris-sparc/hotspot-sparc/tmp/solaris_sparc_compiler1/jvmg/os_solaris.o"
        dbx: warning: can't find file "/export/home3/jdk/jdk1.4/ws/control/build/solaris-sparc/hotspot-sparc/tmp/solaris_sparc_compiler1/jvmg/debug.o"
        dbx: warning: can't find file "/export/home3/jdk/jdk1.4/ws/control/build/solaris-sparc/hotspot-sparc/tmp/solaris_sparc_compiler1/jvmg/jvmdi.o"
        dbx: warning: can't find file "/export/home3/jdk/jdk1.4/ws/control/build/solaris-sparc/tmp/jpda/jdwp/obj_g/popFrames.o"
        dbx: warning: can't find file "/export/home3/jdk/jdk1.4/ws/control/build/solaris-sparc/tmp/jpda/jdwp/obj_g/StackFrameImpl.o"
        dbx: warning: can't find file "/export/home3/jdk/jdk1.4/ws/control/build/solaris-sparc/tmp/jpda/jdwp/obj_g/debugLoop.o"
        dbx: warning: can't find file "/export/home3/jdk/jdk1.4/ws/control/build/solaris-sparc/tmp/jpda/jdwp/obj_g/transport.o"
        dbx: warning: can't find file "/export/home3/jdk/jdk1.4/ws/control/build/solaris-sparc/hotspot-sparc/tmp/solaris_sparc_compiler1/jvmg/thread.o"
        t@7 l@8:1 where
        current thread: t@7
        =>[1] __sigprocmask(0x0, 0xf9a80898, 0x0, 0xffffffff, 0xffffffff, 0x0), at 0xff379d88
          [2] _resetsig(0xff38ca1c, 0x0, 0x0, 0x0, 0xf9a81e3c, 0xf9a81e40), at 0xff36f3c4
          [3] _sigon(0xff3943f0, 0xff394310, 0xf9a81e38, 0xf9a8096c, 0x6, 0xff24e118), at 0xff36eb80
          [4] _thrp_kill(0x0, 0x7, 0x6, 0xff38ca1c, 0xf9a81dc0, 0xff393c8c), at 0xff371954
          [5] abort(0xff2b5d58, 0xf9a80a68, 0x0, 0xfffffff8, 0x0, 0xf9a80a89), at 0xff2395b8
          [6] os::abort(0x1, 0xfe214980, 0xf9a8130c, 0xfe31c3b8, 0xfe31c352, 0x0), at 0xfdd53da8
          [7] report_error(0x1, 0xfe2792aa, 0x800, 0xfe2147cd, 0xfe2147df, 0xfe2792a2), at 0xfda1ed68
          [8] report_assertion_failure(0xfe2792a2, 0xfe2792aa, 0x800, 0xfe2792eb, 0xfffffff8, 0xd59b0), at 0xfda1e0b8
          [9] JvmdiThreadState::is_opaque(0x3f2a8, 0x33, 0x0, 0xf9a81578, 0x1, 0xf9a816e8), at 0xfdc10298
          [10] JvmdiThreads::is_opaque(0x33, 0x0, 0xf9a8174c, 0xf9a81740, 0x44, 0xf9a81778), at 0xfdc0ce00
          [11] GetFrameLocation(0x33, 0xf9a81750, 0xf9a8174c, 0xf9a81740, 0xd4f68, 0xf9a8190c), at 0xfdc1c704
          [12] computeFramesToPop(0xcd114, 0x44, 0xcd114, 0xf9a817a0, 0x81010100, 0xff00), at 0xfe56daac
          [13] popFrames_pop(0xcd114, 0x44, 0xd5004, 0x0, 0x18, 0x0), at 0xfe56dc14
          [14] popFrames(0xf9a81a3c, 0xf9a818e4, 0x1665b0, 0x1665c0, 0x81010100, 0xff00), at 0xfe551230
          [15] debugLoop_run(0x166818, 0xf9a81ad8, 0xf9a81ae8, 0x0, 0x0, 0xf9a81ae9), at 0xfe55a5bc
          [16] connectionInitiated(0xfe533b5c, 0x6, 0x4, 0x0, 0x0, 0x0), at 0xfe575980
          [17] acceptThread(0x1668c8, 0xd4f68, 0x0, 0xff38ca1c, 0xff38ca1c, 0xfde7013c), at 0xfe575a58
          [18] DebuggerThread::start_function_wrapper(0xd4f68, 0xd4f68, 0x1, 0x0, 0x0, 0x0), at 0xfdc17104
          [19] JavaThread::thread_main_inner(0xd4f68, 0xd3c30, 0x6, 0x0, 0x0, 0x0), at 0xfde65c18
          [20] JavaThread::run(0xd4f68, 0x0, 0x0, 0x0, 0x0, 0x0), at 0xfde65aac
          [21] _start(0xd4f68, 0x0, 0x1, 0xff38e070, 0x1, 0xff38ca1c), at 0xfdd5200c
        t@7 l@8:2
        --------------------------------------------------
        Sometimes, using java instead of java_g, I get this:

        CLASSPATH=/java/re/jdk/1.4.0/promoted/latest/binaries/solsparc/classes:/java/re/jdk/1.4.0/promoted/latest/binaries/solsparc/lib/tools.jar:./scaffold:/net/mmm/export/mmm/ws/m/b2/service_sdk_baseline/test/com/sun/jdi/_jj1.solaris-sparc/JTwork/classes:/net/mmm/export/mmm/ws/m/b2/service_sdk_baseline/test/com/sun/jdi/_jj1.solaris-sparc/JTwork/classes/com/sun/jdi
        /java/re/jdk/1.4.0/promoted/latest/binaries/solsparc/bin/java -Dtest.classes=/net/mmm/export/mmm/ws/m/b2/service_sdk_baseline/test/com/sun/jdi/_jj1.solaris-sparc/JTwork/classes/com/sun/jdi PopAsynchronousTest
        run args: [PopAsynchronousTarg]
        JVM version:1.4.0-rc
        JDI version: 1.4
        JVM description: Java Debug Interface (Reference Implementation) version 1.4
        Java Debug Wire Protocol (Reference Implementation) version 1.4
        JVM Debug Interface version 1.2
        JVM version 1.4.0-rc (Java HotSpot(TM) Client VM, mixed mode)
        ignoring loadClass
        Howdy!
        Delaying for 2ms
        ignoring report
        Delaying for 4ms
        com.sun.jdi.InvalidStackFrameException: Thread has been resumed
        at com.sun.tools.jdi.StackFrameImpl.validateStackFrame(StackFrameImpl.java:64)
        at com.sun.tools.jdi.StackFrameImpl.location(StackFrameImpl.java:73)
        at com.sun.tools.jdi.LocalVariableImpl.isVisible(LocalVariableImpl.java:91)
        at com.sun.tools.jdi.StackFrameImpl.createVisibleVariables(StackFrameImpl.java:150)
        at com.sun.tools.jdi.StackFrameImpl.visibleVariableByName(StackFrameImpl.java:180)
        at PopAsynchronousTest.breakpointReached(PopAsynchronousTest.java:67)
        at TestScaffold$EventHandler.notifyEvent(TestScaffold.java:149)
        at TestScaffold$EventHandler.run(TestScaffold.java:225)
        at java.lang.Thread.run(Thread.java:539)
        TEST FAILURE: exception com.sun.jdi.InvalidStackFrameException: Thread has been resumed
        Harassment complete, count = 0
        fibonacci(30) = 832040
        Goodbye from PopAsynchronousTarg!
        FAIL: expected result: 832040, got: -1

              swamyv Swamy Venkataramanappa
              jjh James Holmlund (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: