idle crashes on configure through menu

Bug #1578927 reported by Sean Pedersen
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Python
Fix Released
Unknown
python2.7 (Ubuntu)
Fix Released
Undecided
Unassigned
Xenial
Fix Released
Undecided
Unassigned

Bug Description

IDLE crashes when "Configure IDLE" is selected through "Options". Terminal output is as follows:

Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1540, in __call__
    return self.func(*args)
  File "/usr/lib/python2.7/idlelib/EditorWindow.py", line 543, in config_dialog
    configDialog.ConfigDialog(self.top,'Settings')
  File "/usr/lib/python2.7/idlelib/configDialog.py", line 72, in __init__
    self.LoadConfigs()
  File "/usr/lib/python2.7/idlelib/configDialog.py", line 1103, in LoadConfigs
    self.LoadFontCfg()
  File "/usr/lib/python2.7/idlelib/configDialog.py", line 1005, in LoadFontCfg
    self.SetFontSample()
  File "/usr/lib/python2.7/idlelib/configDialog.py", line 883, in SetFontSample
    self.labelFontSample.config(font=newFont)
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1329, in configure
    return self._configure('configure', cnf, kw)
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1320, in _configure
    self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
TclError: expected integer but got ""

1) Ubuntu 16.04 LTS
2) Package idle 2.7.11-1
3) Expected Options Menu
4) Instead nothing happened.

CVE References

Matthias Klose (doko)
affects: python-defaults (Ubuntu) → python2.7 (Ubuntu)
Changed in python:
status: Unknown → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python2.7 - 2.7.11-9

---------------
python2.7 (2.7.11-9) unstable; urgency=medium

  * Update to 20160509 from the 2.7 branch.
    - Issue #25745: Fixed leaking a userptr in curses panel destructor.
    - Issue #17765: weakref.ref() no longer silently ignores keyword arguments.
    - Issue #26873: xmlrpclib now raises ResponseError on unsupported type tags
      instead of silently return incorrect result.
    - Issue #24114: Fix an uninitialized variable in `ctypes.util`.
    - Issue #26864: In urllib, change the proxy bypass host checking against
      no_proxy to be case-insensitive, and to not match unrelated host names
      that happen to have a bypassed hostname as a suffix.
    - Issue #26804: urllib will prefer lower_case proxy environment variables
      over UPPER_CASE or Mixed_Case ones.
    - Issue #26837: assertSequenceEqual() now correctly outputs non-stringified
      differing items. This affects assertListEqual() and assertTupleEqual().
    - Issue #26822: itemgetter, attrgetter and methodcaller objects no longer
      silently ignore keyword arguments.
    - Issue #26657: Fix directory traversal vulnerability with SimpleHTTPServer
      on Windows. This fixes a regression that was introduced in 2.7.7.
    - Issue #26736: Used HTTPS for external links in the documentation if
      possible.
    - Issue #22359: Avoid incorrect recursive $(MAKE), and disable the rules for
      running pgen when cross-compiling.
    - Issue #26799: Fix python-gdb.py: don't get C types once when the Python
      code is loaded, but get C types on demand. The C types can change if
      python-gdb.py is loaded before the Python executable.
  * Fix issue #26673, runtime error in idle3. LP: #1578927.

 -- Matthias Klose <email address hidden> Mon, 09 May 2016 17:54:33 +0200

Changed in python2.7 (Ubuntu):
status: New → Fix Released
Changed in python:
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in python2.7 (Ubuntu Xenial):
status: New → Confirmed
Revision history for this message
Sean Pedersen (burgess-pedersen) wrote :

Correction: Options menu opens; Options window does not.

Revision history for this message
Sean Pedersen (burgess-pedersen) wrote :

Solution:

/idlelib/configDialog-old.py
114c114
< self.fontSize = IntVar(parent)
---
> self.fontSize = StringVar(parent)

Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Hello Sean, or anyone else affected,

