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 vstinner
Recipients Dave Page, Jeffrey.Kintscher, barry, brett.cannon, miss-islington, ned.deily, ronaldoussoren, vstinner, xtreak
Date 2019-06-13.09:15:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1560417311.74.0.766768348133.issue35070@roundup.psfhosted.org>
In-reply-to
Content
> clearly Jeffrey's PR fixes a real and now reproducible problem so I'm declaring victory and have closed this issue now.  Thanks everyone!

Well done Jeffrey Kintscher! The test was failing randomly for years, I recall many bugs and many people complaining, but nobody succeeded to come up with a fix.

Note: this off-by-one looks magic to me, but I'm happy that it works :-)

    /*
     * NGROUPS_MAX is defined by POSIX.1 as the maximum
     * number of supplimental groups a users can belong to.
     * We have to increment it by one because
     * getgrouplist() returns both the supplemental groups
     * and the primary group, i.e. all of the groups the
     * user belongs to.
     */
    ngroups = 1 + MAX_GROUPS;
History
Date User Action Args
2019-06-13 09:15:11vstinnersetrecipients: + vstinner, barry, brett.cannon, ronaldoussoren, ned.deily, miss-islington, xtreak, Dave Page, Jeffrey.Kintscher
2019-06-13 09:15:11vstinnersetmessageid: <1560417311.74.0.766768348133.issue35070@roundup.psfhosted.org>
2019-06-13 09:15:11vstinnerlinkissue35070 messages
2019-06-13 09:15:11vstinnercreate