Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ba2dfe3b1943f8e01200c6c3ead37adf229cf6b5
Ticket: 1991932fffffffffffffffffffffffffffffffff
Global grab can cause app to segfault
User & Date: das on 2008-06-13 00:12:09
Changes

  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"