Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a2c651f53e1c15c0f1ebec608b691ec0a0cb74d4cd66088b2f4b2ea93f8870ca
Ticket: db4f2843cdb28c27fddf511567bc9287484852ae
Sporadic segfault (BO) using tclIO
User & Date: oehhar on 2024-01-22 15:10:12
Changes

  1. closedate changed to: "2460332.13208447"
  2. closer changed to: "oehhar"
  3. icomment:
    This fix has a big performance impact on large files, see [da16d15574].
    *Tcl_SetObjLength* does not allocate in advance like *Tcl_AppendToObj* and thus makes one realloc per 4096 bytes read. 
    
    The issue fixed in this ticket may only be triggered, if an extension calls *Tcl_ReadChars* with an object having a string representation in unicode.
    This never happens in the core.
    
    Thus, the fix is reverted for now by commit [7a188dd1c9].
    
    Nevertheless, the issue persists for users of the C interface.
    
  4. login: "oehhar"
  5. mimetype: "text/x-fossil-wiki"
  6. username: "oehhar"