[issue40014] os.getgrouplist() can fail on macOS if the user has more than 17 groups

2020-03-24 Thread STINNER Victor
STINNER Victor added the comment: Ned: so Linux was also impacted, but Linux only has an issue with more than 65536 groups :-D macOS MAX_GROUPS is now only 16 (Python uses MAX_GROUPS+1)! Maybe MAX_GROUPS was reduced recently. I'm not sure. Anyway, os.getgrouplist() does no longer depend on M

[issue40014] os.getgrouplist() can fail on macOS if the user has more than 17 groups

2020-03-24 Thread miss-islington
miss-islington added the comment: New changeset af6fd1faa68f57c11c862624798f8510b7cac68a by Miss Islington (bot) in branch '3.8': bpo-40014: Fix os.getgrouplist() (GH-19126) https://github.com/python/cpython/commit/af6fd1faa68f57c11c862624798f8510b7cac68a -- ___

[issue40014] os.getgrouplist() can fail on macOS if the user has more than 17 groups

2020-03-24 Thread miss-islington
miss-islington added the comment: New changeset 5753fc69977bd9f70ecb4d466bda650efccf9e0a by Miss Islington (bot) in branch '3.7': bpo-40014: Fix os.getgrouplist() (GH-19126) https://github.com/python/cpython/commit/5753fc69977bd9f70ecb4d466bda650efccf9e0a -- ___

[issue40014] os.getgrouplist() can fail on macOS if the user has more than 17 groups

2020-03-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +18505 pull_request: https://github.com/python/cpython/pull/19144 ___ Python tracker ___ __

[issue40014] os.getgrouplist() can fail on macOS if the user has more than 17 groups

2020-03-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +18504 pull_request: https://github.com/python/cpython/pull/19143 ___ Python tracker ___ __

[issue40014] os.getgrouplist() can fail on macOS if the user has more than 17 groups

2020-03-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset f5c7cabb2be4e42a5975ba8aac8bb458c8d9d6d7 by Victor Stinner in branch 'master': bpo-40014: Fix os.getgrouplist() (GH-19126) https://github.com/python/cpython/commit/f5c7cabb2be4e42a5975ba8aac8bb458c8d9d6d7 -- __

[issue40014] os.getgrouplist() can fail on macOS if the user has more than 17 groups

2020-03-23 Thread STINNER Victor
STINNER Victor added the comment: > Moreover, on Linux, getgrouplist() can also fail with -1 if the group list is > too small. In that case, ngroups is updated to the number of groups and so > can be used to enlarge the list! I tested by manually initializing ngroups to a value way lower tha

[issue40014] os.getgrouplist() can fail on macOS if the user has more than 17 groups

2020-03-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18487 pull_request: https://github.com/python/cpython/pull/19126 ___ Python tracker ___ __

[issue40014] os.getgrouplist() can fail on macOS if the user has more than 17 groups

2020-03-23 Thread miss-islington
miss-islington added the comment: New changeset 1cdc61c7673f71f2cef57715e482c84efda6d9e0 by Miss Islington (bot) in branch '3.7': bpo-40014: Fix os.getgrouplist() on macOS (GH-19118) https://github.com/python/cpython/commit/1cdc61c7673f71f2cef57715e482c84efda6d9e0 -- __

[issue40014] os.getgrouplist() can fail on macOS if the user has more than 17 groups

2020-03-23 Thread miss-islington
miss-islington added the comment: New changeset 21bee0bd71e1ad270274499f9f58194ebb52e236 by Miss Islington (bot) in branch '3.8': bpo-40014: Fix os.getgrouplist() on macOS (GH-19118) https://github.com/python/cpython/commit/21bee0bd71e1ad270274499f9f58194ebb52e236 -- __

[issue40014] os.getgrouplist() can fail on macOS if the user has more than 17 groups

2020-03-23 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +18484 pull_request: https://github.com/python/cpython/pull/19123 ___ Python tracker _

[issue40014] os.getgrouplist() can fail on macOS if the user has more than 17 groups

2020-03-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8ec7370c89aa522602eb9604086ce9f09770953d by Victor Stinner in branch 'master': bpo-40014: Fix os.getgrouplist() on macOS (GH-19118) https://github.com/python/cpython/commit/8ec7370c89aa522602eb9604086ce9f09770953d -- _

[issue40014] os.getgrouplist() can fail on macOS if the user has more than 17 groups

2020-03-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +18485 pull_request: https://github.com/python/cpython/pull/19124 ___ Python tracker ___ __

[issue40014] os.getgrouplist() can fail on macOS if the user has more than 17 groups

2020-03-23 Thread STINNER Victor
STINNER Victor added the comment: test.pythoninfo of the macOS job on the PR: os.getgrouplist: 20, 0, 12, 61, 79, 80, 81, 98, 264, 399, 701, 33, 100, 204, 250, 395, 398, 400 os.getgroups: 20, 0, 12, 61, 79, 80, 81, 98, 264, 399, 701, 33, 100, 204, 250, 395, 398, 400 So yeah, there are 18 gr

[issue40014] os.getgrouplist() can fail on macOS if the user has more than 17 groups

2020-03-23 Thread STINNER Victor
STINNER Victor added the comment: > Most likely this hasn't been an issue before is that 10.15 creates more > groups for system services than the earlier versions did. Aha, interesting. I updated my PR to remove mentions of the macOS version number. I just wrote "on macOS". Yeah, I wouldn't

[issue40014] os.getgrouplist() can fail on macOS if the user has more than 17 groups

2020-03-23 Thread Ned Deily
Ned Deily added the comment: Thanks for the PR, Victor, it does address the problem. I went back and explicitly tested on macOS 10.14 and 10.13 by creating some more groups and adding the user to them and the same failure occurred there so this is not just a 10.15 issue. Most likely this h

[issue40014] os.getgrouplist() can fail on macOS

2020-03-23 Thread STINNER Victor
STINNER Victor added the comment: tl; dr os.getgrouplist() is limited to 17 groups and fails with a random OSError if the request user has more groups. PR 19118 fix the issue. -- On macOS-10.15.1-x86_64-i386-64bit (python -m platform), os.getgrouplist() fails with my user name and group ide

[issue40014] os.getgrouplist() can fail on macOS

2020-03-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18479 pull_request: https://github.com/python/cpython/pull/19118 ___ Python tracker ___ __

[issue40014] os.getgrouplist() can fail on macOS

2020-03-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18478 pull_request: https://github.com/python/cpython/pull/19117 ___ Python tracker ___ __

[issue40014] os.getgrouplist() can fail on macOS

2020-03-22 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue40014] os.getgrouplist() can fail on macOS

2020-03-19 Thread Ned Deily
Change by Ned Deily : -- title: os.getgrouplist() fails on macOS of GH Actions (Azure) -> os.getgrouplist() can fail on macOS ___ Python tracker ___ __