You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Chris Nauroth (JIRA)" <ji...@apache.org> on 2013/02/16 01:31:14 UTC

[jira] [Created] (HADOOP-9312) JniBasedUnixGroupsMapping#getGroupForUser can potentially leak memory

Chris Nauroth created HADOOP-9312:
-------------------------------------

             Summary: JniBasedUnixGroupsMapping#getGroupForUser can potentially leak memory
                 Key: HADOOP-9312
                 URL: https://issues.apache.org/jira/browse/HADOOP-9312
             Project: Hadoop Common
          Issue Type: Bug
          Components: native, security
    Affects Versions: 3.0.0, trunk-win
            Reporter: Chris Nauroth


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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira