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
tkinter.createfilehandler dumps core #38040
Comments
This small example probably uses an invalid >>> import Tkinter
>>> tk = Tkinter.Tk()
>>> fp = open('foo', 'w')
>>> def foo():
... pass
...
>>> Tkinter._tkinter.createfilehandler(fp.fileno(), 0, foo)
Segmentation fault (core dumped) Here is the traceback: #0 Tkapp_CreateFileHandler (self=0x0, args=0x1) at |
Logged In: YES Confirmed the core dump on Linux with Tk 8.3. Hopefully |
Logged In: YES The problem is that CHECK_TCL_APPARTMENT is called in As a workaround, you should be able to access create/delete w.tk.createfilehandler(...) instead of Tkinter.createfilehandler(...). |
Logged In: YES This is now fixed in _tkinter.c 1.150 (also for |
Logged In: YES Also fixed for deletefilehandler.
|
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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: