Skip to content
Tcl Source Code History Of Ticket 99c02b9520069c3e
Login

History Of Ticket 99c02b9520069c3e

Artifacts Associated With Ticket 99c02b9520069c3e

  1. Ticket change [5c8914c5bc] (rid 137701) by dgp on 2014-04-21 15:54:41:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      
      New test iocmd-21.21 demonstrates a segfault.
      
      It's worse than that though.
      
      It demonstrates that reflected channels expose
      (create?) the ability to close a channel in the
      midst of operations on it.  This means things can
      disappear, deallocate, invalidate, and go away,
      when everything in progress is assuming that will
      not happen.
      
      One particular problem is the routine
      
      ReflectInput(..., char *buf, int toRead, int *errorCodePtr);
      
      The buf pointer value passed in is where RI() is meant to
      write the bytes it reads.  However the InvokeTclMethod() call
      inside RI() has the power to free that memory.  iocmd-21.21
      demonstrates this (and other problems), and valgrind will indeed
      report the "Invalid write" attempt.
      
      A number of potential solutions can be imagined, but they all
      seem unpleasant. Comments?
      
    5. foundin initialized to: "8.5+"
    6. is_private initialized to: "0"
    7. login: "dgp"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Severe"
    11. status initialized to: "Open"
    12. submitter initialized to: "dgp"
    13. subsystem initialized to: "25. Channel System"
    14. title initialized to: "iocmd-21.21 segfault demo & more"
    15. type initialized to: "Bug"
  2. Ticket change [7482ba2d80] (rid 137708) by dgp on 2014-04-21 18:56:20:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2456769.28912478"
    3. closer changed to: "dgp"
    4. comment changed to:
      New test iocmd-21.21 demonstrates a segfault.
      
      It's worse than that though.
      
      It demonstrates that reflected channels expose
      (create?) the ability to close a channel in the
      midst of operations on it.  This means things can
      disappear, deallocate, invalidate, and go away,
      when everything in progress is assuming that will
      not happen.
      
      One particular problem is the routine
      
      ReflectInput(..., char *buf, int toRead, int *errorCodePtr);
      
      The buf pointer value passed in is where RI() is meant to
      write the bytes it reads.  However the InvokeTclMethod() call
      inside RI() has the power to free that memory.  iocmd-21.21
      demonstrates this (and other problems), and valgrind will indeed
      report the "Invalid write" attempt.
      
      A number of potential solutions can be imagined, but they all
      seem unpleasant. Comments?
      
    5. icomment: "Fixed in 8.5 branch."
    6. login: "dgp"
    7. mimetype: "text/plain"
    8. resolution changed to: "Fixed"
    9. status changed to: "Closed"