This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients gpolo, serhiy.storchaka
Date 2013-07-15.13:38:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1373895500.91.0.409503402666.issue18461@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-07-15 13:38:20serhiy.storchakasetrecipients: + serhiy.storchaka, gpolo
2013-07-15 13:38:20serhiy.storchakasetmessageid: <1373895500.91.0.409503402666.issue18461@psf.upfronthosting.co.za>
2013-07-15 13:38:20serhiy.storchakalinkissue18461 messages
2013-07-15 13:38:20serhiy.storchakacreate