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

AsyncGetCallTrace and CLASS_UNLOAD event reveal bad memory delete

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • vm-legacy
    • b95
    • generic
    • generic

      During stress testing of the fix for the following bug:

          6432598 3/3 SEGV in forte backtrace walker under collect command

      the fastdebug bits failed the following assertion:

      # Internal Error (src/share/vm/memory/allocation.cpp, 44 [ Patched ]), pid=14601, tid=3
      #
      # Java VM: Java HotSpot(TM) Client VM (mustang-fastdebug-debug mixed mode)
      #
      # Error: assert(((ResourceObj *)p)->allocated_on_C_heap(),"delete only allowed for C_HEAP objects")

      Here is the relevant part of the stack trace:

        [6] report_assertion_failure(file_name = ???, line_no = ???, message = ???) (optimized), at 0xfdbba220 (line ~210) in "debug.cpp"
        [7] ResourceObj::operator delete(p = ???) (optimized), at 0xfd861b88 (line ~44) in "allocation.cpp"
        [8] jvmpi::post_class_unload_events() (optimized), at 0xfdf45e20 (line ~942) in "jvmpi.cpp"
        [9] GenCollectedHeap::do_collection(this = ???, full = ???, clear_all_soft_refs = ???, size = ???, is_tlab = ???, max_level = ???) (optimized), at 0xfdc3331c
      (line ~609) in "genCollectedHeap.cpp"
        [10] GenCollectedHeap::do_full_collection(this = ???, clear_all_soft_refs = ???, max_level = ???) (optimized), at 0xfdc34c40 (line ~810) in "genCollectedHeap.cpp"
        [11] VM_GenCollectFull::doit(this = ???) (optimized), at 0xfe5a4188 (line ~117) in "vmGCOperations.cpp"
        [12] VM_Operation::evaluate(this = ???) (optimized), at 0xfe5cc06c (line ~25)
      in "vm_operations.cpp"
        [13] VMThread::evaluate_operation(this = ???, op = ???) (optimized), at 0xfe5ca274 (line ~314) in "vmThread.cpp"
        [14] VMThread::loop(this = ???) (optimized), at 0xfe5caa64 (line ~423) in "vmThread.cpp"
        [15] VMThread::run(this = ???) (optimized), at 0xfe5c9d74 (line ~227) in "vmThread.cpp"

      I have attached the complete thread dump as threads.log.9.

            dcubed Daniel Daugherty
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: