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

Small memory leak in get_stack_bounds // os::create_stack_guard_pages

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: hs20
    • Fix Version/s: hs21
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b09
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      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

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

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: