[ tktoolkit-Bugs-2824550 ] Tk crashes after destroying a widget

View: New views
1 Messages — Rating Filter:   Alert me  

[ tktoolkit-Bugs-2824550 ] Tk crashes after destroying a widget

by SourceForge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bugs item #2824550, was opened at 2009-07-20 22:38
Message generated for change (Comment added) made by sf-robot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112997&aid=2824550&group_id=12997

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: 01. Bindings
Group: current: 8.5.7
>Status: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: Strykaas (strykaas)
Assigned to: Jeffrey Hobbs (hobbs)
Summary: Tk crashes after destroying a widget

Initial Comment:
Tk crashes with the following message :

malformed bucket chain in Tcl_DeleteHashEntry
Aborted

Problem is 100% reproducible with tk 8.5.0-3 Ubuntu build and Tk8.5.7 (stable) version built from the source.
To reproduce : launch the provided script, and then left click the combobox in the middle of the widget. It always crashes at the 2nd click here.




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

>Comment By: SourceForge Robot (sf-robot)
Date: 2009-11-06 02:20

Message:
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

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

Comment By: Don Porter (dgp)
Date: 2009-10-21 21:24

Message:

Used the demo script attached and confirmed
on my own Centos system that Tcl/Tk 8.5.7 crashed
while the core-8-5-branch of both did not.

Looks fixed to me.  Setting to Pending in case
someone disagrees and has reason to keep
this open.


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

Comment By: Don Porter (dgp)
Date: 2009-10-20 15:53

Message:

comments appear to claim this is fixed in the HEAD.

Is it still broken on core-8-5-branch?  If so, can a fix
be committed for 8.5.8 please?  If not, can we close
this?

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

Comment By: Joe English (jenglish)
Date: 2009-07-29 00:44

Message:
Confirmed: bug is still still present in 8.6b1.  

Actually in 8.6b1 it gets past the widget destruction sequence bug (this
was fixed), but then runs into a *different* bug: #2431428 (fixed
2008-02-08, post-B1 release).



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

Comment By: Strykaas (strykaas)
Date: 2009-07-21 22:32

Message:
Maybe the 8.6b1 release date is based on an older tag, so that the commits
indicated by jenglish would still be the real fixes, as mjanssen noted.


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

Comment By: Strykaas (strykaas)
Date: 2009-07-21 22:17

Message:
I have made additional tests :
- Built 8.6b1 from the sources : the bug is still there
- Built CVS HEAD pulled today : the bug is gone or simply hidden.
8.6b1 dates back to  says 2008-12-23 (http://wiki.tcl.tk/20966) so those
commits aren"t responsible for the "fix", whenever it is fixed.



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

Comment By: Joe English (jenglish)
Date: 2009-07-21 19:52

Message:
Reproduced under Tk 8.5; CVS HEAD is OK.

 valgrind trace under 8.5 sez:

==19024== Conditional jump or move depends on uninitialised value(s)
==19024==    at 0x80C3D71: Ttk_BoxContains (ttkLayout.c:33)
==19024==    by 0x80C5BED: Ttk_LayoutNodeIdentify (ttkLayout.c:1136)
==19024==    by 0x80D4236: TtkWidgetIdentifyCommand (ttkWidget.c:777)
==19024==    by 0x80D3423: TtkWidgetEnsembleCommand (ttkWidget.c:170)
==19024==    by 0x80D3484: WidgetInstanceObjCmd (ttkWidget.c:189)
==19024==    by 0x81271BD: TclEvalObjvInternal (tclBasic.c:3688)
==19024==    by 0x816A4B4: TclExecuteByteCode (tclExecute.c:2327)
==19024==    by 0x81AE962: TclObjInterpProcCore (tclProc.c:1748)
==19024==    by 0x81AE8E8: TclObjInterpProc (tclProc.c:1642)
==19024==    by 0x81271BD: TclEvalObjvInternal (tclBasic.c:3688)
==19024==    by 0x8127B81: TclEvalEx (tclBasic.c:4336)
==19024==    by 0x812773E: Tcl_EvalEx (tclBasic.c:4041)

No valgrind complaints under CVS HEAD.

Relevant fix was probably 2008-11-12 commit (ref #2207435) and followup
2008-11-16 commit, (ref #2298720).


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

Comment By: Strykaas (strykaas)
Date: 2009-07-21 19:23

Message:
I've attached the tcl code sample that makes Tk crash on Windows XP.

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

Comment By: Strykaas (strykaas)
Date: 2009-07-21 19:08

Message:
I have reproduced it on Windows XP SP3 using ActiveState 8.5.7 distribution
as well, using the sample code altered a bit with a few more widgets, but
doing basically the same destroy routine.
Symptoms and messages are the same, left click on the combobox =>
malformed bucket chain...





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

Comment By: Jeffrey Hobbs (hobbs)
Date: 2009-07-20 22:44

Message:
Confirmed on Linux.  Doesn't happen on Windows.

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

Comment By: Strykaas (strykaas)
Date: 2009-07-20 22:41

Message:
I sometimes get segmentation faults too.

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

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112997&aid=2824550&group_id=12997

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tcl-Bugs mailing list
Tcl-Bugs@...
https://lists.sourceforge.net/lists/listinfo/tcl-bugs