Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9642db28b3aae2e7976494d3170436ad05de383e
Ticket: 2921116fffffffffffffffffffffffffffffffff
Segmentation fault when removing the transformation
User & Date: sbron on 2009-12-25 16:01:33
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    If the read method of a stacked channel (temporarily) removes the transformation to send an acknowledgement back to the sender, Tcl crashes with a segfault.
    
    The problem can be reproduced using the attached script.
    
    Probably the chan pop command releases the data structure attached to the transformation handle that is later still needed to process the data returned by the read method.
    
    Either the code invoking the read method should make a copy of the data it will need to finish processing the read action, or removing the transformation inside the read method should fail with an appropriate error message.
    
    Obviously similar problems may happen in other stacked channel methods when they remove the transformation.
    
    Tested on OpenSuSE 11.2, x86_64
    
  4. foundin changed to: "obsolete: 8.6b1.1"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "sbron"
  10. subsystem changed to: "26. Channel Transforms"
  11. title changed to:
    Segmentation fault when removing the transformation
    
  12. type changed to: "Bug"