Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ce46d802ed6d5742f0fe05b70dd9036d55c6d8a4
Ticket: 2960042fffffffffffffffffffffffffffffffff
high water mark memory not shared for file I/O needs
User & Date: ferrieux on 2010-03-01 16:19:15
Changes

  1. icomment:
    OK, repro on HEAD after doubling the size of the "xxxx" in the hi-water-mark function.
    Note that you don't need the large-file func, nor do you get any chance to call anything twice: Tcl not only crashes, but calls Tcl_Panic, and just before the core dump you should see on stderr:
    
     unable to alloc ... bytes
    
    (with the actual value possibly depending on system setup).
    
    I will dive a bit further, but this new light seems to indicate it is a dup of one of the various bugs related to [append] when reaching the size limit. We admittedly don't  fail gracefully in that case, and Tcl_Panic is often the best we can do.
    
    So I'd say this has nothing to do with a leak or hi-water-mark methods, but simply an atomic, expected Tcl_Panic in low-memory condition.
    
    If you have counter-evidence, like crashing only on the 2nd call (which I don't see), please provide it.
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"