Skip to content
Tcl Source Code History Of Ticket 1991932
Login

History Of Ticket 1991932

Artifacts Associated With Ticket 1991932

  1. Ticket change [c722a7f726] (rid 121885) by phase1geo on 2008-06-12 12:32:31:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. 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.
      
    4. foundin initialized to: "obsolete: 8.5.2"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "phase1geo"
    10. subsystem initialized to: "69. Other"
    11. title initialized to: "Global grab can cause app to segfault"
    12. type initialized to: "Bug"
  2. Ticket change [7419153bf5] (rid 105146) by phase1geo on 2008-06-12 19:32:31:

    1. icomment:
      
      
      File Added - 281146: test.tcl
      
      
      
    2. login: "phase1geo"
    3. mimetype: "text/plain"
    4. username: "phase1geo"
  3. Add attachment "test.tcl" [d5704f1b49] (rid 123621) by phase1geo on 2008-06-12 19:32:31.

  4. Ticket change [34f624320d] (rid 106832) by phase1geo on 2008-06-12 19:33:15:

    1. assignee changed to: "das"
    2. icomment:
      Logged In: YES 
      user_id=512771
      Originator: YES
      
      Assigning this to Daniel per his request.
      
      
    3. login: "phase1geo"
    4. mimetype: "text/plain"
    5. username: "phase1geo"
  5. Ticket change [475bb23a88] (rid 99691) by nobody on 2008-06-13 00:10:22:

    1. icomment:
      
      
      File Added - 281187: 1991932.diff
      
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  6. Add attachment "1991932.diff" [ec30a6ec7d] (rid 103673) by nobody on 2008-06-13 00:10:22.

  7. Ticket change [ba2dfe3b19] (rid 129281) by das on 2008-06-13 00:12:09:

    1. closedate changed to: "2008-06-12T17:12:09"
    2. closer changed to: "das"
    3. 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).
      
      
    4. login: "das"
    5. mimetype: "text/plain"
    6. priority changed to: "9 Immediate"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. username: "das"