You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Mismatched C function signature in _xxsubinterpreters.channel_close() #77635
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2018-05-23.05:17:46.943>created_at=<Date2018-05-10.10:17:56.494>labels= ['extension-modules', 'type-bug', '3.8']
title='Mismatched C function signature in _xxsubinterpreters.channel_close()'updated_at=<Date2018-05-23.05:17:46.941>user='https://github.com/serhiy-storchaka'
which corresponds the method convention METH_VARARGS | METH_KEYWORDS, but is used with the incompatible method convention METH_VARARGS. Either the signature or flags are not correct.
Actually it can use just METH_O. The proposed PR changes both signature and flags and simplifies the implementation.
The bug was found thanks to gcc 8 emitting a warning for invalid function cast (it also emits a lot of false alarms). See also bpo-33012.
New changeset d8dcd57 by Serhiy Storchaka in branch 'master': bpo-33454: Fix arguments parsing in _xxsubinterpreters.channel_close(). (GH-6747) d8dcd57
Activity
serhiy-storchaka commentedon May 10, 2018
The C function that implements _xxsubinterpreters.channel_close() is defined with the signature
which corresponds the method convention METH_VARARGS | METH_KEYWORDS, but is used with the incompatible method convention METH_VARARGS. Either the signature or flags are not correct.
Actually it can use just METH_O. The proposed PR changes both signature and flags and simplifies the implementation.
The bug was found thanks to gcc 8 emitting a warning for invalid function cast (it also emits a lot of false alarms). See also bpo-33012.
ericsnowcurrently commentedon May 15, 2018
Thanks for catching this, Serhiy! I've approved the PR.
serhiy-storchaka commentedon May 15, 2018
New changeset d8dcd57 by Serhiy Storchaka in branch 'master':
bpo-33454: Fix arguments parsing in _xxsubinterpreters.channel_close(). (GH-6747)
d8dcd57