Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9312

JniBasedUnixGroupsMapping#getGroupForUser can potentially leak memory

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: trunk-win, 3.0.0-alpha1
    • Fix Version/s: None
    • Component/s: native, security
    • Labels:
      None

      Description

      This method lazily initializes a static variable to contain an empty array of groups. If multiple threads call the method before the variable has been initialized, then there is potential for a race condition. This would cause multiple allocations of the array and leaked memory.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                cnauroth Chris Nauroth
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated: