Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 38e3a6e90c8adc4a4676c2b9aec1cda00c45f86efdeb57b8777cbf975564fe4f
Ticket: 73bb42fb3f35cd613af6fcea465e35bbfd352216
Panic "Buffer Underflow, BUFFER_PADDING not enough"
User & Date: oehhar on 2025-01-15 12:52:40
Changes

  1. icomment:
    Another interesting side-effect is, that it is hard to locate the error position from the error dict.
    
    The error dict contains in both test cases:
    
    <verbatim>
    % catch {read $fd $buffersize} e d
    1
    % set e
    error reading "file32f59a8": invalid or incomplete multibyte or wide character
    % set d
    -data xxxxxxx -code 1 -level 0 -errorstack {INNER {invokeStk1 read file32f59a8 8}} -errorcode {POSIX EILSEQ {invalid or incomplete multibyte or wide character}} -errorinfo {error reading "file32f59a8": invalid or incomplete multibyte or wide character
        while executing
    </verbatim>
    
    The "-data" key contains the last correct data, but the "\r" never appears.
    That is not a bug. It is just a lesson learned, that with "-translation crlf" (or auto), there might be hidden data between the error position and the returned good data.
    
    Thanks for all,
    Harald
    
  2. login: "oehhar"
  3. mimetype: "text/x-fossil-wiki"
  4. username: "oehhar"