-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash with an evil custom mro()
on a metaclass
#92112
Comments
I'll open a PR shortly. |
Opened #92113. @JulienPalard |
…ythonGH-92113). (cherry picked from commit 85354ed) Co-authored-by: Alexey Izbyshev <[email protected]>
…ythonGH-92113). (cherry picked from commit 85354ed) Co-authored-by: Alexey Izbyshev <[email protected]>
) (#92370) (cherry picked from commit 85354ed) Co-authored-by: Alexey Izbyshev <[email protected]>
…ythonGH-92113) (pythonGH-92372) (cherry picked from commit 85354ed) Co-authored-by: Alexey Izbyshev <[email protected]>
@izbyshev Thanks a lot for fixing this! We had problems with PySide and type creation and did a crude work-around. |
3.8 is in security fix-only mode, so we probably won't fix this. |
Ok, I understand. Closing the issue, again. Thanks |
An old refcounting problem from 2019 was fixed by a crude patch to class creation in basewrapper.cpp . This patch now creates an assertion error in debug mode when running the test for issue PYSIDE-2354. The problem was actually a CPython bug and does only exist in Python 3.8 until Python 3.9.12, for all other versions it works fine. See python/cpython#92112 [ChangeLog][shiboken6] An old patch for a Python 3.8-3.9.13 error was timed out and removed from current versions. Task-number: PYSIDE-939 Task-number: PYSIDE-2354 Change-Id: I6c077294dc61491b47b6e75e95fd669144fa0471 Pick-to: 6.5 Reviewed-by: Friedemann Kleint <[email protected]> Reviewed-by: Adrian Herrmann <[email protected]>
An old refcounting problem from 2019 was fixed by a crude patch to class creation in basewrapper.cpp . This patch now creates an assertion error in debug mode when running the test for issue PYSIDE-2354. The problem was actually a CPython bug and does only exist in Python 3.8 until Python 3.9.12, for all other versions it works fine. See python/cpython#92112 [ChangeLog][shiboken6] An old patch for a Python 3.8-3.9.13 error was timed out and removed from current versions. Task-number: PYSIDE-939 Task-number: PYSIDE-2354 Change-Id: I6c077294dc61491b47b6e75e95fd669144fa0471 Reviewed-by: Friedemann Kleint <[email protected]> Reviewed-by: Adrian Herrmann <[email protected]> (cherry picked from commit 30a6849) Reviewed-by: Qt Cherry-pick Bot <[email protected]>
Crash report
There is a path in
type_mro_modified
that results in double-free of*mro_meth
:cpython/Objects/typeobject.c
Line 362 in ad5e852
cpython/Objects/typeobject.c
Line 371 in ad5e852
A reproducer:
Crash with the debug CPython:
This bug was introduced in #73052.
The text was updated successfully, but these errors were encountered: