Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 263077d67cc9a384af2ee1387e5de80e038a7ea6
Ticket: 1462248fffffffffffffffffffffffffffffffff
core dump on Linux while [read]ing file
User & Date: andreas_kupries on 2006-04-04 00:43:31
Changes

  1. icomment:
    Logged In: YES 
    user_id=75003
    
    Ok, there is something odd going on here. I can repro the
    crash only when using the script interactively. The moment I
    go non-interactive things are OK. And replacing the
    while-loop with a large read of the whole file makes it go
    away as well. 
    
    This general elusivity, i.e. vanishing at the slighest
    change, points to a memory-smash somewhere. :(
    
    Yep, very likely. Changing the size of blocks read by even
    one character, up or down, causes the crash to vanish as
    well ... changing the -buffersize in tandem with the #chars
    read is not effective, the crash vanishes. Changing the
    buffersize alone makes it vanish as well. Ah, one case is
    different: -buffer 4095, read 4096 blocks ... This seems to
    hang the tclsh instead of crashing it.
    
    
    
    
  2. login: "andreas_kupries"
  3. mimetype: "text/plain"
  4. username: "andreas_kupries"