tkinter.Tk
segfault with invalid className
#126219
Labels
extension-modules
C modules in the Modules dir
topic-tkinter
type-crash
A hard crash of the interpreter, possibly with a core dump
Crash report
What happened?
It's possible to crash Python by passing an invalid
className
to_tkinter.create
, for example:Or, using
tkinter.Tk
(repro thanks to @graingert and @JelleZijlstra):Backtrace looks like:
Found using fusil by @vstinner.
CPython versions tested on:
3.12, 3.14, CPython main branch
Operating systems tested on:
Linux, macOS, Windows
Output from running 'python -VV' on the command line:
Python 3.14.0a1+ (heads/main:d467d9246c, Oct 30 2024, 22:52:43) [GCC 11.4.0]
The text was updated successfully, but these errors were encountered: