Author ronaldoussoren
Recipients Alexander.Belopolsky, l0nwlf, loewis, michael.foord, orsenthil, ronaldoussoren
Date 2010-02-23.07:20:51
SpamBayes Score 1.02079e-12
Marked as misclassified No
Message-id <1266909655.38.0.892015151078.issue7900@psf.upfronthosting.co.za>
In-reply-to
Content
Alexander:  What makes you think r63955 introduced the problem? 
 
Btw. This does not crash the interpreter: the example you give causes an exception and cleanly shuts down the interpreter. The exception is unwanted, but I wouldn't call it a crash.

The Apple fix for getgroups in python2.6 is odd, it uses an undocumented API (getgrouplist_2).

If I read the manpage correctly there is a posixly correct way to implement os.getgroups:

* call getgroups(MAX_GROUPS,...)
* if that fails: call getgroups(0,...), the result is groupcount
* allocate an array of groupcount gid_t's and call getgroups(groupcount)

I'll work on a patch that implements this.
History
Date User Action Args
2010-02-23 07:20:55ronaldoussorensetrecipients: + ronaldoussoren, loewis, orsenthil, michael.foord, Alexander.Belopolsky, l0nwlf
2010-02-23 07:20:55ronaldoussorensetmessageid: <1266909655.38.0.892015151078.issue7900@psf.upfronthosting.co.za>
2010-02-23 07:20:53ronaldoussorenlinkissue7900 messages
2010-02-23 07:20:51ronaldoussorencreate