Artifacts Associated With Ticket 1991932
Ticket change [c722a7f726] (rid 121885) by phase1geo on 2008-06-12 12:32:31:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
I have attached a simple script that can cause wish to segfault when run. To replicate, simply type 'source test.tcl' at the wish prompt and follow the instructions of the various windows. I am running this using Tcl/Tk version 8.5.2, running on Mac OS X 10.5.3 on a Intel-based iMac.
- foundin initialized to: "obsolete: 8.5.2"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "phase1geo"
- subsystem initialized to: "69. Other"
- title initialized to: "Global grab can cause app to segfault"
- type initialized to: "Bug"
Ticket change [7419153bf5] (rid 105146) by phase1geo on 2008-06-12 19:32:31:
- icomment:
File Added - 281146: test.tcl
- login: "phase1geo"
- mimetype: "text/plain"
- username: "phase1geo"
- icomment:
Add attachment "test.tcl" [d5704f1b49] (rid 123621) by phase1geo on 2008-06-12 19:32:31.
Ticket change [34f624320d] (rid 106832) by phase1geo on 2008-06-12 19:33:15:
- assignee changed to: "das"
- icomment:
Logged In: YES user_id=512771 Originator: YES Assigning this to Daniel per his request.
- login: "phase1geo"
- mimetype: "text/plain"
- username: "phase1geo"
Ticket change [475bb23a88] (rid 99691) by nobody on 2008-06-13 00:10:22:
- icomment:
File Added - 281187: 1991932.diff
- login: "nobody"
- mimetype: "text/plain"
- username: "nobody"
- icomment:
Add attachment "1991932.diff" [ec30a6ec7d] (rid 103673) by nobody on 2008-06-13 00:10:22.
Ticket change [ba2dfe3b19] (rid 129281) by das on 2008-06-13 00:12:09:
- closedate changed to: "2008-06-12T17:12:09"
- closer changed to: "das"
- icomment:
Logged In: YES user_id=90580 Originator: NO Thanks much, that script made reproducing the crash easy. The attached patch fixes the crash, it turned out to be a bug in generic tkPointer code, the global . grab was not being restored correctly when the temporary grab for the .c.b button mousebutton press/release cycle was removed, leading to a dangling reference to .c inside the TkpSetCapture() implementation which was not cleaned up when .c was destroyed in the button command. Subsequent reference to the grab window from mouse-move event generation code would then segfault... Fix committed to HEAD, core-8-5-branch and core-8-4-branch. Note that this is a tk bug and should have been filed in the tktoolkit tracker (not bothering to refile it since it is fixed).
- login: "das"
- mimetype: "text/plain"
- priority changed to: "9 Immediate"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "das"