Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 41a0dc6f8ac62aac1cd29378f2b5b8cc91b276b1
Ticket: 4f51fb37428603a028f505129f6978c2445fbc08
`Expect' memory faults upon issuing `c'
User & Date: anonymous on 2015-07-12 17:15:38
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    as advised on comp.lang.tcl I issue this bug report,  happens with Expect 5.45.3  under macosx 10.10.3: 
    
    I want to use `expect' as an interactive debugger for a very modest tcl script. running the script either via `/usr/bin/env expect -D 1' or by adding somewhere a `debug 1' to the script and loading the Expect package from within `tclsh' and sourcing the script  from within tclsh initially does the expected (...), i.e. I get the `dbg' prompt of `Expect'.  simple things (looking at variables, single-stepping, etc. work). but as soon as I issue `c' there is a short, notable delay (somewhat larger than usual runtime of the script I'd say) followed by a memory fault. 
    
    the problem is most easily reproduced by running the script (called "breakdown" for totally unrelated reasons ;-) like
     
        expect -D 1 breakdown
        c  #(issued at the dbg prompt)
    
    this triggers the memfault each and every time on my machine.
    
    the script does nothing fancy. it uses 
    
     namespace path {::tcl::mathop} 
     package require cmdline 
    
    otherwise it's "vanilla tcl" (making some use of `clock')
    
    I can provide the script together with some data files it processes since this right now is my "minimal example" -- I have no idea how to corner the problem. so just let me know, where to upload/email the script+data
    
  5. foundin changed to: "8.6.3"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "87a8ab2e1e5150e17c388ae3d6a4369041a5c4fa"
  10. resolution changed to: "None"
  11. severity changed to: "Severe"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "69. Other"
  15. title changed to: "`Expect' memory faults upon issuing `c'"
  16. type changed to: "Bug"