Accepted python2.7 into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/python2.7/2.7.12-1~16.04 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in python2.7 (Ubuntu Xenial):
status: Confirmed → Fix Committed
tags: added: verification-needed
Revision history for this message
Matthias Klose (doko) wrote :

now fixed in 2.7.12 available in xenial-proposed

tags: added: verification-done
removed: verification-needed
Revision history for this message
Martin Pitt (pitti) wrote : Update Released

The verification of the Stable Release Update for python2.7 has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (6.8 KiB)

This bug was fixed in the package python2.7 - 2.7.12-1~16.04

---------------
python2.7 (2.7.12-1~16.04) xenial-proposed; urgency=medium

  * SRU: LP: #1591895. Backport 2.7.12 to 16.04 LTS.

python2.7 (2.7.12-1) unstable; urgency=medium

  * Python 2.7.12 release.

python2.7 (2.7.12~rc1-2) unstable; urgency=medium

  * Extend debian/copyright to the files shipped in the wheel files.

python2.7 (2.7.12~rc1-1) unstable; urgency=medium

  * Python 2.7.12 release candidate 1.
    - Issue #20041: Fixed TypeError when frame.f_trace is set to None.
    - Issue #25702: A --with-lto configure option has been added that will
      enable link time optimizations at build time during a make profile-opt.
      Some compilers and toolchains are known to not produce stable code when
      using LTO, be sure to test things thoroughly before relying on it.
      It can provide a few % speed up over profile-opt alone.
    - Issue #26556: Update expat to 2.1.1, fixes CVE-2015-1283.
    - Fix TLS stripping vulnerability in smptlib, CVE-2016-0772.
    - Issue #7356: ctypes.util: Make parsing of ldconfig output independent of
      the locale.
    - Issue #25738: Stop BaseHTTPServer.BaseHTTPRequestHandler.send_error()
      from sending a message body for 205 Reset Content. Also, don't send the
      Content-Type header field in responses that don't have a body.
    - Issue #21313: Fix the "platform" module to tolerate when sys.version
      contains truncated build information.
    - Issue #27211: Fix possible memory corruption in io.IOBase.readline().
    - Issue #5124: Paste with text selected now replaces the selection on X11.
      This matches how paste works on Windows, Mac, most modern Linux apps,
      and ttk widgets.
    - Issue #24759: Make clear in idlelib.idle_test.__init__ that the directory
      is a private implementation of test.test_idle and tool for maintainers.
    - Issue #21916: Added tests for the turtle module.
    - Issue #27229: Fix the cross-compiling pgen rule for in-tree builds.
    - Issue #17500, and https://github.com/python/pythondotorg/issues/945: Remove
      unused and outdated icons.

python2.7 (2.7.11-11) unstable; urgency=medium

  * Update to 20160602 from the 2.7 branch.
    - Issue #26168: Fixed possible refleaks in failing Py_BuildValue() with
      the "N" format unit.
    - Issue #27114: Fix SSLContext._load_windows_store_certs fails with
      PermissionError.
    - Issue #26673: When tk reports font size as 0, change to size 10.
      Such fonts on Linux prevented the configuration dialog from opening.
    - Issue #27044: Add ConfigDialog.remove_var_callbacks to stop memory leaks.
    - In the 'IDLE-console differences' section of the IDLE doc, clarify
      how running with IDLE affects sys.modules and the standard streams.
    - Issue #25507: Fix incorrect change in IOBinding that prevented printing.
      Change also prevented saving shell window with non-ascii characters.
      Augment IOBinding htest to include all major IOBinding functions.
    - Issue #25905: Revert unwanted conversion of ' to ’ RIGHT SINGLE QUOTATION
      MARK in README.txt and open this and NEWS.txt with 'ascii'.
      Re-encode CREDITS....

Read more...

Changed in python2.7 (Ubuntu Xenial):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.