Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 64f0c98fb5374c311fc14a45f92d6dc097e027c9
Ticket: 1876793fffffffffffffffffffffffffffffffff
lreverse crashes on unshared empty list
User & Date: tallniel on 2008-01-21 22:18:35
Changes

  1. assignee changed to: "nijtmans"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    I am seeing a bus error on Mac OS X 10.4.11 (Intel) using current Tcl CVS HEAD. A minimal script to reproduce the crash is the following:
    
    proc foo args {
        set n [lrange $args 0 end]
        lreverse [lrange $n 0 end-1]
    }
    foo bar
    
    I'm not entirely sure where the problem lies, but it seems to be some combination of the use of "args", the 2 uses of "lrange", and it seems to rely on the "end-N" syntax (just "lrange $n 0 end" doesn't cause a bus error). I suspect a tricky ref-counting bug somewhere and am investigating further. I'll add more here if I track it down.
    
    Neil
    
  4. foundin changed to: "obsolete: 8.5.1"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "tallniel"
  10. subsystem changed to: "14. List Object"
  11. title changed to: "Odd crash with args/lreverse/lrange combination"
  12. type changed to: "Bug"