[issue18461] X Error in tkinter
Serhiy Storchaka
report at bugs.python.org
Mon Jul 15 15:38:20 CEST 2013
New submission from Serhiy Storchaka:
When run Tools/demo/ss1.py under Linux and enter the formula "='0'*0x1000", the application will crash with the following message:
X Error of failed request: BadAlloc (insufficient resources for operation)
Major opcode of failed request: 53 (X_CreatePixmap)
Serial number of failed request: 1025
Current serial number in output stream: 1100
Any multiplier between 0x1000 and 0x1fff crashes. With multipliers >= 0x2000 only the number of zeros over 0x2000 is displayed. Multiplier between 0x3000 and 0x3fff crashes again.
Hint: The width of '0' in the used font is 8 pixels. 0x2000 * 8 = 2**16. If the width of cell is a 16-bit signed integer, it is negative for the number of zeros between 0x1000 and 0x1fff and wrapped after 0x2000 zeros.
It may be a bug either in Tkinter, in Tk, or in X Window.
----------
components: Tkinter
messages: 193097
nosy: gpolo, serhiy.storchaka
priority: normal
severity: normal
status: open
title: X Error in tkinter
type: crash
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18461>
_______________________________________
More information about the Python-bugs-list
mailing list