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

os::print_location gets is_global_handle assert

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 21
    • hotspot
    • b08

      The os::print_location() code is trying to figure out what the data is and gets an assert

          error_msg=error_msg@entry=0x1532167670d0 "assert(!is_global_tagged(handle) || is_storage_handle(global_handles(), global_ptr(handle))) failed", detail_fmt=detail_fmt@entry=0x15321667c15f "invalid storage")

      It should just return false for this case and not get a secondary assert.

      #12 0x0000153215b6a713 in JNIHandles::is_global_handle (handle=handle@entry=0x1532166997aa)
          at src/hotspot/share/runtime/jniHandles.cpp:245
      #13 0x00001532160b6388 in os::print_location (st=st@entry=0x153193ffc310, x=23304868566954, verbose=verbose@entry=false)
          at src/hotspot/share/runtime/os.cpp:1155
      #14 0x00001532160cead2 in os::print_register_info (st=0x153193ffc310, context=0x153216c204e0 <g_stored_assertion_context>)
      --Type <RET> for more, q to quit, c to continue without paging--
          at src/hotspot/os_cpu/linux_x86/os_linux_x86.cpp:595
      #15 0x000015321651ce4b in VMError::report (st=st@entry=0x153193ffc310, _verbose=_verbose@entry=true)
          at src/hotspot/share/utilities/vmError.cpp:867

      Or ask a safer question.

            aboldtch Axel Boldt-Christmas
            coleenp Coleen Phillimore
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: