Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: db748d650630026c1daaa2329f5544fed62f7100
Ticket: 456892ffffffffffffffffffffffffffffffffff
Tcl_AppendStringsToObj -> abort
User & Date: nobody on 2001-08-30 15:37:45
Changes

  1. assignee changed to: "nijtmans"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    [belinda 6]--> tclsh8.4
    % parray tcl_platform
    tcl_platform(byteOrder) = bigEndian
    tcl_platform(machine)   = sun4u
    tcl_platform(os)        = SunOS
    tcl_platform(osVersion) = 5.7
    tcl_platform(platform)  = unix
    tcl_platform(threaded)  = 1
    tcl_platform(user)      = chall
    % puts $tcl_patchLevel
    8.4a3
    % proc mt_lslice {l s} {
        set r [list]    
        foreach i $l {
            lappend r [lindex $l $i]
        }   
        return $r
    }
    mt_lslice [list a b c d e f] [list 1 3 5]
    Tcl_AppendStringsToObj called with shared object
    Abort (core dumped)
    
    Of course, my proc is wrong and should say:
    
    proc mt_lslice {l s} {
        set r [list]    
        foreach i $s {
            lappend r [lindex $l $i]
        }   
        return $r
    }
    % mt_lslice [list a b c d e f] [list 1 3 5]
    b d f
    
    
  4. foundin changed to: "obsolete: 8.4a3"
  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: "14. List Object"
  10. title changed to: "Tcl_AppendStringsToObj -> abort"
  11. type changed to: "Bug"