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

Executing gtest with invalid -Xlog argument crashes gtestLauncher

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • 9
    • hotspot
    • b01

      ./hotspot/variant-server/libjvm/gtest/gtestLauncher.exe -Xlog=trace -jdk ./images/jdk/

      [==========] Running 350 tests from 55 test cases.
      [----------] Global test environment set-up.
      [----------] 2 tests from AltHashingTest
      [ RUN ] AltHashingTest.murmur3_32_byte_array_test
      [ OK ] AltHashingTest.murmur3_32_byte_array_test (1 ms)
      [ RUN ] AltHashingTest.equivalent_hashes_test
      [ OK ] AltHashingTest.equivalent_hashes_test (0 ms)
      [----------] 2 tests from AltHashingTest (1 ms total)

      [----------] 1 test from arguments
      [ RUN ] arguments.atojulong_test
      [ OK ] arguments.atojulong_test (0 ms)
      [----------] 1 test from arguments (0 ms total)

      [----------] 11 tests from arrayOopDesc
      [ RUN ] arrayOopDesc.boolean_test_vm
      Invalid -Xlog option '-Xlog=trace'
      c:/d031900/openjdk/jdk9-hs2/source/hotspot/test/native/gtestMain.cpp(102): error: Value of: init_jvm(_argc, _argv, false)
        Actual: -6
      Expected: 0
      Could not initialize the JVM
      [ FAILED ] arrayOopDesc.boolean_test_vm (0 ms)
      [ RUN ] arrayOopDesc.char_test_vm
      # To suppress the following error report, specify this argument
      # after -XX: or in .hotspotrc: SuppressErrorAt=c:/d031900/openjdk/jdk9-hs2/source/hotspot/src/os/windows/vm/threadLocalStorage_windows.cpp:34
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (c:/d031900/openjdk/jdk9-hs2/source/hotspot/src/os/windows/vm/threadLocalStorage_windows.cpp:34), pid=19996, tid=5972
      # assert(!_initialized) failed: initializing TLS more than once!

            mlarsson Marcus Larsson (Inactive)
            stuefe Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: