GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — `super.__new__(super)` can create an object that causes a NULL dereference in supercheck() · Issue #155376 · python/cpython Open Labels interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump DescriptionCrash reportWhat happened?
Minimal reproducer: s = super.__new__(super) print(s) s.__get__(1) Output: The one-line form also reproduces the crash: super.__new__(super).__get__(1) This is deterministic on the tested build. A normal initialized class A: pass class B(A): pass s = super(B, B()) print(s.__get__(B())) Output: GDB confirms the NULL dereference: The crashing code is: PyErr_Format(PyExc_TypeError, "super(type, obj): obj (%s %.200s) is not " "an instance or subtype of type (%.200s).", type_or_instance, obj_str, type->tp_name); Here The relevant call path is:
CPython versions tested on:CPython main branch Operating systems tested on:Linux Output from running 'python -VV' on the command line:Python 3.16.0a0 (heads/audit-objects-phase1-dirty:c3aefdb9eff, Aug 7 2026, 19:38:01) [GCC 13.3.0] Linked PRsActivity
MetadataMetadataAssigneesLabelsinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |