[Python-bugs-list] [Bug #117278] re-opening of bug #117167

noreply@sourceforge.net noreply@sourceforge.net
Sat, 28 Oct 2000 17:46:30 -0700


Bug #117278, was updated on 2000-Oct-19 09:12
Here is a current snapshot of the bug.

Project: Python
Category: Tkinter
Status: Closed
Resolution: Fixed
Bug Group: None
Priority: 5
Summary: re-opening of bug #117167

Details: As directed, I'm reopening the bug #117167 (_tkinter segfaults on "syntax error"), because it was closed on incorrect assumptions:
- I believe I am using Python 2.0 final ( python -V says
'python 2.0'; the file I downloaded is named BeOpen-Python-2.0.tar.bz2 ).
- tkinter is a static module, therefore there is no possibility of still using the old one.

----
Additional info :

I verified the same behaviour on Solaris 2.0, with tcl/tk 8.3.1 and gcc 2.8.1. Hereaftter there is the output of gdb 'where' command, obtained from thye dumped core.

---------- output of where ---------------------------

#0  0x94464 in Tkapp_Call (self=0x1b80c0, args=0x18c67c) at ./_tkinter.c:644
#1  0x26fac in call_builtin (func=0x1b80a8, arg=0x18c67c, kw=0x0)
    at ceval.c:2650
#2  0x26e78 in PyEval_CallObjectWithKeywords (func=0x1b80a8, arg=0x229134,
    kw=0x0) at ceval.c:2618
#3  0x2579c in eval_code2 (co=0x1e9ff8, globals=0x0, locals=0x0,
    args=0x18c67c, argcount=0, kws=0xffffffff, kwcount=0, defs=0x22e810,
    defcount=3, owner=0x22e864) at ceval.c:1951
#4  0x253d8 in eval_code2 (co=0x1fae00, globals=0x0, locals=0x18c67c,
    args=0x17a160, argcount=2, kws=0x5, kwcount=1, defs=0x22cba8, defcount=2,
    owner=0x23102c) at ceval.c:1850
#5  0x273bc in call_function (func=0x230ffc, arg=0x2037c4, kw=0x1)
    at ceval.c:2772
#6  0x26e64 in PyEval_CallObjectWithKeywords (func=0x1b4efc, arg=0x1e33e4,
    kw=0x1a07d4) at ceval.c:2616
#7  0x45484 in PyInstance_New (class=0x23102c, arg=0x1e33e4, kw=0x1a07d4)
    at classobject.c:463
#8  0x26fd4 in call_builtin (func=0x23102c, arg=0x1e33e4, kw=0x1a07d4)
    at ceval.c:2653
#9  0x26e78 in PyEval_CallObjectWithKeywords (func=0x23102c, arg=0x1e33e4,
    kw=0x1a07d4) at ceval.c:2618
#10 0x2579c in eval_code2 (co=0x1b42c0, globals=0x1a07d4, locals=0x0,
    args=0x1b55dc, argcount=1705940, kws=0xffffffff, kwcount=0, defs=0x0,
---Type <return> to continue, or q <return> to quit---
    defcount=0, owner=0x187d3c) at ceval.c:1951
#11 0x273bc in call_function (func=0x1bb714, arg=0x1b40ec, kw=0x0)
    at ceval.c:2772
#12 0x26e64 in PyEval_CallObjectWithKeywords (func=0x1b53fc, arg=0x1c8654,
    kw=0x0) at ceval.c:2616
#13 0x45484 in PyInstance_New (class=0x187d3c, arg=0x1c8654, kw=0x0)
    at classobject.c:463
#14 0x26fd4 in call_builtin (func=0x187d3c, arg=0x1c8654, kw=0x0)
    at ceval.c:2653
#15 0x26e78 in PyEval_CallObjectWithKeywords (func=0x187d3c, arg=0x1c8654,
    kw=0x0) at ceval.c:2618
#16 0x2579c in eval_code2 (co=0x1b39b8, globals=0x0, locals=0x0,
    args=0x1b571c, argcount=0, kws=0xffffffff, kwcount=0, defs=0x0,
    defcount=0, owner=0x21b8a4) at ceval.c:1951
#17 0x273bc in call_function (func=0x222474, arg=0x184de4, kw=0x0)
    at ceval.c:2772
#18 0x26e64 in PyEval_CallObjectWithKeywords (func=0x1b5744, arg=0x175364,
    kw=0x0) at ceval.c:2616
#19 0x45484 in PyInstance_New (class=0x21b8a4, arg=0x175364, kw=0x0)
    at classobject.c:463
#20 0x26fd4 in call_builtin (func=0x21b8a4, arg=0x175364, kw=0x0)
    at ceval.c:2653
#21 0x26e78 in PyEval_CallObjectWithKeywords (func=0x21b8a4, arg=0x175364,
---Type <return> to continue, or q <return> to quit---
    kw=0x0) at ceval.c:2618
#22 0x2579c in eval_code2 (co=0x1b4148, globals=0x0, locals=0x0,
    args=0x1b6dc8, argcount=0, kws=0xffffffff, kwcount=0, defs=0x0,
    defcount=0, owner=0x0) at ceval.c:1951
#23 0x22584 in PyEval_EvalCode (co=0x1b4148, globals=0x180b54, locals=0x180b54)
    at ceval.c:319
#24 0x3a39c in run_node (n=0x175658, filename=0x1b4148 "", globals=0x180b54,
    locals=0x180b54) at pythonrun.c:886
#25 0x3a34c in run_err_node (n=0x175658, filename=0x1b4148 "",
    globals=0x180b54, locals=0x180b54) at pythonrun.c:874
#26 0x3a320 in PyRun_FileEx (fp=0x174f20, filename=0xffbef26b "problem.py",
    start=1529432, globals=0x180b54, locals=0x180b54, closeit=1)
    at pythonrun.c:866
#27 0x397e8 in PyRun_SimpleFileEx (fp=0x174f20,
    filename=0xffbef26b "problem.py", closeit=1) at pythonrun.c:579
#28 0x39390 in PyRun_AnyFileEx (fp=0x174f20, filename=0xffbef26b "problem.py",
    closeit=1) at pythonrun.c:459
#29 0x1ee08 in Py_Main (argc=2, argv=0xffbef144) at main.c:289
#30 0x1e74c in main (argc=2, argv=0xffbef144) at python.c:10


Follow-Ups:

Date: 2000-Oct-19 14:06
By: loewis

Comment:
A fix for that is in http://sourceforge.net/patch/?func=detailpatch&patch_id=101980&group_id=5470
-------------------------------------------------------

Date: 2000-Oct-27 04:56
By: gvanrossum

Comment:
Thanks for the fix, Martin. I'll have a look.
-------------------------------------------------------

Date: 2000-Oct-28 17:46
By: loewis

Comment:
Fixed in _tkinter.c 1.115.
-------------------------------------------------------

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