Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e29afe335a0a5b953a37f76797cbf41a7d5abd8d
Ticket: 218536ffffffffffffffffffffffffffffffffff
Memory leak/overflow in regsub
User & Date: nobody on 2000-10-26 01:01:53
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 933 Bug
    Version: 8.1a2
    SubmitDate: '1998-12-04'
    LastModified: '1998-12-08'
    Severity: CRIT
    Status: Released
    Submitter: welch
    ChangedBy: stanton
    OS: Windows NT
    OSVersion: NT 4.0
    Machine: X86
    FixedDate: '1998-12-08'
    FixedInVersion: 8.1b1
    ClosedDate: '2000-10-25'
    
    
    Name:
    Lucio Ferrao
    
    CVS:
    1998/12/04
    
    Extensions:
    none
    
    CustomShell:
    Bare tcl8.1 compiled with VC6.0
    
    ReproducibleScript:
    set line {BEGIN_TABLE ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; END_TABLE}
    set filedata ""
    for {set i 1} {$i<200} {incr i} {
        append filedata $line
    }
    for {set i 1} {$i<10} {incr i} {
        regsub -all "BEGIN_TABLE " $filedata "" newfiledata
    }
    
    ObservedBehavior:
    in tcl8.1a2: 
    unable to realloc 42844 bytes
    
    abnormal program termination
    
    in tcl8.1b1: (from cvs 1998/12/4)
    Application Error: The memory could not be read.
    
    DesiredBehavior:
    no error.
    
    Patch:
    sorry, not yet
    
    
    
    12/08/1998 13:13 - stanton -
                  Fixed a memory allocation bug
    where big blocks that were reallocated into a different heap
    location were not being placed into the bigBlocks list.
    
  4. foundin changed to: "obsolete: 8.1a2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to: "Memory leak/overflow in regsub"
  11. type changed to: "Bug"