[Python-bugs-list] [Bug #115690] Dr. Watson error on Python2.0b2 Idle 0.6 WinNT4.0 SP6

noreply@sourceforge.net noreply@sourceforge.net
Fri, 6 Oct 2000 10:14:03 -0700


Bug #115690, was updated on 2000-Sep-29 14:55
Here is a current snapshot of the bug.

Project: Python
Category: Tkinter
Status: Closed
Resolution: Fixed
Bug Group: None
Priority: 6
Summary: Dr. Watson error on Python2.0b2 Idle 0.6 WinNT4.0 SP6

Details: I get a Dr. Watson error:

    pythonw.exe
    Exception: access violation (0xc0000005), 
    Address: 0x00e31652

when I run the following code in Idle 0.6, using Edit->Run Script:

---%<---cut---%<---

import unicodedata
for c in range(0x10000):
    x=unichr(c)
    try:
        b = unicodedata.numeric(x)
        #print "numeric:", repr(x)
        try:
            a = unicodedata.digit(x)
            if a != b:
                print "bad" , repr(x)
        except:
            print "Numeric but not digit", hex(c), x.encode("utf8"), \
                  "numeric ->", b
    except:
        pass

---%<---cut---%<---

(This code was recently posted on python-dev)

I've modified my .idle file, adding 

    [EditorWindow]
    font-name=tahoma


Follow-Ups:

Date: 2000-Sep-29 21:42
By: jhylton

Comment:
Marc-Andre can you check whether this is a Unicode bug that is going to come up with or without idle.  If it seems Idle specific, please assign it to Guido or Tim.  If not, it's yours :-).


-------------------------------------------------------

Date: 2000-Oct-03 10:23
By: lemburg

Comment:
I can't reproduce this on Linux, so it seems that it is related to the way TCL/Tk
displays UTF-8 data. Another possibility would be an optimization error
which doesn't happen with gcc.

Tim, could you try this on Windows and possibly tell me where the segfault
occurs in the code ?

-------------------------------------------------------

Date: 2000-Oct-03 11:27
By: gvanrossum

Comment:
Can't reproduce it on Win98SE either. (And I did try setting font-name to tahoma.)
-------------------------------------------------------

Date: 2000-Oct-04 20:42
By: tim_one

Comment:
Assigned back to Guido, because it appears identical to bug 113803, which Guido assigned to himself.

Guido, I can reproduce the problem, and regardless of font (e.g., let it use the default) on Win98SE by letting the program run to completion, and then hitting the ENTER key *twice* (first time gets an IDLE prompt, second time blows up).  It's in exactly the same place then as 113803, trying to decref a NULL pointer in _tkinter.c's AsString.

Note that there *may* be another bug here specific to NT and/or W2K too, in that W9x have much feebler Unicode support.

-------------------------------------------------------

Date: 2000-Oct-06 10:13
By: gvanrossum

Comment:
Fixed the Tkinter bug, so closing this. Please check that this is indeed fixed in the CVS version (or wait for release candidate 1, Monday).
-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=115690&group_id=5470