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

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

    Details

    • Subcomponent:
      svc
    • Resolved In Build:
      b105

      Backports

        Description

        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
        ...

          Issue Links

            Activity

            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/hs-rt/hotspot/rev/6bfa2b373a42
            User: aeriksso
            Date: 2016-01-19 10:45:17 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/hs-rt/hotspot/rev/6bfa2b373a42 User: aeriksso Date: 2016-01-19 10:45:17 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/hs-rt/rev/1d5d6eee909e
            User: aeriksso
            Date: 2016-01-19 10:45:18 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/hs-rt/rev/1d5d6eee909e User: aeriksso Date: 2016-01-19 10:45:18 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/rev/1d5d6eee909e
            User: lana
            Date: 2016-02-10 21:54:43 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/rev/1d5d6eee909e User: lana Date: 2016-02-10 21:54:43 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/6bfa2b373a42
            User: lana
            Date: 2016-02-10 21:55:30 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/6bfa2b373a42 User: lana Date: 2016-02-10 21:55:30 +0000

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: