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

heapDumper.cpp: assert(length_in_bytes > 0) failed: nothing to copy

XMLWordPrintable

    • svc
    • b105

        When dumping a heap that has big arrays java can crash.
        A debug build fails on an assert in heapDumper.cpp.

        Test:

        public static void main (String[] args) throws IOException {
          long[] a = new long[268435456];
          // Sleep here and initiate a heapdump, for example with jcmd <pid> GC.heap_dump /tmp/dump.hprof

        Error:

        # A fatal error has been detected by the Java Runtime Environment:
        #
        # Internal Error ([...]/src/share/vm/services/heapDumper.cpp:1038)
        # assert(length_in_bytes > 0) failed: nothing to copy
        ...

              aeriksso Andreas Eriksson (Inactive)
              shadowbug Shadow Bug
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: