Skip to content
Tcl Source Code History Of Ticket 1688163fffffffff
Login

History Of Ticket 1688163fffffffff

Artifacts Associated With Ticket 1688163fffffffff

  1. Ticket change [711612a107] (rid 100613) by eax128 on 2007-03-26 07:42:39:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      I found a problem of TCL under IBM AIX 5.3, if I use some tcl code to compare 2 big files(size > 18M) , I found the tcl will core dump and report message: 
      "unable to realloc 36882016 bytes 
      IOT/Abort trap (core dumped) " 
      
      I do a test and found maybe it is  a special problem of TCL on AIX. Other Unix platforms(hpux,sunos,linux) do not have this problem. 
      
      
      The test code is as below: 
      
      --- test.tcl-- 
      # test "compare 2 big file(>18M) with string compare" 
      # step 1 create 2 big files, size > 18M 
      set string "" 
      for {set i 0} {$i < 512} {incr i} { 
          append string test 
      } 
      
      if {[file exists ./BigFile1 ]} { 
          file delete ./BigFile1 
      } 
      
      if {[file exists ./BigFile2 ]} { 
          file delete ./BigFile2 
      } 
      
      set fd [open ./BigFile1 w] 
      for {set i 0} {$i < 9000} {incr i} { 
          puts $fd $string 
      } 
      close $fd 
      file copy ./BigFile1  ./BigFile2 
      
      # step 2 use string compare 
      set fd1 [open ./BigFile1] 
      set fd2 [open ./BigFile2] 
      set s1 [read -nonewline $fd1] 
      set s2 [read -nonewline $fd2] 
      string compare $s1 $s2 ;#then tcl will core dump 
      
      All the version of  tcl 8.4.12,  tcl8.4.13 , tcl8.4.14 and tcl  8.5 will occur this problem on AIX 5.3 
      
      I test this problem on 2 AIX boxs, both AIX 5.3, with default installation, both of them will core dump. 
      
      
      If it has no relation with AIX kernel configuration setting, I think it's a bug, maybe from tcl core,maybe from C lib of AIX. 
      
      Thanks a lot 
                            [email protected]
      
      
      
      
      
      
      
    4. foundin initialized to: "obsolete: 8.4.14"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "eax128"
    10. subsystem initialized to: "41. Memory Allocation"
    11. title initialized to:
      Core dump under AIX 5.3 by "string compare" 2 big buffer
      
    12. type initialized to: "Bug"
  2. Ticket change [d48d429ba4] (rid 123467) by hobbs on 2007-03-29 05:44:10:

    1. closedate changed to: "2007-03-28T22:44:10"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      Originator: NO
      
      ulimit -d 262144
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"
    8. username: "hobbs"