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

Small memory leak in get_stack_bounds // os::create_stack_guard_pages

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P4
    • Resolution: Fixed
    • hs20
    • hs21
    • hotspot
    • None
    • b09
    • generic
    • generic
    • Verified

    Backports

      Description

        Valgrind reports small memory leak in get_stack_bounds // os::create_stack_guard_pages.

        The reason there is leak is that getline() may return -1 and still allocate memory in str:

            ssize_t len = getline(&str, &dummy, f);
            if (len == -1) {
              fclose(f);
              return false;

        Attachments

          Issue Links

            Activity

              People

                dsamersoff Dmitriy Samersoff
                nhaustov Nicolay Haustov (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: