Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 384a847b57046a619cbc6963db835700b496b6e1
Ticket: 3091701fffffffffffffffffffffffffffffffff
TclAppendBytesToByteArray infinite loop
User & Date: andygoth on 2010-10-21 02:45:41
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    attempt = byteArrayPtr->allocated;
    do {
        attempt *= 2;
    } while (attempt < used+len);
    
    This code in TclAppendBytesToByteArray loops forever when byteArrayPtr->allocated is initially zero.  This explains the lock-up dzach reported on http://wiki.tcl.tk/23626 .  I have reproduced the problem and used gdb to track it down to these few lines.  The procedure is as dzach said on the Wiki (POST from MSIE8), and his "set chunk {}" workaround also works for me.
    
  4. foundin changed to: "None"
  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: "andygoth"
  10. subsystem changed to: "12. ByteArray Object"
  11. title changed to: "TclAppendBytesToByteArray infinite loop"
  12. type changed to: "Bug"