Message99901
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. |
|
Date |
User |
Action |
Args |
2010-02-23 07:20:55 | ronaldoussoren | set | recipients:
+ ronaldoussoren, loewis, orsenthil, michael.foord, Alexander.Belopolsky, l0nwlf |
2010-02-23 07:20:55 | ronaldoussoren | set | messageid: <1266909655.38.0.892015151078.issue7900@psf.upfronthosting.co.za> |
2010-02-23 07:20:53 | ronaldoussoren | link | issue7900 messages |
2010-02-23 07:20:51 | ronaldoussoren | create | |
|