This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Alexander.Belopolsky
Recipients Alexander.Belopolsky, l0nwlf, loewis, michael.foord, orsenthil, ronaldoussoren
Date 2010-02-21.22:29:11
SpamBayes Score 4.3656134e-11
Marked as misclassified No
Message-id <>
In-reply-to <>
On Sun, Feb 21, 2010 at 1:58 PM, Martin v. Löwis <> wrote:
> I would propose a different strategy: if _SC_NGROUPS_MAX is defined, use
> that to find out how much memory to allocate, otherwise, fall back to
> the current max array size. Can you find out whether doing so would also
> fix the issue at hand?

I am afraid that the following is the evidence that it won't:

Python 2.7a3+ (trunk:78265M, Feb 20 2010, 15:20:36)
[GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.sysconf('SC_NGROUPS_MAX')
>>> len(os.getgroups())  # with the patch
Date User Action Args
2010-02-21 22:29:14Alexander.Belopolskysetrecipients: + Alexander.Belopolsky, loewis, ronaldoussoren, orsenthil, michael.foord, l0nwlf
2010-02-21 22:29:12Alexander.Belopolskylinkissue7900 messages
2010-02-21 22:29:11Alexander.Belopolskycreate